Hand Held Products 4X00 manual OemWaitForDecodeRaw, Resultt oemWaitForDecodeRaw

Page 82

Parameters

dwTimeout

Time in milliseconds that the engine scans until finding a decode. The timeout value must be greater than zero.

pchMessage

Upon successful return, this variable points to the decoded message. The caller should allocate enough memory for this buffer to hold the largest possible decode message. See oemGetMaxMessageChars (page 2-12).

pchCodeID

Upon successful return, this variable points to the Hand Held Products Code ID for the decoded symbology. See Symbology Identifiers (page 3-1).

pchAIMID

Upon successful return, this variable points to the AIM ID for the decoded symbology. See Symbology Identifiers (page 3-1).

pchSymModifier

Upon successful return, this variable points to the code modifier for the decoded symbology. See Symbology Identifiers (page 3-1).

pnLength

Upon successful return, this variable points to the length of the bar code data that was captured. The length is represented in terms of the number of TCHAR characters in the TCHAR *pchMessage.

fpCallBack

Pass in this pointer to a parameterless BOOL-returning function to allow for an external event that causes a return from oemWaitForDecode. As long as the function pointed to by fpCallBack returns TRUE, oemWaitForDecode continues to attempt to decode a symbol. If the function pointed to by fpCallBack returns FALSE, then oemWaitForDecode returns with a Result_t of RESULT_ERR_NOTRIGGER. OemWaitForDecode also returns if it gets a valid decode or the dwTimeout occurs. Setting the parameter to NULL prevents the API from calling this callback function. In that case, oemWaitForDecode only returns after a valid decode of dwTimeout has passed without a successful decode.

oemWaitForDecodeRaw

This function causes the engine to start scanning for a decodable symbol. This function does not return until either a symbol is decoded, or the timeout period has elapsed. If a message was decoded, it is returned in this function's parameters in raw form as byte values.

Result_t oemWaitForDecodeRaw (

DWORD dwTimeout, BYTE *pchMessage, BYTE *pchCodeID, BYTE *pchAIMID, BYTE *pchSymModifier, WORD *pnLength, BOOL (*fpCallBack) (void)

)

Return Values

RESULT_SUCCESS

RESULT_ERR_ENGINEBUSY

RESULT_ERR_PARAMETER

RESULT_ERR_NOTRIGGER

RESULT_ERR_NODECODE

RESULT_ERR_NOIMAGE

2 - 68

IMAGETEAM™ 4X00 Series Software Development Kit (SDK) User’s Guide

Image 82
Contents User’s Guide Disclaimer Table of Contents Page Symbology Identifiers Page Introduction Features of the 4X00 Series Image Engine API Library Summary Page Page Data Type Definitions Tchar Page OemAcquireImage OemAimerOnOemDisableSymbology OemDefaultSymbologyOemConnect OemEnableSymbologyAll OemDisableSymbologyAllOemEnableSymbology OemDisconnectOemGetDecodeAttemptLimit OemGetAPIRevisionOemGetDecodeCenteringWindow OemGetDecoderRevision OemGetDecodeModeOemGetDecodeTime Resultt oemGetErrorMessage OemGetErrorMessageOemGetExposureSettings Resultt oemGetExposureSettingsOemGetImage Resultt oemGetImagePrototype Resultt oemGetImageData OemGetImageDataOemGetImagerInfo Resultt oemGetImagerInfoResultt oemGetImagerProperties OemGetImagerPropertiesPnCols PImgPropResultt oemGetLastImage OemGetLastImageOemGetLastImageExt Resultt oemGetLastImageExtResultt oemGetLastImageSize OemGetLastImageSizeOemGetLeaveLightsOn Resultt oemGetLeaveLightsOnOemGetLinearRange OemGetPrintWeightOemGetMaxMessageChars OemGetScanDriverRevision OemGetSetupAllOemGetSearchTimeLimit OemGetSetupAztec OemGetSetupAusPostOemGetSetupBPO Resultt oemGetSetupCanPost OemGetSetupCanPostOemGetSetupChinaPost Resultt oemGetSetupChinaPostResultt oemGetSetupCodabar OemGetSetupCodabarOemGetSetupCodablock Resultt oemGetSetupCodablockOemGetSetupCode11 Resultt oemGetSetupCode11Resultt oemGetSetupCode128 OemGetSetupCode128OemGetSetupCode16K Resultt oemGetSetupCode16KResultt oemGetSetupCode32 OemGetSetupCode32OemGetSetupCode39 Resultt oemGetSetupCode39PbFullAscii OemGetSetupCode49Resultt oemGetSetupCode49 PbAppendResultt oemGetSetupCode93 OemGetSetupCode93OemGetSetupComposite Resultt oemGetSetupCompositeResultt oemGetSetupCompositeEx OemGetSetupCompositeExPbCompositeOnUpcEan Resultt oemGetSetupCouponCode OemGetSetupCouponCodeOemGetSetupDataMatrix Resultt oemGetSetupDataMatrixResultt oemGetSetupDutchPost OemGetSetupDutchPostOemGetSetupEAN8 Resultt oemGetSetupEAN8OemGetSetupEAN13 OemGetSetupIATA25 Resultt oemGetSetupIATA25Prototype Resultt oemGetSetupImager OemGetSetupImagerOemGetSetupInt25 Resultt oemGetSetupInt25OemGetSetupJapost OemGetSetupISBTOemGetSetupKoreanPost Resultt oemGetSetupMaxicode OemGetSetupMaxicodePCarrierMsgOnly Resultt oemGetSetupMesa OemGetSetupMesaP9MSEnabled Resultt oemGetSetupMSI OemGetSetupMSIPMinLength PMaxLength Resultt oemGetSetupMx25 OemGetSetupMx25OemGetSetupOCR Resultt oemGetSetupOCRPszGroupH PszGroupGPszCheckChar Resultt oemGetSetupPlanet OemGetSetupPlanetOemGetSetupPlessey Resultt oemGetSetupPlesseyResultt oemGetSetupPosiCode OemGetSetupPosiCodePLimited Resultt oemGetSetupPostnet OemGetSetupPostnetOemGetSetupQR Resultt oemGetSetupQRResultt oemGetSetupRSS OemGetSetupRSSOemGetSetupStrt25 Resultt oemGetSetupStrt25Resultt oemGetSetupTelepen OemGetSetupTelepenOemGetSetupTLC39 Resultt oemGetSetupTLC39Resultt oemGetSetupTrioptic OemGetSetupTriopticOemGetSetupUPCA Resultt oemGetSetupUPCAOemGetSetupUPCE Resultt oemGetSetupUPCEOemGetVideoReverse PE0EnabledPE1Enabled PbExpandVersionEOemImageStreamStart OemImageStreamInitOemImageStreamRead OemLeaveLightsOn OemPowerOffImagerOemImageStreamStop OemLightsOnOemSetDecodeCenteringWindow Resultt oemPowerOffImagerOemSetDecodeAttemptLimit Resultt oemSetDecodeAttemptLimitOemSetDecodeMode OemSetExposureSettingsOemSetExposureMode OemSetScanningLightsMode OemSetPrintWeightOemSetLinearRange Resultt oemSetLinearRangeOemSetupChinaPost OemSetupAztecOemSetSearchTimeLimit Resultt oemSetupCodabar OemSetupCodabarOemSetupCodablock Resultt oemSetupCodablockResultt oemSetupCode11 OemSetupCode11OemSetupCode128 Resultt oemSetupCode128Resultt oemSetupCode16K OemSetupCode16KOemSetupCode39 Resultt oemSetupCode39BFullAscii OemSetupCode49Resultt oemSetupCode49 BAppendOemSetupComposite OemSetupCode93OemSetupCompositeEx Resultt oemSetupDataMatrix OemSetupDataMatrixOemSetupEAN8 Resultt oemSetupEAN8Resultt oemSetupEAN13 OemSetupEAN13BAddendaReq Resultt oemSetupIATA25 OemSetupIATA25OemSetupInt25 Resultt oemSetupInt25Resultt oemSetupKoreanPost OemSetupKoreanPostOemSetupMaxicode Resultt oemSetupMaxicodeOemSetupMesa Resultt oemSetupMesaResultt oemSetupMSI OemSetupMSIOemSetupMx25 Resultt oemSetupMx25NFont OemSetupOCRResultt oemSetupOCR PszTemplateResultt oemSetupPlanet OemSetupPlanetOemSetupPlessey Resultt oemSetupPlesseyOemSetupPostnet OemSetupPosiCodeOemSetupQR Resultt oemSetupRSS OemSetupRSSOemSetupStrt25 Resultt oemSetupStrt25Resultt oemSetupTelepen OemSetupTelepenOemSetupUPCA Resultt oemSetupUPCAResultt oemSetupUPCE OemSetupUPCEBXmitNumSys OemStartIntellImgXfer BEnabledOemSetVideoReverse BExpandVersionEResultt oemStartIntellImgXfer OemWaitForDecode Resultt oemWaitForDecodeOemWaitForDecodeRaw Resultt oemWaitForDecodeRawOemWaitMultipleDecode Resultt oemWaitMultipleDecodeFpContinueCallBack OemWaitMultipleDecodeRawFpMultiReadCallBack Resultt oemWaitMultipleDecodeRawSymbology Identifiers Function Result Values Mail eutechsupport@handheld.com Mail latechsupport@handheld.comMail aptechsupport@handheld.com Imageteam 4X00 Series Software Development Kit SDK Page Hand Held Products, Inc