SetupDiGetDeviceRegistryProperty

SetupDiGetDeviceRegistryPropertyで、指定のプロパティを取得する。

SetupDiGetDeviceRegistryPropertyW 関数 (setupapi.h) - Win32 apps | Microsoft Learn

今回は、クラスプロパティのサイズだけ取得。
SDGDRP.cppで、

とすると、

こうなる。
こうなる。

こうなる。
サイズはバイト単位。

Sample/winapi/SetupDiGetDeviceRegistryProperty/SDGDRP/src/SDGDRP at master · bg1bgst333/Sample · GitHub