- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm inclined to keep it simple and simply test the value of GetStdHandle(STD_OUTPUT_HANDLE).
Otherwise, the info on application's subsystem can be obtained by examining PE header of the .exe by opening it as file in binary mode or maybe by OpenProcess/ReadProcessMemory(search for "PE header" in Google c.o.m.p.win32 archives or see www.sysinternals.com). Maybe the info can be obtained by undocumented APIs such as NtQuerySystemInformation, but I'm not familiar with it (and I've never used any of these techniques either).
Jugoslav
Otherwise, the info on application's subsystem can be obtained by examining PE header of the .exe by opening it as file in binary mode or maybe by OpenProcess/ReadProcessMemory(search for "PE header" in Google c.o.m.p.win32 archives or see www.sysinternals.com). Maybe the info can be obtained by undocumented APIs such as NtQuerySystemInformation, but I'm not familiar with it (and I've never used any of these techniques either).
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page