Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As you see,the question content,describe a situation as following:
In the Application:
<pre lang="C++">
BYTE SharedBuffer[256];
DeviceIoControl(device,SlefDefineNum,InputData,4,SharedBuffer,256,&ReLen,0);
</pre>

In the Driver:
<pre lang="C">
char*OutPut;
OutPut=(char*)MmMapIoSpace(MmGetPhysicalAddress((PVOID)((ULONG)(Irp->AssociatedIrp.SystemBuffer)+4)),256,0);
</pre>

what worry me is "if the Irp returned,the Irp will be deleted,what about the buffer it passed in? even,what about the buffer if it had be Mapped to an system-space,do them will be UnMapped when the irp returned?"

waiting & thanks for you answer...
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900