6 #include "../instapi_lib/instapi_lib.h"
8 #include "Poco/SingletonHolder.h"
10 static Poco::SingletonHolder<InstAPILib>
inst_api;
17 static const IID*
const arr[] =
22 for (
int i=0; i <
sizeof(arr) /
sizeof(arr[0]); i++)
24 if (InlineIsEqualGUID(*arr[i],riid))
36 return the_api->setBlockValue(block_name, block_value);
38 catch(std::exception& ex)
40 AtlReportError(GetObjectCLSID(), ex.what());
54 catch(std::exception& ex)
56 AtlReportError(GetObjectCLSID(), ex.what());
66 CComPtr<Cblock::Iblock> the_block;
67 the_block.CoCreateInstance(CLSID_block, 0, CLSCTX_INPROC_SERVER);
76 CComPtr<Cblock::Iblock> the_block;
77 the_block.CoCreateInstance(CLSID_block, 0, CLSCTX_INPROC_SERVER);
HRESULT InterfaceSupportsErrorInfo(REFIID riid)
HRESULT getBlockValue(BSTR block_name, VARIANT *block_value)
HRESULT setBlockValue(BSTR block_name, VARIANT block_value)
Poco::SingletonHolder< InstAPILib > inst_api
HRESULT getBlock2(BSTR name, Iblock **block)
void getBlockValue(ULONG session_id, BSTR block_name, VARIANT *block_value)
HRESULT getBlock(BSTR name, IDispatch **block)