Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD pid;
- CComPtr<IApplicationActivationManager> paam;
- CoCreateInstance(CLSID_ApplicationActivationManager, NULL, CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&paam));
- CoAllowSetForegroundWindow(paam, NULL);
- paam->ActivateForFile(pwszAppUserModelId, psia, L"open", &pid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement