checking a program if it is console or windows form?

T

Tolga Tanriverdi

I want to write a script that checks the choosen program based on gui design
or console design?
Is something like that possible if it is how?
 
G

Guest

Hi,

Tricky question, actually the programs are the same, they just implement
different objects!... Maybe you have to find the solution using reflection on
those apps and try to figure if they implement any System.Windows.Form
object...

Sorry for not being helpful,
Salva
 
R

Richard Blewett [DevelopMentor]

Actually the information is in the PE header of the file.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndebug/html/msdn_peeringpe.asp

http://www.codeguru.com/Cpp/W-P/system/misc/article.php/c2897

So if you crack the PE header you'll be able to find out whether the .exe is supposed to run with a console or not.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

Tricky question, actually the programs are the same, they just implement
different objects!... Maybe you have to find the solution using reflection on
those apps and try to figure if they implement any System.Windows.Form
object...

Sorry for not being helpful,
Salva


Tolga Tanriverdi said:
I want to write a script that checks the choosen program based on gui design
or console design?
Is something like that possible if it is how?

[microsoft.public.dotnet.languages.csharp]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top