The HrSendProgManCommand function sends one or more commands to the Program Manager.
HRESULT HrSendProgManCommand( LPDWORD lpIdInst, LPSTR lpszCommand );
See Return Values.