Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Am I reaching a limit? Pin
TBK30-Apr-02 6:45
TBK30-Apr-02 6:45 
GeneralRe: Am I reaching a limit? Pin
lucy30-Apr-02 7:02
lucy30-Apr-02 7:02 
GeneralRe: Am I reaching a limit? Pin
Tim Smith30-Apr-02 7:08
Tim Smith30-Apr-02 7:08 
GeneralRe: Am I reaching a limit? Pin
lucy30-Apr-02 8:21
lucy30-Apr-02 8:21 
GeneralCreateProcess - file privileges Pin
30-Apr-02 5:54
suss30-Apr-02 5:54 
GeneralRe: CreateProcess - file privileges Pin
Phil.Benson30-Apr-02 8:19
professionalPhil.Benson30-Apr-02 8:19 
GeneralRe: CreateProcess - file privileges Pin
Ram Cronus1-May-02 0:22
Ram Cronus1-May-02 0:22 
GeneralRe: CreateProcess - file privileges Pin
Phil.Benson1-May-02 21:51
professionalPhil.Benson1-May-02 21:51 
I do not know about creating a process as a user, but I did the following..

CString _sTitle("Title of the window");
STARTUPINFO stInfo;
PROCESS_INFORMATION psInfo;

ZeroMemory(&stInfo, sizeof(STARTUPINFO));
ZeroMemory(&psInfo, sizeof(PROCESS_INFORMATION));
stInfo.cb = sizeof(stInfo);
stInfo.cbReserved2 = NULL;
stInfo.lpDesktop = NULL;
stInfo.dwFlags = STARTF_USESHOWWINDOW;
stInfo.wShowWindow = SW_SHOW;
stInfo.lpTitle = _sTitle.GetBuffer(_sTitle.GetLength());
_sTitle.ReleaseBuffer();



CreateProcess("watchdog.exe",
"cmdline params" ,
NULL,
NULL,
TRUE,
CREATE_NEW_PROCESS_GROUP | CREATE_NEW_CONSOLE ,
NULL,
NULL,
&stInfo,
&psInfo);


// Wait a bit for the process to init
// But maximal 5 seconds
WaitForInputIdle(psInfo.hProcess, 5000);

It might be that the process is initializing ?



GeneralRe: CreateProcess - file privileges Pin
Ram Cronus2-May-02 4:34
Ram Cronus2-May-02 4:34 
GeneralConvert int to CString Pin
30-Apr-02 5:24
suss30-Apr-02 5:24 
GeneralRe: Convert int to CString Pin
Mike Zinni30-Apr-02 5:31
Mike Zinni30-Apr-02 5:31 
GeneralGet Integer Value from database Pin
30-Apr-02 5:52
suss30-Apr-02 5:52 
GeneralRe: Get Integer Value from database Pin
Nish Nishant30-Apr-02 6:03
sitebuilderNish Nishant30-Apr-02 6:03 
GeneralRe: Get Integer Value from database Pin
Alexandru Savescu30-Apr-02 6:29
Alexandru Savescu30-Apr-02 6:29 
GeneralRe: Get Integer Value from database Pin
Tom Archer30-Apr-02 7:43
Tom Archer30-Apr-02 7:43 
GeneralRe: Convert int to CString Pin
1-May-02 20:10
suss1-May-02 20:10 
GeneralLogin dialog problem Pin
solini30-Apr-02 5:23
solini30-Apr-02 5:23 
GeneralRe: Login dialog problem Pin
Thomas Freudenberg30-Apr-02 5:37
Thomas Freudenberg30-Apr-02 5:37 
GeneralRe: Login dialog problem Pin
Joaquín M López Muñoz30-Apr-02 5:39
Joaquín M López Muñoz30-Apr-02 5:39 
GeneralRe: Login dialog problem Pin
l a u r e n30-Apr-02 8:09
l a u r e n30-Apr-02 8:09 
GeneralRe: Login dialog problem - Solved Pin
30-Apr-02 8:16
suss30-Apr-02 8:16 
QuestionHowto change background color without redrawing content ? Pin
Brian van der Beek30-Apr-02 5:20
Brian van der Beek30-Apr-02 5:20 
AnswerRe: Howto change background color without redrawing content ? Pin
Joaquín M López Muñoz30-Apr-02 5:35
Joaquín M López Muñoz30-Apr-02 5:35 
GeneralRe: Howto change background color without redrawing content ? Pin
Brian van der Beek2-May-02 4:25
Brian van der Beek2-May-02 4:25 
GeneralExiting a DirectShow movie on keypress... Pin
30-Apr-02 5:12
suss30-Apr-02 5:12 

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.