[ros-dev] CreateFileW doesn't support relative path???

Xiaoming Gao gxm.reactos at gmail.com
Mon Jan 18 13:00:11 CET 2010


Hi,guys:
it seems that CreateFileW doesn't support relative path to create a
file,,,weird....
the code belows:
 InitializeObjectAttributes(&ObjectAttributes,
 &NtPathU,
 0,
 NULL,
 NULL);
 if (lpSecurityAttributes)
 {
 if(lpSecurityAttributes->bInheritHandle)
 ObjectAttributes.Attributes |= OBJ_INHERIT;
 ObjectAttributes.SecurityDescriptor =
lpSecurityAttributes->lpSecurityDescriptor;
 }
 if(!(dwFlagsAndAttributes & FILE_FLAG_POSIX_SEMANTICS))
 ObjectAttributes.Attributes |= OBJ_CASE_INSENSITIVE;
 /* perform the call */
 Status = NtCreateFile (&FileHandle,
 dwDesiredAccess,
 &ObjectAttributes,
 &IoStatusBlock,
 NULL,
 FileAttributes,
 dwShareMode,
 dwCreationDisposition,
 Flags,
 EaBuffer,
 EaLength);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-dev/attachments/20100118/8c682ffd/attachment.htm 


More information about the Ros-dev mailing list

AltStyle によって変換されたページ (->オリジナル) /