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.

70 lines
1.5 KiB

  1. /********************************************************************/
  2. /** Copyright(c) 1989 Microsoft Corporation. **/
  3. /********************************************************************/
  4. //***
  5. //
  6. // Filename: rpcbind.c
  7. //
  8. // Description: Contains the RPC bind and un-bind routines for the DIM
  9. // Admin. client-side APIs.
  10. //
  11. // History:
  12. // June 11,1995. NarenG Created original version.
  13. //
  14. #include <nt.h>
  15. #include <ntrtl.h> // For ASSERT
  16. #include <nturtl.h> // needed for winbase.h
  17. #include <windows.h> // Win32 base API's
  18. #include <rpc.h>
  19. #include <ntseapi.h>
  20. #include <ntlsa.h>
  21. #include <ntsam.h>
  22. #include <ntsamp.h>
  23. #include <nturtl.h>
  24. #include <stdlib.h>
  25. #include <string.h>
  26. #include <wchar.h>
  27. #include "dimsvc_c.c"
  28. //**
  29. //
  30. // Call: DIM_HANDLE_bind
  31. //
  32. // Returns: The binding handle is returned to the stub routine. If the
  33. // binding is unsuccessful, a NULL will be returned.
  34. //
  35. // Description: This routine will simply return what was passed to it. The
  36. // RPC runtime will pass it a handle of the binding that was
  37. // obtained by calling DimRpcBind.
  38. //
  39. handle_t
  40. DIM_HANDLE_bind(
  41. IN DIM_HANDLE hDimServer
  42. )
  43. {
  44. return( (handle_t)hDimServer );
  45. }
  46. //**
  47. //
  48. // Call: DIM_HANDLE_unbind
  49. //
  50. // Returns: none
  51. //
  52. // Description: Unbinds from the RPC interface.
  53. //
  54. void
  55. DIM_HANDLE_unbind(
  56. IN DIM_HANDLE hDimServer,
  57. IN handle_t hBinding
  58. )
  59. {
  60. UNREFERENCED_PARAMETER( hDimServer );
  61. UNREFERENCED_PARAMETER( hBinding );
  62. return;
  63. }