SetupDiGetDeviceRegistryProperty function setupapi

int SetupDiGetDeviceRegistryProperty(
  1. int DeviceInfoSet,
  2. Pointer<SP_DEVINFO_DATA> DeviceInfoData,
  3. int Property,
  4. Pointer<Uint32> PropertyRegDataType,
  5. Pointer<Uint8> PropertyBuffer,
  6. int PropertyBufferSize,
  7. Pointer<Uint32> RequiredSize,
)

The SetupDiGetDeviceRegistryProperty function retrieves a specified Plug and Play device property.

BOOL SetupDiGetDeviceRegistryPropertyW(
  [in]            HDEVINFO         DeviceInfoSet,
  [in]            PSP_DEVINFO_DATA DeviceInfoData,
  [in]            DWORD            Property,
  [out, optional] PDWORD           PropertyRegDataType,
  [out, optional] PBYTE            PropertyBuffer,
  [in]            DWORD            PropertyBufferSize,
 [out, optional] PDWORD           RequiredSize
);

Implementation

int SetupDiGetDeviceRegistryProperty(
        int DeviceInfoSet,
        Pointer<SP_DEVINFO_DATA> DeviceInfoData,
        int Property,
        Pointer<Uint32> PropertyRegDataType,
        Pointer<Uint8> PropertyBuffer,
        int PropertyBufferSize,
        Pointer<Uint32> RequiredSize) =>
    _SetupDiGetDeviceRegistryProperty(DeviceInfoSet, DeviceInfoData, Property,
        PropertyRegDataType, PropertyBuffer, PropertyBufferSize, RequiredSize);