Dear all
I want win32 apllication to communicate with a vxd by
createfile+deviceiocontrol . The vxd has already statically loaded by system.ini; But when entering
the breakpoint in the vxd, I can’t debug the vxd in
source mode.Before doing this,I can see source code
with command(file *);and I write my project only in C. I was confused with this problem.Who can tell me the reason and method of solving it?
thanks.
part of source code in vxd is :
switch (p->dioc_IOCtlCode)
{
case DIOC_OPEN:
return 0;
case DIOC_CLOSEHANDLE:
return 0;
case BAT_YP:
count=p->dioc_cbInBuf;
strcpy(a,(char*)p->dioc_InBuf);
strcpy((char*)(p->dioc_OutBuf),“AAA”);
*p->dioc_bytesret = 10;
return 0;
default:
return -1;
}
part of win32 application is:
m_hVxd = CreateFile(“\\.\kkk.vxd”,
0,0,0,
CREATE_ALWAYS,
FILE_FLAG_DELETE_ON_CLOSE,0);
if (m_hVxd != INVALID_HANDLE_VALUE)
AfxMessageBox(_T(“Install Vxd Successfully!”));
if(DeviceIoControl(m_hVxd,BAT_YP, (LPVOID)&bb, sizeof(bb),(LPVOID)&yp,sizeof(yp), &cb, NULL))
AfxMessageBox(“success”);
ʱÉÐÅ®×°£¬´º¼¾ÈÈÂô http://shopping.263.net/category05.htm
IP¿¨Ìؼۣ¬µÍÖÁ6ÕÛ http://shopping.263.net/Article/articlelist.asp?Class1=08&Class2=05&class3=01
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com