Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHide styles and break MDI Pin
mkristof5-Sep-04 4:53
mkristof5-Sep-04 4:53 
GeneralEmulating clipboard copy/paste Pin
Kamis4-Sep-04 23:10
Kamis4-Sep-04 23:10 
GeneralRe: Emulating clipboard copy/paste Pin
David Salter5-Sep-04 1:21
David Salter5-Sep-04 1:21 
GeneralRe: Emulating clipboard copy/paste Pin
Kamis5-Sep-04 3:20
Kamis5-Sep-04 3:20 
GeneralLightweight XML reader/writer lib Pin
peterchen4-Sep-04 22:26
peterchen4-Sep-04 22:26 
GeneralRe: Lightweight XML reader/writer lib Pin
Neville Franks5-Sep-04 0:24
Neville Franks5-Sep-04 0:24 
GeneralRe: Lightweight XML reader/writer lib Pin
Dominik Reichl5-Sep-04 1:36
Dominik Reichl5-Sep-04 1:36 
QuestionHow to use CreateRemoteThread on every process in every windowstation ? Pin
n4_t14-Sep-04 17:39
n4_t14-Sep-04 17:39 
Hi,

My purpose is:
- Write a service
- This service must create thread on every process (on every WindowStation)

Problem is:
CreateRemoteThread in MSDN wrote:
Terminal Services isolates each terminal session by design. Therefore,
CreateRemoteThread fails if the target process is in a different session
than the calling process.
If have many users is loging then have many session. I want to
CreateRemoteThread of every session.

My solution is:
- The first, find window station of the process which I must create thread
on it (use WTSEnumerateProcesses)
- The second, use SetProcessWindowStation to assign a window station to the
calling process (is my service). Result my service will operation on the
window station which I must create thread on a process on it.
- Then, use CreateRemoteThread to create thread. Now, CreateRemoteThread is
successful.

Is this solution true ?

Thank in advance.
PTM.


n4_t1
AnswerRe: How to use CreateRemoteThread on every process in every windowstation ? Pin
gamitech5-Sep-04 9:20
gamitech5-Sep-04 9:20 
GeneralRemoving IWebBrowser2 'sunken' look Pin
Ritcho4-Sep-04 16:45
Ritcho4-Sep-04 16:45 
GeneralRe: Removing IWebBrowser2 'sunken' look Pin
Neville Franks5-Sep-04 0:40
Neville Franks5-Sep-04 0:40 
GeneralDouble to CString Conversion using fcvt Pin
Charlie Curtis4-Sep-04 16:45
Charlie Curtis4-Sep-04 16:45 
GeneralRe: Double to CString Conversion using fcvt Pin
David Crow4-Sep-04 17:14
David Crow4-Sep-04 17:14 
GeneralRe: Double to CString Conversion using fcvt Pin
Charlie Curtis4-Sep-04 18:19
Charlie Curtis4-Sep-04 18:19 
GeneralC++ Termplate Issue.... Pin
Kandjar4-Sep-04 16:18
Kandjar4-Sep-04 16:18 
GeneralRe: C++ Termplate Issue.... Pin
PJ Arends4-Sep-04 17:15
professionalPJ Arends4-Sep-04 17:15 
GeneralRe: C++ Termplate Issue.... Pin
Kandjar4-Sep-04 18:06
Kandjar4-Sep-04 18:06 
GeneralRe: C++ Termplate Issue.... Pin
PJ Arends4-Sep-04 23:15
professionalPJ Arends4-Sep-04 23:15 
GeneralRe: C++ Termplate Issue.... Pin
Kandjar5-Sep-04 12:26
Kandjar5-Sep-04 12:26 
GeneralRe: C++ Termplate Issue.... Pin
Antti Keskinen5-Sep-04 1:22
Antti Keskinen5-Sep-04 1:22 
GeneralRe: C++ Termplate Issue.... Pin
Kandjar5-Sep-04 11:59
Kandjar5-Sep-04 11:59 
GeneralRe: C++ Termplate Issue.... Pin
Michael Dunn5-Sep-04 6:11
sitebuilderMichael Dunn5-Sep-04 6:11 
GeneralRe: C++ Termplate Issue.... Pin
Kandjar5-Sep-04 12:03
Kandjar5-Sep-04 12:03 
Generalhex digit format Pin
S.W.4-Sep-04 11:32
S.W.4-Sep-04 11:32 
GeneralRe: hex digit format Pin
Archer2824-Sep-04 15:22
Archer2824-Sep-04 15:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.