Leaked source code of windows server 2003
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.

47 lines
1.3 KiB

  1. /*
  2. File Description:
  3. This file contains all the functions shared by riprep, factory, and sysprep.
  4. User of these functions must link to sysprep.lib.
  5. We will eventually move sysprep_c.w in here.
  6. */
  7. #ifndef _SYSLIB_H
  8. #define _SYSLIB_H
  9. #include <cfgmgr32.h>
  10. #include <setupapi.h>
  11. // ============================================================================
  12. // Global Constants
  13. // ============================================================================
  14. #define INIBUF_SIZE 4096
  15. #define INIBUF_GROW 4096
  16. // ============================================================================
  17. // DEVIDS.H
  18. // ============================================================================
  19. #define DEVID_ARRAY_SIZE 100
  20. #define DEVID_ARRAY_GROW 50
  21. typedef struct DEVIDLIST_TAG
  22. {
  23. TCHAR szHardwareID[MAX_DEVICE_ID_LEN];
  24. TCHAR szCompatibleID[MAX_DEVICE_ID_LEN];
  25. TCHAR szINFFileName[MAX_PATH];
  26. } DEVIDLIST, *LPDEVIDLIST;
  27. // Functions
  28. BOOL BuildDeviceIDList
  29. (
  30. LPTSTR lpszSectionName,
  31. LPTSTR lpszIniFileName,
  32. LPGUID lpDeviceClassGUID,
  33. LPDEVIDLIST *lplpDeviceIDList,
  34. LPDWORD lpdwNumDeviceIDs,
  35. BOOL bForceIDScan,
  36. BOOL bForceAlwaysSecExist
  37. );
  38. #endif // _SYSLIB_H