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.

24 lines
437 B

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