Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. DWORD pid;
  2. CComPtr<IApplicationActivationManager> paam;
  3. CoCreateInstance(CLSID_ApplicationActivationManager, NULL, CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&paam));
  4. CoAllowSetForegroundWindow(paam, NULL);
  5. paam->ActivateForFile(pwszAppUserModelId, psia, L"open", &pid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement