IServerSecurity.cs 976 B

123456789101112131415161718192021222324252627282930313233
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel.ComIntegration
  5. {
  6. using System.Runtime.InteropServices;
  7. [ComImport,
  8. Guid("0000013E-0000-0000-C000-000000000046"),
  9. InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  10. internal interface IServerSecurity
  11. {
  12. void QueryBlanket
  13. (
  14. IntPtr authnSvc,
  15. IntPtr authzSvc,
  16. IntPtr serverPrincipalName,
  17. IntPtr authnLevel,
  18. IntPtr impLevel,
  19. IntPtr clientPrincipalName,
  20. IntPtr Capabilities
  21. );
  22. [PreserveSig]
  23. int ImpersonateClient();
  24. [PreserveSig]
  25. int RevertToSelf();
  26. [PreserveSig]
  27. [return: MarshalAs(UnmanagedType.Bool)]
  28. bool IsImpersonating();
  29. }
  30. }