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.

54 lines
1.5 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // detection.h
  3. //
  4. // Copyright (C) Microsoft Corp. 1998
  5. // All rights reserved
  6. //
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9. // Description:
  10. // DLL loaded by the install engine that exposes entry points
  11. // that can determines the installation status of legacy or complex
  12. // components. The dll name and entry points are specified for a
  13. // component in the CIF file.
  14. /////////////////////////////////////////////////////////////////////////////
  15. //
  16. // Modified by RogerJ, 03/08/00
  17. // Original Creator Unknown
  18. // Modification --- UNICODE and Win64 ready
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. const TCHAR HKEY_LOCAL_MACHINE_ROOT[] = TEXT("HKLM");
  22. const TCHAR HKEY_CURRENT_USER_ROOT[] = TEXT("HKCU");
  23. const TCHAR HKEY_CLASSES_ROOT_ROOT[] = TEXT("HKCR");
  24. const TCHAR HKEY_CURRENT_CONFIG_ROOT[] = TEXT("HKCC");
  25. const TCHAR HKEY_USERS_ROOT[] = TEXT("HKUR");
  26. const TCHAR HKEY_PERFORMANCE_DATA_ROOT[] = TEXT("HKPD");
  27. const TCHAR HKEY_DYN_DATA_ROOT[] = TEXT("HKDD");
  28. const TCHAR REG_BINARY_TYPE[] = TEXT("BINARY");
  29. const TCHAR REG_NONE_TYPE[] = TEXT("NONE");
  30. const TCHAR REG_DWORD_TYPE[] = TEXT("DWORD");
  31. const TCHAR REG_SZ_TYPE[] = TEXT("SZ");
  32. const DWORD MAX_VERSION_STRING_LEN = 30;
  33. typedef struct
  34. {
  35. TCHAR szName[MAX_PATH];
  36. DWORD type;
  37. union
  38. {
  39. DWORD dw;
  40. TCHAR sz[MAX_PATH];
  41. };
  42. } TargetRegValue;
  43. typedef union
  44. {
  45. DWORD dw;
  46. TCHAR sz[MAX_PATH];
  47. } ActualKeyValue;