Re: CreateFile executable file types

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you give a poor thing any bogus file with ".com" extension, it will try
to run it under NTVDM...

"Slava M. Usov" <stripit.slough@xxxxxxx> wrote in message
news:eincPdvtGHA.324@xxxxxxxxxxxxxxxxxxxxxxx
"Pavel A." <pavel_a@xxxxxxxxxxxxxxx> wrote in message
news:AE83FA62-E975-4CFB-A36F-1D45E083690E@xxxxxxxxxxxxxxxx
I'm seing that CreateFile( NULL, "batch.cmd", ... ) runs batch.cmd, but
CreateFile( NULL, "batch.js", ... ) gives error 193 : not a valid win32
app. The .js extension is on my PATHEXT.

I guess you are talking about CreateProcess(), not CreateFile().

If I remember correctly, CreateProcess() has some built-in logic for a
handful of file types that are not PE. This is how, for example, 16 bit
executables work: when CreateProcess() understands that the executable is
not a win32 executable, it forwards the execution request to NTVDM.

S



.



Relevant Pages

  • Re: CreateFile executable file types
    ... The .js extension is on my PATHEXT. ... I guess you are talking about CreateProcess(), ... executables work: when CreateProcessunderstands that the executable is ...
    (microsoft.public.win32.programmer.kernel)
  • Application mapping - how can I dig deeper?
    ... Our dBASE executable files (.DBW extension) were generating 404 Errors ... When I add a web service extension pointing to the ... So my best assumption here is that the .dbw invokes other executables ...
    (microsoft.public.inetserver.iis)
  • Re: Why cant ISPs stop spam/virus ?!
    ... Both largely missing from your list above. ... then its extension can be considered ... for addition to one of the other lists. ... But you can allow zips while disallowing executables, ...
    (comp.os.linux.misc)
  • Re: File compatibility issues with LAN drive
    ... launch the application registered for that file extension. ... normally not make any difference from the point of view of windows. ... problem because Windows always wants to start them as executables. ... There are some really wild differences between *nix file permissions ...
    (sci.electronics.design)
  • Re: [SLE] CPU-Z For Linux?
    ... I went to my CLI and typed the /proc/cpu info. ... /proc/* are text files, not executables or scripts. ... extension. ... All the information is in KInfoCenter. ...
    (SuSE)