---
UID: NF:adhoc.IDot11AdHocInterface.GetDeviceSignature
title: IDot11AdHocInterface::GetDeviceSignature (adhoc.h)
description: Gets the signature of the NIC.
old-location: nwifi\idot11adhocinterface_getdevicesignature.htm
tech.root: NativeWiFi
ms.assetid: d65fe0ae-ce7b-4d9e-af5b-d9aaeb909e21
ms.date: 12/05/2018
ms.keywords: GetDeviceSignature, GetDeviceSignature method [NativeWIFI], GetDeviceSignature method [NativeWIFI],IDot11AdHocInterface interface, IDot11AdHocInterface interface [NativeWIFI],GetDeviceSignature method, IDot11AdHocInterface.GetDeviceSignature, IDot11AdHocInterface::GetDeviceSignature, adhoc/IDot11AdHocInterface::GetDeviceSignature, nwifi.idot11adhocinterface_getdevicesignature
f1_keywords:
- adhoc/IDot11AdHocInterface.GetDeviceSignature
dev_langs:
- c++
req.header: adhoc.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows Vista [desktop apps only]
req.target-min-winversvr: Windows Server 2008 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: Adhoc.idl
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- adhoc.h
api_name:
- IDot11AdHocInterface.GetDeviceSignature
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IDot11AdHocInterface::GetDeviceSignature


## -description


Gets the signature of the NIC. This signature is stored in the registry and it is used by TCP/IP to uniquely identify the NIC. 


## -parameters




### -param pSignature [in, out]

The signature of the NIC.


## -returns



Possible return values include, but are not limited to, the following.

<table>
<tr>
<th>Return code</th>
<th>Description</th>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>S_OK</b></dt>
</dl>
</td>
<td width="60%">
The method completed successfully.

</td>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>E_FAIL</b></dt>
</dl>
</td>
<td width="60%">
The method failed.

</td>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>E_INVALIDARG</b></dt>
</dl>
</td>
<td width="60%">
One of the parameters is invalid.

</td>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>E_OUTOFMEMORY</b></dt>
</dl>
</td>
<td width="60%">
The method could not allocate the memory required to perform this operation.

</td>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>E_POINTER</b></dt>
</dl>
</td>
<td width="60%">
A pointer passed as a parameter is not valid.

</td>
</tr>
</table>
 




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/adhoc/nn-adhoc-idot11adhocinterface">IDot11AdHocInterface</a>
 

 

