123456789101112131415161718192021222324 |
- #ifndef BASE_WIN_SCOPED_DEVINFO_H_
- #define BASE_WIN_SCOPED_DEVINFO_H_
- #include <setupapi.h>
- #include "base/scoped_generic.h"
- namespace base {
- namespace win {
- struct DevInfoScopedTraits {
- static HDEVINFO InvalidValue() { return INVALID_HANDLE_VALUE; }
- static void Free(HDEVINFO h) { SetupDiDestroyDeviceInfoList(h); }
- };
- using ScopedDevInfo = base::ScopedGeneric<HDEVINFO, DevInfoScopedTraits>;
- }
- }
- #endif
|