Re: CreateFile executable file types
- From: "Slava M. Usov" <stripit.slough@xxxxxxx>
- Date: Thu, 3 Aug 2006 14:20:53 +0200
"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
.
- Follow-Ups:
- Re: CreateFile executable file types
- From: Alexander Grigoriev
- Re: CreateFile executable file types
- Prev by Date: Re: Implementing a custom memory allocator
- Next by Date: Re: SetupDiGetClassDevs
- Previous by thread: Re: CreateFile executable file types
- Next by thread: Re: CreateFile executable file types
- Index(es):
Relevant Pages
|