阅读:925回复:0
请问如何得到m_Irp->AssociatedIrp.SystemBuffer的大小?
在如下代码中我如何得到pBuffer所指向的内存的大小呢?就是如何获得m_Irp->AssociatedIrp.SystemBuffer的大小?有没有什么函数或者变量之类的
void MyTestDevice::SerialRead(KIrp I) { T.Trace(TraceInfo, __FUNCTION__"++. IRP %p\n", I); NTSTATUS status = STATUS_SUCCESS; // Get a pointer to the caller's buffer. PUCHAR pBuffer = (PUCHAR) I.BufferedReadDest(); |
|