Click here to Skip to main content
15,918,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pointer? Pin
geo_m26-Jul-03 5:20
geo_m26-Jul-03 5:20 
GeneralRe: Pointer? Pin
XP26-Jul-03 5:24
XP26-Jul-03 5:24 
AnswerRe: Pointer? Pin
wow999926-Jul-03 5:26
wow999926-Jul-03 5:26 
GeneralRe: Pointer? Pin
Maximilien26-Jul-03 5:42
Maximilien26-Jul-03 5:42 
GeneralRe: Pointer? Pin
Ravi Bhavnani26-Jul-03 7:28
professionalRavi Bhavnani26-Jul-03 7:28 
QuestionHow to block execution of GUI programs passed to command.com/cmd.exe Pin
nick4u26-Jul-03 3:47
nick4u26-Jul-03 3:47 
AnswerRe: How to block execution of GUI programs passed to command.com/cmd.exe Pin
spoulson26-Jul-03 4:55
spoulson26-Jul-03 4:55 
AnswerRe: How to block execution of GUI programs passed to command.com/cmd.exe Pin
Andrew Schetinin26-Jul-03 8:44
Andrew Schetinin26-Jul-03 8:44 
No, it cannot be done, at least not in a simple way.

There is no "pure DOS" in the modern Windows. cdm.exe executes both Windows and DOS programs.

As far as I know the only way to distinguish between a Win32 console (DOS-like) and Win32 GUI executable is to follow its WinAPI function calls AFTER it was executed or to perform a kind of reverse engineering to know which DLLs and functions supposed to be used by this executable.

Another way (not suitable but still) is to enumerate all windows in the executed process and detect the console window.

--
Best Regards,
Andrew
AnswerRe: How to block execution of GUI programs passed to command.com/cmd.exe Pin
Ryan Binns26-Jul-03 20:39
Ryan Binns26-Jul-03 20:39 
Questionsignal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George226-Jul-03 3:13
George226-Jul-03 3:13 
AnswerRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
Johnny ²26-Jul-03 4:21
Johnny ²26-Jul-03 4:21 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George226-Jul-03 16:36
George226-Jul-03 16:36 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
Johnny ²26-Jul-03 21:41
Johnny ²26-Jul-03 21:41 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George227-Jul-03 1:34
George227-Jul-03 1:34 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
Johnny ²27-Jul-03 6:55
Johnny ²27-Jul-03 6:55 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George227-Jul-03 15:59
George227-Jul-03 15:59 
Generala strange problemo.. Pin
safee ullah26-Jul-03 3:00
safee ullah26-Jul-03 3:00 
GeneralRe: a strange problemo.. Pin
geo_m26-Jul-03 4:46
geo_m26-Jul-03 4:46 
GeneralRe: a strange problemo.. Pin
safee ullah27-Jul-03 18:01
safee ullah27-Jul-03 18:01 
GeneralOffice XP colors Pin
Xakep26-Jul-03 1:51
Xakep26-Jul-03 1:51 
GeneralRe: Office XP colors Pin
Snyp26-Jul-03 3:09
Snyp26-Jul-03 3:09 
GeneralGeneral question about MFC app with database support Pin
kydfru26-Jul-03 0:39
kydfru26-Jul-03 0:39 
GeneralRe: General question about MFC app with database support Pin
Toni7826-Jul-03 7:40
Toni7826-Jul-03 7:40 
GeneralRe: General question about MFC app with database support Pin
Beer2626-Jul-03 7:41
Beer2626-Jul-03 7:41 
GeneralWin32 MDI child creation w/ lParam Pin
spoulson26-Jul-03 0:31
spoulson26-Jul-03 0:31 

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.