阅读:1671回复:1
急问:在驱动中间创建一个文件夹总是返回NT_STATUS_OBJECT_NAME_INVALID
555,请教各位大侠,这俩天被驱动快搞疯了
相关代码如下: OBJECT_ATTRIBUTES objectAttributes; HANDLE hFile; IO_STATUS_BLOCK iostatus; UNICODE_STRING DirectoryUnicodeString; RtlInitUnicodeString(&DirectoryUnicodeString,L"\\??\\F:\\download_recv\\"); InitializeObjectAttributes(&objectAttributes,&DirectoryUnicodeString,OBJ_CASE_INSENSITIVE|OBJ_KERNEL_HANDLE,NULL,NULL); status = ZwCreateFile(&hFile, GENERIC_WRITE|GENERIC_READ, &objectAttributes, &iostatus, NULL, FILE_ATTRIBUTE_NORMAL, FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OVERWRITE_IF, FILE_DIRECTORY_FILE, NULL, 0); |
|
|
沙发#
发布于:2009-10-05 11:36
问题已解决:是ZwCreateFile参数的问题
|
|
|