驱动:
UCHAR* OutputBuffer = (UCHAR*)pIrp->AssociatedIrp.SystemBuffer;
memset(OutputBuffer,0x11,cbout);
VB:
dim l as Long
ManagerDrive.IoControl &H800, StrPtr(strInbuffer), Len(strInbuffer) * 2, StrPtr(l), Len(l), 0
msgbox l
VB传驱动成功了,不知道驱动怎么传到VB。
UCHAR* OutputBuffer = (UCHAR*)pIrp->AssociatedIrp.SystemBuffer;
memset(OutputBuffer,0x11,cbout);
VB:
dim l as Long
ManagerDrive.IoControl &H800, StrPtr(strInbuffer), Len(strInbuffer) * 2, StrPtr(l), Len(l), 0
msgbox l
VB传驱动成功了,不知道驱动怎么传到VB。
因为VB是单线程的 只有定时用VB自身的线程进入RING0去看驱动是否有字符串要传递