Source code of Windows XP (NT5)
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.

47 lines
740 B

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. dataconv.cxx
  5. Abstract:
  6. This module contains interpreter style routines that copy data
  7. into the buffer, copy data from the buffer, peek the buffer,
  8. and calcualte the size of the buffer.
  9. Author:
  10. Donna Liu (donnali) 09-Nov-1990
  11. Revision History:
  12. 26-Feb-1992 donnali
  13. Moved toward NT coding style.
  14. --*/
  15. #include <string.h>
  16. #include <sysinc.h>
  17. #include <rpc.h>
  18. #include <rpcdcep.h>
  19. #include <rpcndr.h>
  20. extern "C" {
  21. void __RPC_FAR * __RPC_API MIDL_user_allocate (size_t);
  22. }
  23. void PAPI * RPC_ENTRY
  24. midl_allocate (
  25. size_t size)
  26. {
  27. void PAPI * p;
  28. p = MIDL_user_allocate (size);
  29. if (!p) RpcRaiseException (RPC_X_NO_MEMORY);
  30. return p;
  31. }