Socket ScanAPI Reference
}
}
return
Result;
}
// called from the ScanAPI consumer logic
// that is using SktScanWait API
void
CMyAppDlg::HandleGetOrSetComplete(
IN TSktScanObject* pScanObj
)
{
switch(pScanObj->Property.ID)
{
case
kSktScanPropIdTrigger:
// ungray out the trigger btn
m_TriggerBtn.Enable(TRUE);
if(!SKTSUCCESS(pScanObj->Msg.Result))
{
}
break;
}
}
C# source code:
public partial class
Form1
{
private
ISktScanApi
_scanApi;
private
ISktScanDevice
public
Form1()
{
InitializeComponent();
InitializeScanAPI();
}
© 2013 Socket Mobile, Inc.
case
kSktScanMsgEvent:
Result=
HandleAsynchronousEvent(pSktObject);
break;
default:
{
}
break;
}
// release the ScanObj we received in the wait
SktScanRelease(hScanAPI,pSktObject);
}
DisplayError(_T("Failed to trigger:
pScanObj->Msg.Result);
:
Form
_device;
TraceInfo(_T("unknown Message ID \
received:0x%x"),
pSktObject->Msg.MsgID);
%d"),
18/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?