ZwCreateFile returns STATUS_OBJECT_PATH_NOT_FOUND

Hi,

Tuesday, September 25, 2001, 2:33:18 PM, you wrote:

I need to acces/create the config file from the driver.

This code always return c000003a(STATUS_OBJECT_PATH_NOT_FOUND)

{
UNICODE_STRING m_unFileName;
OBJECT_ATTRIBUTES oaFile;
IO_STATUS_BLOCK m_IoStatusBlock

RtlInitUnicodeString( &m_unFileName, L"\??\C:\KEYBASE.CFG" );
InitializeObjectAttributes( &oaFile, &m_unFileName, OBJ_CASE_INSENSITIVE, NULL, NULL );

return ZwCreateFile( &m_hFile,
GENERIC_WRITE | GENERIC_WRITE,
&oaFile,
&m_IoStatusBlock,
0,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_WRITE | FILE_SHARE_READ,
FILE_OPEN_IF,
FILE_SYNCHRONOUS_IO_NONALERT,
NULL,
0 );
}

Is it possible to use symbolic link in driver entry?

And what about to delete UNICODE_STRING’s ?


Best regards,
Sergey mailto:kipnis@wp.pl


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