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.

72 lines
3.1 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 SYSINV_DLL_PRESENT 1
  24. #define SYSINV_DLL_NOTPRESENT 2
  25. int CheckSysInvDllPresent();
  26. void GetOEMString(HINSTANCE hInstance, LPTSTR szOEM);
  27. void GetProcessorTypeString(HINSTANCE hInstance, LPTSTR szProcessor);
  28. void GetTotalMemoryString(HINSTANCE hInstance, LPTSTR szTotalMemory);
  29. void GetTotalHardDiskSpaceString(HINSTANCE hInstance, LPTSTR szTotalHardDiskSpace);
  30. void GetDisplayResolutionString(HINSTANCE hInstance, LPTSTR szDisplayResolution);
  31. void GetDisplayColorDepthString(HINSTANCE hInstance, LPTSTR szDisplayColorDepth);
  32. void GetWindowsVersionString(HINSTANCE hInstance, LPTSTR szVersion);
  33. void GetNetworkCardString(HINSTANCE hInstance, LPTSTR szNetwork);
  34. void GetModemString(HINSTANCE hInstance, LPTSTR szModem);
  35. void GetPointingDeviceString(HINSTANCE hInstance, LPTSTR szPointingDevice);
  36. void GetCDRomString(HINSTANCE hInstance, LPTSTR szCDRom);
  37. void GetSoundCardString(HINSTANCE hInstance, LPTSTR szSoundCard);
  38. void GetRemoveableMediaString(HINSTANCE hInstance, LPTSTR szRemoveableMedia, int iBufSize);
  39. void GetSCSIAdapterString(HINSTANCE hInstance, LPTSTR szScsi);
  40. BOOL IsCoProcessorAvailable( HINSTANCE hInstance );
  41. LONG GetTotalHardDiskSpace( void );
  42. void GetDisplayCharacteristics(PINT horizResolution, PINT vertResolution,PINT colorDepth);
  43. void GetWindowsVersion(LONG* lpPlatform, LONG* lpMajorVersion,LONG* lpMinorVersion,LONG* lpBuildNumber);
  44. #define INV_OEM 1 // szInventory: Descriptive string
  45. #define INV_PROCESSORTYPE 2 // szInventory: Descriptive string
  46. #define INV_TOTALMEMORY 3 // szInventory: Descriptive string
  47. #define INV_TOTALHDSPACE 4 // szInventory: Descriptive string
  48. #define INV_DISPRESOLUTION 5 // szInventory: Descriptive string
  49. #define INV_DISPCOLORDEPTH 6 // szInventory: Descriptive string
  50. #define INV_WINVERSION 7 // szInventory: Descriptive string
  51. #define INV_NETCARD 8 // szInventory: Descriptive string
  52. #define INV_MODEM 9 // szInventory: Descriptive string
  53. #define INV_POINTDEVICE 10 // szInventory: Descriptive string
  54. #define INV_CDROM 11 // szInventory: Descriptive string
  55. #define INV_SOUNDCARD 12 // szInventory: Descriptive string
  56. #define INV_REMOVEABLEMEDIA 13 // szInventory: Descriptive string
  57. #define INV_COPRECESSOR 14 // szInventory[0] = 1 for available, 0 for nonavailable
  58. #define INV_SCSIADAPTER 15
  59. #define INV_DISPLAY_ADAPTER 16 // Display Adapter with Driver
  60. #define INV_DISPLAY_WITH_RESOLUTION 17 // Display Adapter and Color resolution //
  61. #ifdef __cplusplus
  62. } /* ... extern "C" */
  63. #endif
  64. #endif