Hi!
Can somebody tell me exactly what a
“complete NT filepath” means?
concreetly: if I use something like
SysHandle = CreateFile(
“\\?\d:\wallpaper.bmp”,
GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL );
works fine unsder User mode, but
under Kernel mode,
ObjectAttributes.Length = sizeof(OBJECT_ATTRIBUTES);
ObjectAttributes.ObjectName = &(SourceName);
ObjectAttributes.RootDirectory = NULL;
ObjectAttributes.SecurityDescriptor = NULL;
ObjectAttributes.SecurityQualityOfService = NULL;
ObjectAttributes.Attributes = 0x0;
Status = ZwOpenFile(
&SourceHandle,
FileHandle,
GENERIC_READ,
DesiredAccess,
&ObjectAttributes,
POBJECT_ATTRIBUTES ObjectAttributes,
&IoStatusBlock,
PIO_STATUS_BLOCK IoStatusBlock,
FILE_SHARE_READ,
FILE_NON_DIRECTORY_FILE
);
says always “The filename, directory name,
or volume label syntax is incorrect.”
and I initialize SourceName to the same,
as above, “\\?\d:\wallpaper.bmp”.
why is that?
thanks,
Sandor
Do you want a free e-mail for life ? Get it at http://www.kolozsvar.ro/
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com