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.

26 lines
459 B

  1. #include "precomp.h"
  2. #include <arena.h>
  3. #include <corex.h>
  4. static class WbemComnInitializer
  5. {
  6. public:
  7. WbemComnInitializer()
  8. {
  9. CWin32DefaultArena::WbemHeapInitialize( GetProcessHeap() );
  10. }
  11. } g_WbemComnInitializer;
  12. void* __cdecl operator new ( size_t size )
  13. {
  14. return CWin32DefaultArena::WbemMemAlloc( size );
  15. }
  16. void __cdecl operator delete ( void* pv )
  17. {
  18. CWin32DefaultArena::WbemMemFree( pv );
  19. }