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.

91 lines
2.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: dpapiprv.h
  8. //
  9. //--------------------------------------------------------------------------
  10. //
  11. // private header for secure storage
  12. //
  13. #ifndef __DPAPIPRV_H__
  14. #define __DPAPIPRV_H__
  15. #define SECURITY_WIN32
  16. #include <security.h>
  17. #include <spseal.h>
  18. #include <sspi.h>
  19. #include <secpkg.h>
  20. // use TEXT() so that cred_nt.c can use Unicode RPC
  21. #define DPAPI_LOCAL_ENDPOINT L"protected_storage"
  22. #define DPAPI_LOCAL_PROT_SEQ L"ncalrpc"
  23. #define DPAPI_BACKUP_ENDPOINT L"\\PIPE\\protected_storage"
  24. #define DPAPI_BACKUP_PROT_SEQ L"ncacn_np"
  25. #define DPAPI_LEGACY_BACKUP_ENDPOINT L"\\PIPE\\ntsvcs"
  26. #define DPAPI_LEGACY_BACKUP_PROT_SEQ L"ncacn_np"
  27. //
  28. // CryptProtect #defines
  29. #define REG_CRYPTPROTECT_LOC L"SOFTWARE\\Microsoft\\Cryptography\\Protect"
  30. #define REG_CRYPTPROTECT_PROVIDERS_SUBKEYLOC L"Providers"
  31. #define REG_CRYPTPROTECT_PREFERREDPROVIDER_VALUELOC L"Preferred"
  32. #define REG_CRYPTPROTECT_PROVIDERPATH_VALUELOC L"Image Path"
  33. #define REG_CRYPTPROTECT_PROVIDERNAME_VALUELOC L"Name"
  34. #define REG_CRYPTPROTECT_ALLOW_CACHEPW L"AllowCachePW"
  35. /* df9d8cd0-1501-11d1-8c7a-00c04fc297eb */
  36. #define CRYPTPROTECT_DEFAULT_PROVIDER_GUIDSZ L"df9d8cd0-1501-11d1-8c7a-00c04fc297eb"
  37. #define CRYPTPROTECT_DEFAULT_PROVIDER { 0xdf9d8cd0, 0x1501, 0x11d1, {0x8c, 0x7a, 0x00, 0xc0, 0x4f, 0xc2, 0x97, 0xeb} }
  38. #define CRYPTPROTECT_DEFAULT_PROVIDER_FRIENDLYNAME L"System Protection Provider"
  39. #define CRYPTPROTECT_DEFAULT_PROVIDER_ENCR_ALG L"Encr Alg"
  40. #define CRYPTPROTECT_DEFAULT_PROVIDER_MAC_ALG L"MAC Alg"
  41. #define CRYPTPROTECT_DEFAULT_PROVIDER_ENCR_ALG_KEYSIZE L"Encr Alg Key Size"
  42. #define CRYPTPROTECT_DEFAULT_PROVIDER_MAC_ALG_KEYSIZE L"MAC Alg Key Size"
  43. #define CRYPTPROTECT_DEFAULT_PROVIDER_CRYPT_PROV_TYPE L"Default CSP Type"
  44. //
  45. // This flag is used for the French version, indicating no encryption.
  46. #define CRYPTPROTECT_NO_ENCRYPTION 0x10000000
  47. #define CRYPTPROTECT_IN_PROCESS 0x20000000
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. //
  52. // Exports for lsasrv.dll
  53. //
  54. DWORD
  55. NTAPI
  56. DPAPIInitialize(
  57. LSA_SECPKG_FUNCTION_TABLE *pSecpkgTable);
  58. DWORD
  59. NTAPI
  60. DPAPIShutdown( );
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif // __DPAPIPRV_H__