Help me!
How I can create directory on Ring 0?
Function IFS_Mgr_Ring0_FileIO can’t made it…
–
Best regards,
Xupypg mailto:xxxxx@aport.ru
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You’re talking about Win9x platform, right?
Here is the code that I’m using (with the help of VtoolsD)
BOOL CreateDirectory( LPCSTR pszDirName, WORD* wError )
{
// Root folder always exists
if( strlen( pszDirName ) <= 3 )
{
return TRUE;
}
ALLREGS aRegs;
memset( &aRegs, 0, sizeof(aRegs) );
aRegs.REAX = 0x7139;
aRegs.REDX = (DWORD)pszDirName;
aRegs.RFLAGS = 0x200;
Exec_VxD_Int( 0x21, &aRegs );
*wError = (WORD)aRegs.REAX;
return ((aRegs.RFLAGS & 0x0001) == 0);
}
Basic idea is that you can call DOS’s int 21 service from your VxD and it
will work.
Regards,
Vladimir
-----Original Message-----
From: Xupypg [mailto:xxxxx@aport.ru]
Sent: Wednesday, August 22, 2001 3:55 AM
To: NT Developers Interest List
Subject: [ntdev] Create Directory
Help me!
How I can create directory on Ring 0?
Function IFS_Mgr_Ring0_FileIO can’t made it…
–
Best regards,
Xupypg mailto:xxxxx@aport.ru
You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> -----Original Message-----
From: Xupypg [mailto:xxxxx@aport.ru]
Sent: Wednesday, August 22, 2001 3:55 AM
Help me!
How I can create directory on Ring 0?
Function IFS_Mgr_Ring0_FileIO can’t made it…
Will ZwCreateFile() work for you?
–cla
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com