コード例 #1
0
        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;
        }
コード例 #2
0
        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
        }