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.

62 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (c) Microsoft Corporation. All rights reserved.
  5. //
  6. // File: rpcssl.h
  7. //
  8. // Contents: prototypes for RemoteProcedure Call API functions
  9. // that use types from wincrypt.h
  10. //
  11. //----------------------------------------------------------------------------
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #ifdef RPC_UNICODE_SUPPORTED
  19. #ifdef UNICODE
  20. #define RpcCertGeneratePrincipalName RpcCertGeneratePrincipalNameW
  21. #else /* UNICODE */
  22. #define RpcCertGeneratePrincipalName RpcCertGeneratePrincipalNameA
  23. #endif /* UNICODE */
  24. RPCRTAPI
  25. RPC_STATUS
  26. RPC_ENTRY
  27. RpcCertGeneratePrincipalNameW(
  28. PCCERT_CONTEXT Context,
  29. DWORD Flags,
  30. WCHAR ** pBuffer
  31. );
  32. RPCRTAPI
  33. RPC_STATUS
  34. RPC_ENTRY
  35. RpcCertGeneratePrincipalNameA(
  36. PCCERT_CONTEXT Context,
  37. DWORD Flags,
  38. unsigned char ** pBuffer
  39. );
  40. #else /* RPC_UNICODE_SUPPORTED */
  41. RPCRTAPI
  42. RPC_STATUS
  43. RPC_ENTRY
  44. RpcCertGeneratePrincipalName(
  45. PCCERT_CONTEXT Context,
  46. DWORD Flags,
  47. unsigned char ** pBuffer
  48. );
  49. #endif /* RPC_UNICODE_SUPPORTED */
  50. #ifdef __cplusplus
  51. }
  52. #endif