Re: CreateFile executable file types
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Thu, 3 Aug 2006 09:12:15 -0700
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
.
- References:
- Re: CreateFile executable file types
- From: Slava M. Usov
- Re: CreateFile executable file types
- Prev by Date: Re: Implementing a custom memory allocator
- Next by Date: Re: Implementing a custom memory allocator
- Previous by thread: Re: CreateFile executable file types
- Next by thread: How to know the action Machine owner of a file creation???
- Index(es):
Relevant Pages
|