我在Dispatch里面创建共享内存,PVOIDCreateAndMapMemory(){ PVOID buffer; PMDL mdl; PVOID userVAToReturn; // // Allocate a 4K buffer t...
全文
回复(9) 2004-11-06 15:06 来自版块 - ABC初学者
表情
cicada在我创建的系统线程中可否调用MmUnmapLockedPages()函数来释放我先前分配的一块共享内存。(2005-01-07 10:11)
IoriKingdom谢谢楼上的大哥,但是还是不行,我这样改了 HANDLE hSemaphore; hSemaphore=*((HANDLE*)(pIrp->AssociatedIrp.SystemBuffer)); ObRe...(2004-11-10 11:19)
AllenZh上次我不是说了将 *((PVOID *)(pIrp->AssociatedIrp.SystemBuffer))=pUserVirtualAddress; 修改为 *(ULONG *)(pIrp->AssociatedIrp.SystemBuffer))=(U...(2004-11-10 09:25)
IoriKingdom晕了,现在又有问题了,返回的指针为NULL的 不知道哪里有问题 PVOID pShareMemory=NULL; DWORD dwDev=0; SetLastError(0); if(!DeviceIoControl(m_hDevice, ...(2004-11-09 23:23)
IoriKingdom给分(2004-11-08 10:09)
IoriKingdom谢谢楼上几位大哥 找出问题所在了,是线程的问题(2004-11-08 10:06)
snowStartBaseAddress If AccessMode = UserMode, this parameter specifies the starting user address to map the MDL to, or NULL to allow the system to...(2004-11-08 09:05)
AllenZh*((PVOID*)pIrp->AssociatedIrp.SystemBuffer)=pShareMemory; 修改一下 *((PVOID*)pIrp->AssociatedIrp.SystemBuffer)相当于PVOID *,也就是指针的指针。修改为 m...(2004-11-07 21:27)
arthurtuBaseAddress If AccessMode = UserMode, this parameter specifies the starting user address to map the MDL to, or NULL to allow the system to...(2004-11-07 20:36)

返回顶部