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.

79 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. nlbind.h
  5. Abstract:
  6. Interface to the Netlogon service RPC handle cacheing routines
  7. Author:
  8. Cliff Van Dyke (01-Oct-1993)
  9. Revision History:
  10. --*/
  11. //
  12. // Interface between RPC and Netlogon's security package.
  13. //
  14. #ifndef RPC_C_AUTHN_NETLOGON
  15. #define RPC_C_AUTHN_NETLOGON 0x44
  16. #define NL_PACKAGE_NAME L"NetlogonSspi"
  17. #endif // RPC_C_AUTHN_NETLOGON
  18. ////////////////////////////////////////////////////////////////////////////
  19. //
  20. // Procedure forwards
  21. //
  22. ////////////////////////////////////////////////////////////////////////////
  23. typedef enum _NL_RPC_BINDING {
  24. UseAny = 0,
  25. UseNamedPipe,
  26. UseTcpIp
  27. } NL_RPC_BINDING;
  28. NET_API_STATUS
  29. NlBindingAttachDll (
  30. VOID
  31. );
  32. VOID
  33. NlBindingDetachDll (
  34. VOID
  35. );
  36. NTSTATUS
  37. NlBindingAddServerToCache (
  38. IN LPWSTR UncServerName,
  39. IN NL_RPC_BINDING RpcBindingType
  40. );
  41. NTSTATUS
  42. NlBindingSetAuthInfo (
  43. IN LPWSTR UncServerName,
  44. IN NL_RPC_BINDING RpcBindingType,
  45. IN BOOL SealIt,
  46. IN PVOID ClientContext,
  47. IN LPWSTR ServerContext
  48. );
  49. NTSTATUS
  50. NlBindingRemoveServerFromCache (
  51. IN LPWSTR UncServerName,
  52. IN NL_RPC_BINDING RpcBindingType
  53. );
  54. NTSTATUS
  55. NlRpcpBindRpc(
  56. IN LPWSTR ServerName,
  57. IN LPWSTR ServiceName,
  58. IN LPWSTR NetworkOptions,
  59. IN NL_RPC_BINDING RpcBindingType,
  60. OUT RPC_BINDING_HANDLE *pBindingHandle
  61. );