CM_Get_Device_ID (setupapi)
Last changed: -145.253.92.106

.
Summary
The CM_Get_Device_ID_Size function retrieves the buffer size required to hold a device instance ID for a device instance on the local machine.

Typically used to get the size of the buffer needed for a subsequent CM_Get_Device_ID call.

C# Signature:

[DllImport("setupapi.dll", SetLastError=true)]
static extern int CM_Get_Device_ID_Size(out int pulLen, UInt32 dnDevInst, int flags = 0);

VB Signature:

Declare Function CM_Get_Device_ID_Size Lib "setupapi.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation