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.

118 lines
1.9 KiB

4 years ago
  1. /* --------------------------------------------------------------------
  2. Microsoft OS/2 LAN Manager
  3. Copyright(c) Microsoft Corp., 1990
  4. -------------------------------------------------------------------- */
  5. /* --------------------------------------------------------------------
  6. File : clntapip.cxx
  7. Description :
  8. This file contains the private entry points into the client (and
  9. server) runtime.
  10. History :
  11. mikemon 02-02-91 Created.
  12. -------------------------------------------------------------------- */
  13. #include <precomp.hxx>
  14. #include <rpctran.h>
  15. #ifdef DOS
  16. THREAD ThreadStatic;
  17. #endif
  18. void PAPI * RPC_ENTRY
  19. I_RpcAllocate (
  20. IN unsigned int size
  21. )
  22. {
  23. #ifdef RPC_DELAYED_INITIALIZATION
  24. if ( RpcHasBeenInitialized == 0 )
  25. {
  26. if ( PerformRpcInitialization() != RPC_S_OK )
  27. {
  28. return(0);
  29. }
  30. }
  31. #endif // RPC_DELAYED_INITIALIZATION
  32. return(RpcpFarAllocate(size));
  33. }
  34. void RPC_ENTRY
  35. I_RpcFree (
  36. IN void PAPI * obj
  37. )
  38. {
  39. RpcpFarFree(obj);
  40. }
  41. void RPC_ENTRY
  42. I_RpcPauseExecution (
  43. IN unsigned long milliseconds
  44. )
  45. {
  46. PauseExecution(milliseconds);
  47. }
  48. extern "C"
  49. {
  50. void RPC_ENTRY
  51. I_RpcTimeReset(
  52. void
  53. )
  54. /*++
  55. Routine Description:
  56. This routine is no longer used, however, because it is exported by the
  57. dll, we need to leave the entry point.
  58. --*/
  59. {
  60. }
  61. void RPC_ENTRY
  62. I_RpcTimeCharge(
  63. unsigned int Ignore
  64. )
  65. /*++
  66. Routine Description:
  67. This routine is no longer used, however, because it is exported by the
  68. dll, we need to leave the entry point.
  69. --*/
  70. {
  71. UNUSED(Ignore);
  72. }
  73. unsigned long * RPC_ENTRY
  74. I_RpcTimeGet(
  75. char __RPC_FAR * Ignore
  76. )
  77. /*++
  78. Routine Description:
  79. This routine is no longer used, however, because it is exported by the
  80. dll, we need to leave the entry point.
  81. --*/
  82. {
  83. UNUSED(Ignore);
  84. return(0);
  85. }
  86. };