U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » FindFile::IsExecutable() [Feature request]
Re: FindFile::IsExecutable() [Feature request] [message #25728 is a reply to message #25726] Tue, 09 March 2010 13:22 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3464
Registered: August 2008
Senior Veteran
Hello Honza

This is true:
Quote:

Checking the magic number is probably the safest (and slowest) method. Also I read somewhere that even "ZM" should work


This is uncertain Smile :
Quote:

and some executables could even start with "PE".


The "PE" chars are inside the header but not in the beginning. In this case "MZ" will be also in the beginning of the file.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format(Time time, bool seconds) problem
Next Topic: CParser enhancements
Goto Forum:
  


Current Time: Thu Oct 15 14:03:54 GMT+2 2026

Total time taken to generate the page: 0.06271 seconds