| Author: arumugapandian 10 Sep 2012 Member Level: Bronze Points : 3 (Rs 2) Voting Score: 0 |
Yes, You can do this in C++.
Please find the details below. 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++; }
|