windows-nt/Source/XPSP1/NT/shell/ext/systray/test/main.cpp

28 lines
485 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include <windows.h>
#include <objbase.h>
#include <docobj.h>
#include <initguid.h>
#include "stobject.h"
int __cdecl main()
{
HRESULT hr;
IOleCommandTarget* ptgt;
hr = CoInitialize(NULL);
if (SUCCEEDED(hr))
{
hr = CoCreateInstance(CLSID_SysTray, NULL, CLSCTX_INPROC_SERVER,
IID_IOleCommandTarget, (void**) &ptgt);
if (SUCCEEDED(hr))
{
ptgt->Release();
}
CoUninitialize();
}
return 0;
}