|
|
От: | ZVlad | |
| Дата: | 08.02.07 14:42 | ||
| Оценка: | |||
#include <stdafx.h>
#include <shlobj.h>
#include <objbase.h>
#include <iostream>
#include <comdef.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
CoInitialize(NULL) ;
HMODULE ins;
IActiveDesktop *pActiveDesktop;
HRESULT hr;
hr = CoCreateInstance(CLSID_ActiveDesktop,NULL, CLSCTX_INPROC_SERVER,IID_IActiveDesktop,
(void**)&pActiveDesktop);
cout<<hr<<endl;
CoUninitialize();
return 0;
}