User's Manual Part 1
Table Of Contents
- Regulatory Information
- Title
- Contents
- Before You Begin
- Chapter 1: Introduction
- Chapter 2: Pocket PC 2002
- Introduction
- Premium versus Professional Editions
- Where to Find Information
- Basic Skills
- Microsoft ActiveSync
- Microsoft Pocket Outlook
- Companion Programs
- Pocket Internet Explorer
- Getting Connected
- Chapter 3: Installing Applications
- Chapter 4: Network Support
- CORE
- Network Adapters
- Ethernet Communications
- 802.11b Communications
- Profiles
- Basic
- Security
- Advanced
- Certificates
- Import/Export
- Scan List
- Network Selection APIs
- Function Summary
- RadioConnect()
- RadioDisconnect()
- GetMac()
- GetBSSID()
- GetSSID()
- GetLinkSpeed()
- GetNetworkType()
- GetTXPower()
- GetNetworkMode()
- SetNetworkMode()
- AddWep()
- GetRSSI()
- GetAssociationStatus()
- GetWepStatus()
- GetAuthenticationMode()
- SetAuthenticationMode()
- SetChannel()
- EnableWep()
- GetPowerMode()
- SetSSID()
- isOrinoco()
- EncryptWepKeyForRegistry()
- SetRTSThreshold()
- GetRTSThreshold()
- ConfigureProfile()
- StartScanList()
- 802.11b Radio CORE Module
- WWAN Radio Options
- WAN Radio CORE Module
- Wireless Printing
- AutoIP/DHCP
- SNMP Configuration
- Chapter 5: Printer Support
- Chapter 6: Scanner Support
- Scanner Control and Data Transfer
- Automatic Data Collection COM Interfaces
- Multiple ADC COM Object Support
- How to Create and Use the ADC COM Interfaces
- 2D Imager Overview
- Create and Delete ADC COM Object Functions
- IADC Functions
- IBarCodeReaderControl Functions
- IS9CConfig Functions
- IS9CConfig::GetCodabar
- IS9CConfig::SetCodabar
- Codabar Default Settings
- Codabar Enumerations
- IS9CConfig::GetCode39
- IS9CConfig::SetCode39
- Code 39 Default Settings
- Code 39 Enumerations
- IS9CConfig::GetCode93
- IS9CConfig::SetCode93
- Code 93 Default Settings
- Code 93 Enumerations
- IS9CConfig::GetCode128
- IS9CConfig::SetCode128
- Code 128/EAN 128 Default Settings
- Code 128 Enumerations
- IS9CConfig::GetI2of5
- IS9CConfig::SetI2of5
- Interleaved 2 of 5 Default Settings
- Interleaved 2 of 5 Enumerations
- IS9CConfig::GetMatrix2of5
- IS9CConfig::SetMatrix2of5
- Matrix 2 of 5 Default Settings
- Matrix 2 of 5 Enumerations
- IS9CConfig::GetMSI
- IS9CConfig::SetMSI
- MSI Default Settings
- MSI Enumerations
- IS9CConfig::GetPDF417
- IS9CConfig::SetPDF417
- PDF 417 Default Settings
- PDF 417 Enumerations
- IS9CConfig::GetPlessey
- IS9CConfig::SetPlessey
- Plessey Default Settings
- Plessey Enumerations
- IS9CConfig::GetStandard2of5
- IS9CConfig::SetStandard2of5
- Standard 2 of 5 Default Settings
- Standard 2 of 5 Enumerations
- IS9CConfig::GetTelepen
- IS9CConfig::SetTelepen
- Telepen Default Settings
- Telepen Enumerations
- IS9CConfig::GetUpcEan
- IS9CConfig::SetUpcEan
- UPC/EAN Default Settings
- UPC/EAN Enumerations
- IS9CConfig2 Functions
- IS9CConfig2::GetCode11
- IS9CConfig2::SetCode11
- Code 11 Default Settings
- Code 11 Enumerations
- IS9CConfig2::GetCustomSymIds
- IS9CConfig2::SetCustomSymIds
- Custom Identifier Assignments
- Custom Identifier Default Settings
- Custom Identifier Example
- IS9CConfig2::GetGlobalAmble
- IS9CConfig2::SetGlobalAmble
- Postamble and Preamble Defaults
- IS9CConfig2::GetPDF417Ext
- IS9CConfig2::SetPDF417Ext
- PDF 417 Extended: Micro PDF 417 Default Settings
- IS9CConfig2::GetSymIdXmit
- IS9CConfig2::SetSymIdXmit
- Symbology ID Transmission Option
- IS9CConfig3 Functions
- AIM Symbology ID Defaults
- IImage Interface
- Data Collection Configuration
- Tethered Scanner
- Chapter 7: Programming
- Creating CAB Files
- FTP Server
- Full Screen
- Kernel I/O Controls
- Reboot Functions
- Remapping the Keypad
- Appendix A: Control Panel Applets
- Appendix B: Unit Manager
- Appendix C: Bar Codes
- Index
Scanner SupportChapter —6
140 700 Series Color Mobile Computer User’s Manual
How to Create and Use the ADC COM Interfaces
You can also use the Input Device Functions (starting on page 149) to
create and use the ADC COM interfaces.
1 Create and initialize the in-process Bar Code Reader object using
ITCDeviceOpen() (see page 149). This function returns a COM
Interface pointer to the Bar Code Reader Object created by the
function.
2 Set the data grid if data filtering is desired (default grid gives the applica-
tion all the data). Below is a sample code of how to set the grid to accept
Code 39 data that starts with the letter “A” and is not a reader com-
mand.
ITC_BARCODEREADER_GRID stBCGrid;
stBCGrid.stDIGrid.szDataMask = TEXT(”A%s”);
stBCGrid.stDDGrid.dwSymbologyMask = BARCODE_SYMBOLOGY_CODE39;
stBCGrid.dwDataSourceTypeMask = ITC_DATASOURCE_USERINPUT;
HRESULT hrStatus = pIBCControl->SetAttribute(
ITC_RDRATTR_GRID,
reinterpret_cast<BYTE *>(&stBCGrid),
sizeof(stBCGrid)
);
3 Issue a read to accept the bar code data. The timestamp, symbology, and
data type are put into the ITC_BARCODE_DATA_DETAILS struc-
ture. Passing in a pointer to this structure is optional. The following
sample code uses an infinite timeout.
ITC_BARCODE_DATA_DETAILS stBCDetails;
BYTE rgbBCData[1024]; // Buffer used to accept the bar code data
DWORD dwBytesReceived; // Number of bytes in the return data.
HRESULT hrStatus = pIBCControl->Read(
rgbBCData,
sizeof(rgbBCData),
&dwBytesReceived,
& stBCDetails,
INFINITE
);
4 Compile and link the application.
Read-Ahead Bar Code Data Access
The Bar Code Reader COM object delivers ADC data to the connection
in read-ahead mode. In this mode, the data is queued until a COM con-
nection is ready to read it. Read-ahead mode decouples reader device per-
formance from the application performance. That is, data is read as fast as
the user can scan it, independent of the connection processing load. No
data w ill be scanned until the first Read() function is posted.