Datalogic .NET SDK

PostStopMsg (Method)

 

Syntax

 

public bool PostStopMsg(MessageWindow wnd, uint uDataMsg);

 

Class                           : DecodeHandle

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Posts a request to be notified when a scan attempt is stopped.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

MessageWindow

wnd

A reference to an instance of the Microsoft.WindowsCE.Forms.MessageWindow class whose  window procedure is to receive a message when a scan attempt is stopped.

[in]

uint

uDataMsg

Specifies the message to be posted when the scan attempt is stopped. This should be a value of WM_USER (defined in winuser.h) or higher.

 

 

 

 

[return]

bool

 

A value of TRUE is returned on success, otherwise FALSE is returned to indicate failure.

[on error]

FALSE

 

 

 

 

Example

 

        private void btnSetPostStop_Click(object sender, EventArgs e)

        {

            // hDcd = new DecodeHandle(...); Global instance of DecodeHandle class

 

            bool bPostSuccess = hDcd.PostStopMsg(wndMsg, Constants.WM_STOPSCAN);

            MySetTextBox("Set-PostStopMsg");

        }

 

 

 

Remarks

For each decoding device, only one event or message can be in effect at any time.

If a stop event is posted you need to cancel the stop notification to post the stop event with a new event handle or a windows message.

 

 

See Also

Microsoft.WindowsCE.Forms.MessageWindow, WM_USER, DecodeEvent.ScanStart (Event), DecodeEvent.StopScanListener (Method), Example #018.

 

 

Copyright © Datalogic ADC. All Right Reserved