public InterceptCDRomDevice(IntPtr pFrom, IntPtr pTo, int size) { Wdm.DbgPrint("Hello driver constructor called!!\r\n"); this.pFrom = pFrom; this.pTo = pTo; this.size = size; }
public uint ReadCompleted(IntPtr pBuffer, int offset, int size) { var result = Wdm.memmem(pBuffer + offset, size, pFrom, this.size); if (result != IntPtr.Zero) { Wdm.DbgPrint("Draw BABEL!!\r\n"); Wdm.memcpy(result, pTo, this.size); } return(0); // STATUS_SUCCESS }