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.

81 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Filename :
  4. Machines.h
  5. Abstract:
  6. Header for machines.c
  7. Author:
  8. Wally Ho (wallyho) 01-Feb-2000
  9. Revision History:
  10. Created
  11. --*/
  12. #ifndef MACHINES_H
  13. #define MACHINES_H
  14. #include <windows.h>
  15. #define MAX_WAVEOUT_DEVICES 2
  16. typedef struct
  17. _MACHINE_DETAILS{
  18. // System info
  19. DWORD dwNumberOfProcessors;
  20. DWORD dwProcessorType;
  21. DWORD dwProcessorLevel;
  22. DWORD dwProcessorRevision;
  23. // Types for the sound card.
  24. INT iNumWaveOutDevices; // Number of WaveOut Devices (~ number of sound cards)
  25. TCHAR szWaveOutDesc [MAX_WAVEOUT_DEVICES][128];// WaveOut description
  26. TCHAR szWaveDriverName[MAX_WAVEOUT_DEVICES][128];// Wave Driver name
  27. // Types for the video card.
  28. TCHAR szVideoInfo[ MAX_PATH ];
  29. TCHAR szVideoDisplayName[ MAX_PATH ];
  30. UINT iNumDisplays;
  31. //Type for the PNP Cards
  32. TCHAR szNetcards[ MAX_PATH ];
  33. TCHAR szModem [ MAX_PATH ];
  34. TCHAR szScsi [ MAX_PATH ];
  35. BOOL bUSB;
  36. BOOL bPCCard;
  37. BOOL bACPI;
  38. BOOL bIR;
  39. DWORD dwPhysicalRamInMB;
  40. } MACHINE_DETAILS, *LPMACHINE_DETAILS;
  41. // video cards Defines
  42. CONST LPTSTR VIDEOKEY = TEXT("SYSTEM\\CurrentControlSet\\Hardware Profiles\\Current\\System\\CurrentControlSet\\Services");
  43. CONST LPTSTR SERVICEKEY = TEXT("SYSTEM\\CurrentControlSet\\Services");
  44. CONST LPTSTR DEVICE_DESCR= TEXT("Device Description");
  45. CONST LPTSTR CHIP_TYPE = TEXT("HardwareInformation.ChipType");
  46. CONST LPTSTR DAC_TYPE = TEXT("HardwareInformation.DacType");
  47. CONST LPTSTR MEM_TYPE = TEXT("HardwareInformation.MemorySize");
  48. // Prototypes!
  49. DWORD GetCurrentMachinesBuildNumber( VOID );
  50. DWORD RandomMachineID ( VOID );
  51. VOID GetNTSoundInfo ( OUT LPMACHINE_DETAILS pMd);
  52. VOID GetVidInfo ( OUT LPMACHINE_DETAILS pMd);
  53. VOID GetPNPDevices ( OUT LPMACHINE_DETAILS pMd);
  54. BOOL IsHydra ( VOID );
  55. #endif