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.

27 lines
485 B

  1. #include <windows.h>
  2. #include <objbase.h>
  3. #include <docobj.h>
  4. #include <initguid.h>
  5. #include "stobject.h"
  6. int __cdecl main()
  7. {
  8. HRESULT hr;
  9. IOleCommandTarget* ptgt;
  10. hr = CoInitialize(NULL);
  11. if (SUCCEEDED(hr))
  12. {
  13. hr = CoCreateInstance(CLSID_SysTray, NULL, CLSCTX_INPROC_SERVER,
  14. IID_IOleCommandTarget, (void**) &ptgt);
  15. if (SUCCEEDED(hr))
  16. {
  17. ptgt->Release();
  18. }
  19. CoUninitialize();
  20. }
  21. return 0;
  22. }