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.

60 lines
1.5 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cmsetup.h
  4. //
  5. // Module: CMSETUP.LIB
  6. //
  7. // Synopsis: This header defines all of the capabilities of the CM setup library.
  8. //
  9. // Copyright (c) 1998-1999 Microsoft Corporation
  10. //
  11. // Author: quintinb Created Header 08/19/99
  12. //
  13. //+----------------------------------------------------------------------------
  14. //
  15. // Standard Windows Includes
  16. //
  17. #include <windows.h>
  18. #include <tchar.h>
  19. //
  20. // Common CM includes
  21. //
  22. #include "cmglobal.h"
  23. #include "cmdebug.h"
  24. //
  25. // Other source file includes
  26. //
  27. #include "cmplat.h"
  28. #include "cversion.h"
  29. #include "cmakver.h"
  30. #include "cmver.h"
  31. #include "cfilename.h"
  32. #include "processcmdln.h"
  33. #include "setupmem.h"
  34. HRESULT LaunchInfSection(LPCTSTR szInfFile, LPCTSTR szInfSection, LPCTSTR szTitle, BOOL bQuiet);
  35. HRESULT CallLaunchInfSectionEx(LPCSTR pszInfFile, LPCSTR pszInfSection, DWORD dwFlags);
  36. BOOL CreateLayerDirectory(LPCTSTR str);
  37. BOOL FileExists(LPCTSTR pszFullNameAndPath);
  38. HRESULT GetModuleVersionAndLCID (LPTSTR pszFile, LPDWORD pdwVersion, LPDWORD pdwBuild, LPDWORD pdwLCID);
  39. LONG CmDeleteRegKeyWithoutSubKeys(HKEY hBaseKey, LPCTSTR pszSubKey, BOOL bIgnoreValues);
  40. BOOL CmIsNative();
  41. HRESULT ExtractCmBinsFromExe(LPTSTR pszPathToExtractFrom, LPTSTR pszPathToExtractTo);
  42. //
  43. // Common Macros
  44. //
  45. #define CELEMS(x) ((sizeof(x))/(sizeof(x[0])))
  46. //
  47. // Pre-shared key constants
  48. //
  49. const DWORD c_dwMaxPresharedKey = 256;
  50. const DWORD c_dwMinPresharedKeyPIN = 4;
  51. const DWORD c_dwMaxPresharedKeyPIN = 15;