步骤:
1.初始化
2.打开Source Marager TwRC rc = DSMparent(appid, IntPtr.Zero, TwDG.Control, TwDAT.Parent, TwMSG.OpenDSM, ref hwndp);
3.选择默认的扫描仪 rc = DSMident(appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.GetDefault, srcds)
4.打开source rc = DSMident(appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.OpenDS, srcds);
5.....
6.关闭 source rc = DSMident(appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.CloseDS, srcds);
7.关闭Source Marager rc = DSMparent(appid, IntPtr.Zero, TwDG.Control, TwDAT.Parent, TwMSG.CloseDSM, ref hwnd);
就是在第6步的时候 报错,“提示 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”。各个大佬们 帮忙看看 分析分析什么原因