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.

35 lines
702 B

  1. //*************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation 1998
  4. // All rights reserved
  5. //
  6. // main.cxx
  7. //
  8. //*************************************************************
  9. #include "appmgmt.hxx"
  10. extern "C" BOOLEAN
  11. AppmgmtInitialize(
  12. HINSTANCE hInstance,
  13. DWORD dwReason,
  14. LPVOID lpReserved
  15. )
  16. {
  17. switch (dwReason)
  18. {
  19. case DLL_PROCESS_ATTACH :
  20. InitDebugSupport( DEBUGMODE_CLIENT );
  21. gpEvents = new CEvents();
  22. break;
  23. case DLL_PROCESS_DETACH :
  24. if ( ghRpc )
  25. RpcBindingFree( &ghRpc );
  26. delete gpEvents;
  27. break;
  28. }
  29. return TRUE;
  30. }