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.

155 lines
4.1 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name :
  4. globals.hxx
  5. Abstract:
  6. infocomm globals.
  7. --*/
  8. #ifndef _GLOBALS_HXX_
  9. #define _GLOBALS_HXX_
  10. //
  11. // inetsloc entry points
  12. //
  13. extern HINSTANCE g_hSvcLocDll;
  14. extern INET_REGISTER_SVC_FN pfnInetRegisterSvc;
  15. extern INET_DEREGISTER_SVC_FN pfnInetDeregisterSvc;
  16. //
  17. // ntdll
  18. //
  19. extern HINSTANCE g_hNtDll;
  20. // UNDONE remove? schannel no longer needed???
  21. //
  22. // schannel entrypoints
  23. //
  24. extern HINSTANCE g_hSchannel;
  25. extern SSL_CRACK_CERTIFICATE_FN fnCrackCert;
  26. extern SSL_FREE_CERTIFICATE_FN fnFreeCert;
  27. //
  28. // crypt32 entrypoints
  29. //
  30. // UNDONE move crypt32 typedefs to ???
  31. typedef
  32. WINCRYPT32API
  33. BOOL
  34. (WINAPI* CRYPT32_FREE_CERTCTXT_FN)(
  35. IN PCCERT_CONTEXT pCertContext
  36. );
  37. typedef
  38. WINCRYPT32API
  39. BOOL
  40. (WINAPI* CRYPT32_GET_CERTCTXT_PROP_FN)(
  41. IN PCCERT_CONTEXT pCertContext,
  42. IN DWORD dwPropId,
  43. OUT void *pvData,
  44. IN OUT DWORD *pcbData
  45. );
  46. typedef
  47. WINCRYPT32API
  48. LONG
  49. (WINAPI* CRYPT32_CERT_VERIFY_REVOCATION_FN)(
  50. IN DWORD dwEncodingType,
  51. IN DWORD dwRevType,
  52. IN DWORD cContext,
  53. IN PVOID rgpvContext[],
  54. IN DWORD dwFlags,
  55. IN PVOID pvReserved,
  56. IN OUT PCERT_REVOCATION_STATUS pRevStatus
  57. );
  58. typedef
  59. WINCRYPT32API
  60. LONG
  61. (WINAPI* CRYPT32_CERT_VERIFY_TIME_VALIDITY)(
  62. IN LPFILETIME pTimeToVerify,
  63. IN PCERT_INFO pCertInfo
  64. );
  65. typedef
  66. WINCRYPT32API
  67. DWORD
  68. (WINAPI* CRYPT32_CERT_NAME_TO_STR_A_FN)(
  69. IN DWORD dwCertEncodingType,
  70. IN PCERT_NAME_BLOB pName,
  71. IN DWORD dwStrType,
  72. OUT OPTIONAL LPSTR psz,
  73. IN DWORD csz
  74. );
  75. extern HINSTANCE g_hCrypt32Dll;
  76. extern CRYPT32_FREE_CERTCTXT_FN pfnFreeCertCtxt;
  77. extern CRYPT32_GET_CERTCTXT_PROP_FN pfnGetCertCtxtProp;
  78. extern CRYPT32_CERT_VERIFY_REVOCATION_FN pfnCertVerifyRevocation;
  79. extern CRYPT32_CERT_VERIFY_TIME_VALIDITY pfnCertVerifyTimeValidity;
  80. extern CRYPT32_CERT_NAME_TO_STR_A_FN pfnCertNameToStrA;
  81. //
  82. // sspi entrypoints
  83. //
  84. extern HINSTANCE g_hSecurityDll;
  85. extern ACCEPT_SECURITY_CONTEXT_FN pfnAcceptSecurityContext;
  86. extern ACQUIRE_CREDENTIALS_HANDLE_FN pfnAcquireCredentialsHandle;
  87. extern COMPLETE_AUTH_TOKEN_FN pfnCompleteAuthToken;
  88. extern DELETE_SECURITY_CONTEXT_FN pfnDeleteSecurityContext;
  89. extern ENUMERATE_SECURITY_PACKAGES_FN pfnEnumerateSecurityPackages;
  90. extern IMPERSONATE_SECURITY_CONTEXT_FN pfnImpersonateSecurityContext;
  91. extern INITIALIZE_SECURITY_CONTEXT_FN pfnInitializeSecurityContext;
  92. extern FREE_CONTEXT_BUFFER_FN pfnFreeContextBuffer;
  93. extern FREE_CREDENTIALS_HANDLE_FN pfnFreeCredentialsHandle;
  94. extern QUERY_CONTEXT_ATTRIBUTES_FN pfnQueryContextAttributes;
  95. extern QUERY_SECURITY_CONTEXT_TOKEN_FN pfnQuerySecurityContextToken;
  96. extern QUERY_SECURITY_PACKAGE_INFO_FN pfnQuerySecurityPackageInfo;
  97. extern REVERT_SECURITY_CONTEXT_FN pfnRevertSecurityContext;
  98. //
  99. // logon entry points
  100. //
  101. extern HINSTANCE g_hLogonDll;
  102. extern LOGON32_INITIALIZE_FN pfnLogon32Initialize;
  103. extern LOGON_NET_USER_A_FN pfnLogonNetUserA;
  104. extern LOGON_NET_USER_W_FN pfnLogonNetUserW;
  105. extern NET_USER_COOKIE_A_FN pfnNetUserCookieA;
  106. extern LOGON_DIGEST_USER_A_FN pfnLogonDigestUserA;
  107. extern GET_DEFAULT_DOMAIN_NAME_FN pfnGetDefaultDomainName;
  108. //
  109. // misc
  110. //
  111. extern DUPLICATE_TOKEN_EX_FN pfnDuplicateTokenEx;
  112. extern LSA_OPEN_POLICY_FN pfnLsaOpenPolicy;
  113. extern LSA_RETRIEVE_PRIVATE_DATA_FN pfnLsaRetrievePrivateData;
  114. extern LSA_STORE_PRIVATE_DATA_FN pfnLsaStorePrivateData;
  115. extern LSA_FREE_MEMORY_FN pfnLsaFreeMemory;
  116. extern LSA_CLOSE_FN pfnLsaClose;
  117. extern LSA_NT_STATUS_TO_WIN_ERROR_FN pfnLsaNtStatusToWinError;
  118. //
  119. // Functions used to start/stop the RPC server
  120. //
  121. typedef DWORD ( *PFN_INETINFO_START_RPC_SERVER) ( VOID );
  122. typedef DWORD ( *PFN_INETINFO_STOP_RPC_SERVER) ( VOID );
  123. #endif // _GLOBALS_HXX_