Click here to Skip to main content
15,894,740 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: HELP!!I code due tomorrow Pin
BAIJUMAX16-Sep-04 4:28
professionalBAIJUMAX16-Sep-04 4:28 
Question《c++ template》,what means the following text? Pin
lzh086-Sep-04 17:20
lzh086-Sep-04 17:20 
AnswerRe: 《c++ template》,what means the following text? Pin
Christian Graus15-Sep-04 14:26
protectorChristian Graus15-Sep-04 14:26 
GeneralC++ Problem please respond Pin
jonny55555-Sep-04 22:52
jonny55555-Sep-04 22:52 
GeneralControlling services Pin
Its due when5-Sep-04 21:28
Its due when5-Sep-04 21:28 
Generalopen file Pin
kikicat4-Sep-04 20:33
kikicat4-Sep-04 20:33 
GeneralRe: open file Pin
Christian Graus15-Sep-04 14:28
protectorChristian Graus15-Sep-04 14:28 
QuestionHow to use CreateRemoteThread on every process in every windowstation ? Pin
n4_t14-Sep-04 17:41
n4_t14-Sep-04 17:41 
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
Generalpseudocode Pin
rapchick3-Sep-04 11:29
rapchick3-Sep-04 11:29 
QuestionHow to add a reference in VC++ Pin
kayhustle3-Sep-04 7:07
kayhustle3-Sep-04 7:07 
AnswerRe: How to add a reference in VC++ Pin
BAIJUMAX7-Sep-04 0:37
professionalBAIJUMAX7-Sep-04 0:37 
GeneralRe: How to add a reference in VC++ Pin
kayhustle7-Sep-04 16:22
kayhustle7-Sep-04 16:22 
GeneralNewbie question Pin
Daniel3000i31-Aug-04 7:52
Daniel3000i31-Aug-04 7:52 
GeneralHELP!! Pin
jrsivo27-Aug-04 14:07
jrsivo27-Aug-04 14:07 
Questionhow to split a String Pin
dana_krycek2125-Aug-04 0:39
dana_krycek2125-Aug-04 0:39 
AnswerRe: how to split a String Pin
BAIJUMAX30-Aug-04 19:53
professionalBAIJUMAX30-Aug-04 19:53 
GeneralIDE Disparity Pin
doctrane24-Aug-04 19:09
doctrane24-Aug-04 19:09 
GeneralClass Library (.net) Pin
anacris23-Aug-04 13:27
anacris23-Aug-04 13:27 
QuestionInternetCrackUrl- freeing memory? Pin
Member 45587823-Aug-04 9:00
Member 45587823-Aug-04 9:00 
GeneralAdding classes and functions in VC++ Express Edition Pin
Majid Shahabfar22-Aug-04 10:01
Majid Shahabfar22-Aug-04 10:01 
GeneralRe: Adding classes and functions in VC++ Express Edition Pin
Anonymous19-Sep-04 14:14
Anonymous19-Sep-04 14:14 
GeneralInterfering with a print job! Help!!! Pin
miloX21-Aug-04 1:06
miloX21-Aug-04 1:06 
GeneralStrange :o| Pin
User 91483320-Aug-04 12:55
User 91483320-Aug-04 12:55 
Questionhow do you get shell extensions to run? Pin
Member 130861119-Aug-04 5:27
Member 130861119-Aug-04 5:27 
GeneralDesktop sharing application in vc++.net Pin
Member 69638018-Aug-04 19:14
Member 69638018-Aug-04 19:14 

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.