Source code of Windows XP (NT5)
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.

30 lines
587 B

  1. // File: cb32stub.cpp
  2. #include <windows.h>
  3. #include <tchar.h>
  4. #include "SDKInternal.h"
  5. #ifdef _DEBUG
  6. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hInstPrev, LPSTR lpCmdLine, int nCmdShow)
  7. #else // _DEBUG
  8. int __cdecl main()
  9. #endif // _DEBUG
  10. {
  11. CoInitialize(NULL);
  12. IInternalConfExe* pConf = NULL;
  13. if(SUCCEEDED(CoCreateInstance(CLSID_NmManager, NULL, CLSCTX_LOCAL_SERVER, IID_IInternalConfExe, reinterpret_cast<void**>(&pConf))))
  14. {
  15. pConf->LaunchApplet(NM_APPID_CHAT, NULL);
  16. pConf->Release();
  17. }
  18. CoUninitialize();
  19. #ifndef _DEBUG
  20. ExitProcess(0);
  21. #endif
  22. return 0;
  23. }