Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Console program Flag?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Sat Sep 10, 2016 2:56 pm    Post subject: Console program Flag? Reply with quote

So I was wandering around stackoverflow, when I saw this thread: http://stackoverflow.com/questions/574911/difference-between-windows-and-console-application

The first response explains quite well how a program is identified as windowed or as console, so my question would be, where exactly in the PE header is this windowed flag?

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Sat Sep 10, 2016 4:06 pm    Post subject: Reply with quote

As the answer explains, you have the usual IMAGE_NT_HEADER structure (first link), which has a member called "OptionalHeader"
There then is a pointer to the, guess what Wink, IMAGE_OPTIONAL_HEADER structure (second link), which now contains the mentioned "subsystem" field.

https://msdn.microsoft.com/de-de/library/windows/desktop/ms680336(v=vs.85).aspx

https://msdn.microsoft.com/de-de/library/windows/desktop/ms680339(v=vs.85).aspx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites