Windows NT 4.0 source code leak
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.

76 lines
1.2 KiB

4 years ago
  1. /*++
  2. Copyright (c) 1990,91 Microsoft Corporation
  3. Module Name:
  4. rpcutil.h
  5. Abstract:
  6. This file contains prototypes for the bind and unbind functions that
  7. all net api stub functions will call. It also includes the allocate
  8. and free routines used by the MIDL generated RPC stubs.
  9. Author:
  10. Dan Lafferty danl 06-Feb-1991
  11. Scott Birrell (ScottBi) April 30, 1991 - LSA Version
  12. [Environment:]
  13. User Mode - Win32
  14. Revision History:
  15. --*/
  16. #ifndef _RPCUTIL_
  17. #define _RPCUTIL_
  18. #ifndef RPC_NO_WINDOWS_H // Don't let rpc.h include windows.h
  19. #define RPC_NO_WINDOWS_H
  20. #endif // RPC_NO_WINDOWS_H
  21. #include <rpc.h>
  22. //
  23. // DEFINES
  24. //
  25. // BUGBUG - Change these when RPC uses Win32 APIs for named pipes.
  26. //
  27. #define LOCAL_NMPIPE_NAME TEXT("\\Device\\Namedpipe\\")
  28. #define REMOTE_NMPIPE_NAME TEXT("\\Device\\LanmanRedirector\\")
  29. #define NT_PIPE_PREFIX TEXT("\\PIPE\\")
  30. //
  31. // Function Prototypes
  32. //
  33. void *
  34. MIDL_user_allocate(
  35. IN ULONG NumBytes
  36. );
  37. void
  38. MIDL_user_free(
  39. IN PVOID MemPointer
  40. );
  41. RPC_STATUS
  42. LsapBindRpc(
  43. IN PLSAPR_SERVER_NAME ServerName,
  44. OUT RPC_BINDING_HANDLE * pBindingHandle
  45. );
  46. RPC_STATUS
  47. LsapUnbindRpc(
  48. RPC_BINDING_HANDLE BindingHandle
  49. );
  50. #endif // _RPCUTIL_