CM_Get_Device_Interface_List_Size function
The CM_Get_Device_Interface_List_Size function retrieves the buffer size that must be passed to the CM_Get_Device_Interface_List function.
Syntax
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size( _Out_ PULONG pulLen, _In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_W pDeviceID, _In_ ULONG ulFlags );
Parameters
- pulLen [out]
-
Caller-supplied pointer to a location that receives the required length, in characters, of a buffer to hold the multiple Unicode strings that will be returned by CM_Get_Device_Interface_List.
- InterfaceClassGuid [in]
-
Supplies a GUID that identifies a device interface class.
- pDeviceID [in, optional]
-
Caller-supplied pointer to a NULL-terminated string that represents a device instance ID. If specified, the function retrieves the length of symbolic link names for the device interfaces that are supported by the device, for the specified class. If this value is NULL, or if it points to a zero-length string, the function retrieves the length of symbolic link names for all interfaces that belong to the specified class.
- ulFlags [in]
-
Contains one of the following caller-supplied flags:
Return value
If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the error codes with the CR_ prefix as defined in Cfgmgr32.h.
Requirements
|
Target platform | |
|---|---|
|
Version |
Available in Microsoft Windows 2000 and later versions of Windows. |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
CM_Get_Device_Interface_List_SizeW (Unicode) and CM_Get_Device_Interface_List_SizeA (ANSI) |
See also