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.

74 lines
2.6 KiB

  1. #ifndef __sysinv__
  2. #define __sysinv__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. * Function:
  8. * BOOL WINAPI GetSystemInventory(INT type, LPTSTR szInventory);
  9. *
  10. * Description:
  11. * Get system inventory information by type caller asked
  12. *
  13. * Parameters:
  14. * INT type: specify what type information caller. Should be one of INV_* constants
  15. * LPTSTR szInventory: The description of specific item information on return. The contents depends on item type.
  16. * The length of the buffer has to be at least 256.
  17. *
  18. * Return Value:
  19. * TRUE on success.
  20. * FALSE on failure. szInventory[0] is also assigned 0
  21. */
  22. BOOL WINAPI GetSystemInventory(INT, LPTSTR);
  23. #define INV_OEM 1 // szInventory: Descriptive string
  24. #define INV_PROCESSORTYPE 2 // szInventory: Descriptive string
  25. #define INV_TOTALMEMORY 3 // szInventory: Descriptive string
  26. #define INV_TOTALHDSPACE 4 // szInventory: Descriptive string
  27. #define INV_DISPRESOLUTION 5 // szInventory: Descriptive string
  28. #define INV_DISPCOLORDEPTH 6 // szInventory: Descriptive string
  29. #define INV_WINVERSION 7 // szInventory: Descriptive string
  30. #define INV_NETCARD 8 // szInventory: Descriptive string
  31. #define INV_MODEM 9 // szInventory: Descriptive string
  32. #define INV_POINTDEVICE 10 // szInventory: Descriptive string
  33. #define INV_CDROM 11 // szInventory: Descriptive string
  34. #define INV_SOUNDCARD 12 // szInventory: Descriptive string
  35. #define INV_REMOVEABLEMEDIA 13 // szInventory: Descriptive string
  36. #define INV_COPRECESSOR 14 // szInventory[0] = 1 for available, 0 for nonavailable
  37. #define INV_SCSIADAPTER 15 //
  38. #define INV_DISPLAY_ADAPTER 16 // Display Adapter with Driver
  39. #define INV_DISPLAY_WITH_RESOLUTION 17 // Display Adapter and Color resolution
  40. #ifdef __cplusplus
  41. } /* ... extern "C" */
  42. #endif
  43. #endif
  44. #include <tchar.h>
  45. void GetOEMString(LPTSTR);
  46. void GetProcessorTypeString(LPTSTR);
  47. void GetTotalMemoryString(LPTSTR);
  48. void GetTotalHardDiskSpaceString(LPTSTR);
  49. void GetDisplayResolutionString(LPTSTR);
  50. void GetDisplayColorDepthString(LPTSTR);
  51. void GetWindowsVersionString(LPTSTR);
  52. void GetNetworkCardString(LPTSTR);
  53. void GetModemString(LPTSTR);
  54. void GetPointingDeviceString(LPTSTR);
  55. void GetCDRomString(LPTSTR);
  56. void GetSoundCardString(LPTSTR);
  57. void GetRemoveableMediaString(LPTSTR);
  58. void GetScsiAdapterString(LPTSTR szInventory);
  59. void GetDisplayAdapter(LPTSTR szDisplayAdapter);
  60. void GetDisplayAdapterWithResolution(LPTSTR);
  61. BOOL IsCoProcessorAvailable(void);
  62. LONG GetTotalHardDiskSpace(void);
  63. void GetDisplayCharacteristics(PINT, PINT, PINT);
  64. void GetWindowsVersion(LONG*, LONG*, LONG*,LONG*);