I used ZwCreateFile to create a file in Win ME OS. I got a
blue screen saying Windows Protection Error. According to
Walter Oney ZwXXX routines are not supported by Win 9x and
if used an error similar to what I have got will be seen.
Is there any other way to create a file in kernel mode on
Win ME OS?

Creation of a file on Win ME OS by vipin

vipin
Mon Nov 17 03:54:57 CST 2003

BTW Zw* routines are in ntdll.dll which as the name
suggests are for NT series. If you r planning to write a
kernel printer driver for ME, u r mistaken, drivers on ME
are win16 user mode drivers
vipin
>-----Original Message-----
>I used ZwCreateFile to create a file in Win ME OS. I got
a
>blue screen saying Windows Protection Error. According to
>Walter Oney ZwXXX routines are not supported by Win 9x
and
>if used an error similar to what I have got will be seen.
>Is there any other way to create a file in kernel mode on
>Win ME OS?
>.
>

Re: Creation of a file on Win ME OS by Walter

Walter
Mon Nov 17 05:17:42 CST 2003

Suneet Agera wrote:
> I used ZwCreateFile to create a file in Win ME OS. I got a
> blue screen saying Windows Protection Error. According to
> Walter Oney ZwXXX routines are not supported by Win 9x and
> if used an error similar to what I have got will be seen.
> Is there any other way to create a file in kernel mode on
> Win ME OS?

The FILEIO sample in my book shows exactly how to do this.

--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com

Creation of a file on Win ME OS by Suneet

Suneet
Mon Nov 17 06:45:08 CST 2003

We are maintaining printer drivers for a client whose
identity cannot be disclosed. The same code is used to
build the .sys files for Win 9x, WinME , Win 2000 or
WinXP. The OS is passed as a parameter to the build
command which is a .bat file. So we do use kernel mode
drivers in WinME. Our problem is that the OS is not coming
out of standby in WinME when a printer is installed. We
want to log debug messages to a file so that we get the
logs of what happened till the time we reboot the machine.
That is why I want to create a file in WinME. Against this
backdrop, Do u know any routine to create a file. Zw* as u
say cannot be invoked as it is included in ntdll.dll. Then
What do I use?
>-----Original Message-----
>BTW Zw* routines are in ntdll.dll which as the name
>suggests are for NT series. If you r planning to write a
>kernel printer driver for ME, u r mistaken, drivers on ME
>are win16 user mode drivers
>vipin
>>-----Original Message-----
>>I used ZwCreateFile to create a file in Win ME OS. I got
>a
>>blue screen saying Windows Protection Error. According
to
>>Walter Oney ZwXXX routines are not supported by Win 9x
>and
>>if used an error similar to what I have got will be
seen.
>>Is there any other way to create a file in kernel mode
on
>>Win ME OS?
>>.
>>
>.
>

Re: Creation of a file on Win ME OS by anonymous

anonymous
Mon Nov 17 07:00:54 CST 2003

Thanx Walter. Thanx a lot.
>-----Original Message-----
>Suneet Agera wrote:
>> I used ZwCreateFile to create a file in Win ME OS. I
got a
>> blue screen saying Windows Protection Error. According
to
>> Walter Oney ZwXXX routines are not supported by Win 9x
and
>> if used an error similar to what I have got will be
seen.
>> Is there any other way to create a file in kernel mode
on
>> Win ME OS?
>
>The FILEIO sample in my book shows exactly how to do this.
>
>--
>Walter Oney, Consulting and Training
>Basic and Advanced Driver Programming Seminars
>Check out our schedule at http://www.oneysoft.com
>.
>

Re: Creation of a file on Win ME OS by Alexander

Alexander
Mon Nov 17 09:17:40 CST 2003

You can delay file creation until WDM file system becomes available, to
avoid dealing with VxD filesystem:

bool IsFilesystemAvailable()
{
#if defined(_M_IX86)
if (IsWindows2000OrNewer())
{
return true;
}

ULONG SystemInitState = 0;

_asm
{
int 0x20 /* VMMcall GetSystemInitState */
_emit 0x11
_emit 0x01
_emit 0x01
_emit 0x00
mov SystemInitState, eax
};

TRACE("System init state=%x\n", SystemInitState);
return SystemInitState >= 0x50000000u
&& SystemInitState < 0xA0000000u;
#else
return true;
#endif
}


"Suneet Agera" <suneet.agera@wipro.com> wrote in message
news:070601c3ad08$a20424b0$a301280a@phx.gbl...
> We are maintaining printer drivers for a client whose
> identity cannot be disclosed. The same code is used to
> build the .sys files for Win 9x, WinME , Win 2000 or
> WinXP. The OS is passed as a parameter to the build
> command which is a .bat file. So we do use kernel mode
> drivers in WinME. Our problem is that the OS is not coming
> out of standby in WinME when a printer is installed. We
> want to log debug messages to a file so that we get the
> logs of what happened till the time we reboot the machine.
> That is why I want to create a file in WinME. Against this
> backdrop, Do u know any routine to create a file. Zw* as u
> say cannot be invoked as it is included in ntdll.dll. Then
> What do I use?
> >-----Original Message-----
> >BTW Zw* routines are in ntdll.dll which as the name
> >suggests are for NT series. If you r planning to write a
> >kernel printer driver for ME, u r mistaken, drivers on ME
> >are win16 user mode drivers
> >vipin
> >>-----Original Message-----
> >>I used ZwCreateFile to create a file in Win ME OS. I got
> >a
> >>blue screen saying Windows Protection Error. According
> to
> >>Walter Oney ZwXXX routines are not supported by Win 9x
> >and
> >>if used an error similar to what I have got will be
> seen.
> >>Is there any other way to create a file in kernel mode
> on
> >>Win ME OS?
> >>.
> >>
> >.
> >