Partager via


AdapterId

Provides the GUID that is used to uniquely identify the network interface in the cluster. The following table summarizes the attributes of the AdapterId property.

Attribute Value
Data type Null-terminated Unicode string
Access Read-only
Structure CLUSPROP_SZ
Maximum None (but see Maximum Property Size.)
Default NULL

Examples

The property value portion of a property list entry for AdapterId can be set with the following example code.

WCHAR szAdapterIdData[] = L"f605d1fd-e5de-4495-a680-44254c38d2d4";
CLUSPROP_SZ_DECLARE( AdapterIdValue, sizeof(szAdapterIdData) / sizeof(WCHAR) );

AdapterIdValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
AdapterIdValue.cbLength  = sizeof( szAdapterIdData );
StringCbCopy( AdapterIdValue.sz, AdapterIdValue.cbLength, szAdapterIdData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

See also

Network Interface Common Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE