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.

49 lines
1.1 KiB

  1. //
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1999
  5. //
  6. // Author: AdamEd
  7. // Date: October 1998
  8. //
  9. // Class Store path query / persistence
  10. //
  11. //
  12. //---------------------------------------------------------------------
  13. #if !defined(_CSPATH_HXX_)
  14. #define _CSPATH_HXX_
  15. #define APPMGMT_INI_FILENAME L"\\AppMgmt.ini"
  16. #define APPMGMT_INI_CSTORE_SECTIONNAME L"ClassStore"
  17. #define APPMGMT_INI_CSPATH_KEYNAME L"ClassStorePath"
  18. //
  19. // Define the maximum size of the class store path --
  20. // this size is 100 megabytes. Serious scalability
  21. // issues would occur before we'd hit such a limit.
  22. //
  23. #define MAX_CSPATH_SIZE 0x50000000
  24. HRESULT GetAppmgmtIniFilePath(
  25. PSID pSid,
  26. LPWSTR* ppwszPath);
  27. LONG GetClassStorePathSize(
  28. HANDLE hFile,
  29. DWORD* pdwSize);
  30. LONG ReadClassStorePathFromFile(
  31. HANDLE hFile,
  32. WCHAR* wszDestination,
  33. DWORD cbSize);
  34. HRESULT ReadClassStorePath(
  35. PSID pSid,
  36. LPWSTR* pwszClassStorePath);
  37. #endif // !defined(_CSPATH_HXX_)