Click here to Skip to main content
15,896,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can I SendMessage() to another user's window within the same computer? Pin
Saurabh.Garg20-Nov-08 15:01
Saurabh.Garg20-Nov-08 15:01 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham20-Nov-08 15:19
Darrel Q Pham20-Nov-08 15:19 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Saurabh.Garg20-Nov-08 17:33
Saurabh.Garg20-Nov-08 17:33 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham20-Nov-08 18:39
Darrel Q Pham20-Nov-08 18:39 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Saurabh.Garg20-Nov-08 19:15
Saurabh.Garg20-Nov-08 19:15 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham20-Nov-08 19:46
Darrel Q Pham20-Nov-08 19:46 
AnswerRe: Can I SendMessage() to another user's window within the same computer? Pin
Randor 20-Nov-08 22:16
professional Randor 20-Nov-08 22:16 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham21-Nov-08 15:09
Darrel Q Pham21-Nov-08 15:09 
Thanks again.

Another thing I forgot to mention is this will be for Server 2003, which allows multiple interactive station vs. XP which only allows one. I didnt mention this because I just found this out. I'm using XP right now, and this explains why I wrote my hwnd to a file(casting it as a dword) from program A in login/station A, and then open it with program B in login/station B, and failed when I attempt to use SendMessage with the hwnd that I read from the file. I will set up Server2003 to confirm this.

From reading the links you guys gave me above, I think I can use OpenWindowStation() to open the login/station I want, use the hwinsta handle that the function returns, and use SetProcessWindowStation() to give my process access to that login/station. Then at this point I could use FindWindow() to find the window that I want to send the message to, and use SendMessage() to communicate with that window. When all is done, I can bring my process back to the previous login/station.

This is unrelated, but if I said above is correct, does this mean I can launch my process in login/station A, set my process to belong to login/station B, create a thread in login/station B, spun an mfc dialog box inside that thread, set my process to belong to login/station A again, and it'll work correctly even if I have global variables that the dialog box accesses in my main process in the user A?
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Randor 22-Nov-08 3:03
professional Randor 22-Nov-08 3:03 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham25-Nov-08 10:14
Darrel Q Pham25-Nov-08 10:14 
QuestionFaster than memcpy()... Pin
bulg20-Nov-08 11:50
bulg20-Nov-08 11:50 
AnswerRe: Faster than memcpy()... Pin
BobInNJ20-Nov-08 12:51
BobInNJ20-Nov-08 12:51 
GeneralRe: Faster than memcpy()... Pin
PJ Arends20-Nov-08 14:41
professionalPJ Arends20-Nov-08 14:41 
GeneralRe: Faster than memcpy()... Pin
Randor 20-Nov-08 22:30
professional Randor 20-Nov-08 22:30 
GeneralRe: Faster than memcpy()... Pin
BobInNJ21-Nov-08 6:06
BobInNJ21-Nov-08 6:06 
GeneralRe: Faster than memcpy()... Pin
Randor 21-Nov-08 6:21
professional Randor 21-Nov-08 6:21 
AnswerRe: Faster than memcpy()... Pin
cmk20-Nov-08 16:51
cmk20-Nov-08 16:51 
QuestionA Question about Constructors Pin
BobInNJ20-Nov-08 8:17
BobInNJ20-Nov-08 8:17 
AnswerRe: A Question about Constructors Pin
led mike20-Nov-08 8:55
led mike20-Nov-08 8:55 
AnswerRe: A Question about Constructors Pin
Venkata Rama Subbarao20-Nov-08 9:08
Venkata Rama Subbarao20-Nov-08 9:08 
QuestionNeed Help in Read a file at compilation time to initialize variable Pin
scamguru20-Nov-08 7:16
scamguru20-Nov-08 7:16 
AnswerRe: Need Help in Read a file at compilation time to initialize variable Pin
Code-o-mat20-Nov-08 7:28
Code-o-mat20-Nov-08 7:28 
GeneralRe: Need Help in Read a file at compilation time to initialize variable Pin
scamguru20-Nov-08 7:30
scamguru20-Nov-08 7:30 
GeneralRe: Need Help in Read a file at compilation time to initialize variable Pin
toxcct20-Nov-08 7:38
toxcct20-Nov-08 7:38 
QuestionDefinitive Direct3D example Pin
Jim Crafton20-Nov-08 7:09
Jim Crafton20-Nov-08 7:09 

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.