Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1990 - 1997 Microsoft Corporation
  3. Module Name:
  4. config.h
  5. Abstract:
  6. Header file for multiple hardware profile support
  7. Author:
  8. Muhunthan Sivapragasam (MuhuntS) 30-Apr-97
  9. Revision History:
  10. --*/
  11. #include <setupapi.h>
  12. #include <initguid.h>
  13. typedef
  14. (WINAPI * pfSetupDiDestroyDeviceInfoList)(
  15. IN HDEVINFO DeviceInfoSet
  16. );
  17. typedef
  18. HDEVINFO
  19. (WINAPI * pfSetupDiGetClassDevs)(
  20. IN LPGUID ClassGuid, OPTIONAL
  21. IN PCSTR Enumerator, OPTIONAL
  22. IN HWND hwndParent, OPTIONAL
  23. IN DWORD Flags
  24. );
  25. typedef
  26. BOOL
  27. (WINAPI * pfSetupDiRemoveDevice)(
  28. IN HDEVINFO DeviceInfoSet,
  29. IN OUT PSP_DEVINFO_DATA DeviceInfoData
  30. );
  31. typedef
  32. BOOL
  33. (WINAPI * pfSetupDiOpenDeviceInfo)(
  34. IN HDEVINFO DeviceInfoSet,
  35. IN PCWSTR DeviceInstanceId,
  36. IN HWND hwndParent, OPTIONAL
  37. IN DWORD OpenFlags,
  38. OUT PSP_DEVINFO_DATA DeviceInfoData OPTIONAL
  39. );
  40. typedef struct _SETUPAPI_INFO {
  41. HMODULE hSetupApi;
  42. pfSetupDiDestroyDeviceInfoList pfnDestroyDeviceInfoList;
  43. pfSetupDiGetClassDevs pfnGetClassDevs;
  44. pfSetupDiRemoveDevice pfnRemoveDevice;
  45. pfSetupDiOpenDeviceInfo pfnOpenDeviceInfo;
  46. } SETUPAPI_INFO, *PSETUPAPI_INFO;