33909Fermer33911
BrunniLe 15/05/2018 à 07:31
CoInitialize(NULL);
// Create an instance of the shell class
IShellDispatch4 *pShellDisp = NULL;
HRESULT sc = CoCreateInstance(CLSID_Shell, NULL, CLSCTX_SERVER, IID_IDispatch, (LPVOID *)&pShellDisp);
// Show the desktop
sc = pShellDisp->ToggleDesktop();
pShellDisp->Release();