C++ - Open Control Panel item in the same window -


i have windows-based application. i'm trying open control panel item following way:

enumwindows(enumwindowsprocmy, ppid); iopencontrolpanel *ppanel = null; coinitialize(nullptr); hresult hr = cocreateinstance(clsid_opencontrolpanel, null,     clsctx_inproc_server, iid_iopencontrolpanel,     (void**)&ppanel); if (failed(hr)) {     return -1; } ppanel->open(custom_guid, null, null); 

this opens control panel item in new window. there way navigate control panel item in open window? have handle window.

if have running instance of control panel can like.

retrieves pointer running object has been registered.

sample code

iunknown *puk = null;          hresult hr = getactiveobject(clsid_opencontrolpanel, 0, &puk); return (hr == s_ok); 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -