Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 3372
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: Tue Jun 04 02:34:35 CEST 2024

Total time taken to generate the page: 0.01356 seconds