阅读:2745回复:0
打开tcp设备失败,提示错误EA不对,望了解的达人给予指导
我的错误是0x80000014 The extended attribute (EA) list is inconsistent.
我也不知道Ea怎么没对,望知道的人帮忙指点一下 不知道这个错误是什么意思,望知道的达人帮忙指导一下,一次接触驱动下的网络开发 先谢谢了 我得代码 CHAR Buffer[sizeof (FILE_FULL_EA_INFORMATION) + TDI_CONNECTION_CONTEXT_LENGTH]; PFILE_FULL_EA_INFORMATION Ea = (PFILE_FULL_EA_INFORMATION)(Buffer); IO_STATUS_BLOCK IoStatus; RtlInitUnicodeString(&Name, L"\\Device\\Tcp"); InitializeObjectAttributes(&Attr, &Name,OBJ_CASE_INSENSITIVE, 0, 0); Ea->NextEntryOffset = 0; Ea->Flags = 0; Ea->EaNameLength = TDI_CONNECTION_CONTEXT_LENGTH; Ea->EaValueLength = 0; RtlCopyMemory(Ea->EaName, TdiConnectionContext, Ea->EaNameLength + 1); Status = ZwCreateFile(Handle, 0, &Attr, &IoStatus, 0, FILE_ATTRIBUTE_NORMAL, 0, FILE_OPEN, 0, Ea, sizeof(Buffer)); |
|
|