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.

37 lines
545 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #include "precomp.h"
  8. #include <arena.h>
  9. static class WbemComnInitializer
  10. {
  11. public:
  12. WbemComnInitializer()
  13. {
  14. CWin32DefaultArena::WbemHeapInitialize( GetProcessHeap() );
  15. }
  16. } g_WbemComnInitializer;
  17. void* __cdecl operator new ( size_t size )
  18. {
  19. return CWin32DefaultArena::WbemMemAlloc( size );
  20. }
  21. void __cdecl operator delete ( void* pv )
  22. {
  23. CWin32DefaultArena::WbemMemFree( pv );
  24. }