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.

41 lines
1.6 KiB

  1. /*++
  2. Copyright (C) 2000 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. ldmemmgr.cxx
  6. Abstract:
  7. This file contains the memory management functions for both
  8. RPC and all objects instantiated within the application
  9. Author:
  10. Khaled Sedky (khaleds) 18 January 2000
  11. Revision History:
  12. --*/
  13. #define NOMINMAX
  14. #include <nt.h>
  15. #include <ntrtl.h>
  16. #include <nturtl.h>
  17. #include <windows.h>
  18. #include <winspool.h>
  19. #include <winsplp.h>
  20. #include <rpc.h>
  21. #include <splcom.h>
  22. #include <time.h>
  23. #include "winddiui.h"
  24. #include <splwow64.h>
  25. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t len)
  26. {
  27. return(new(unsigned char[len]));
  28. }
  29. void __RPC_USER MIDL_user_free(void __RPC_FAR *p)
  30. {
  31. delete(p);
  32. }