mirror of https://github.com/tongzx/nt5src
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.
28 lines
485 B
28 lines
485 B
#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;
|
|
}
|