Frnd!
yes you can do this in C++.
To connecto any server : use
HANDLE hServer = WTSOpenServer(char *ServerName);
This returns the handle to the server.
With this handle, enumerate the process on the server machine using the api
DWORD pCount = 0
PWTS_PROCESS_INFO ppProcessInfo,pProcess
WTSEnumerateProcesses(hServer,0,1,&ppProcessInfo,&pCount);
for(int i = 0; i < pCount; i++)
{
pProcess->pProcessName;
pProcess++;
}
With this process structure. Iterate for the "iexplore.exe" and if it exists kill the process!
Hope this will help u.