Casio DT-X8 Series Bedienungsanleitung Seite 169

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 171
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 168
169
3.122 SysWaitForEvent
This function waits for an event that occurs in driver, etc. The function does not return until when an
event occurs or when the preset period of the timeout elapses. To call the function, use another
thread, not main thread used by application. See also note below.
To forcibly terminate the wait state by the function, call SysTerminateWaitEvent function from
the main thread of the application. After forcibly terminating the wait state, the function will return
one of the return values. But, it does not indicate whether the wait state has been reset for free. It is
necessary to check the status of the event.
The function is good for cases that if you wish to acknowledge completion of an input/output via
event notification. For example, if you wish to set up "Notification via Event" with
OBRSetScanningNotification function of the Laser Scanner Library as the notification method
for the completion of scanning bar code.
Calling Sequences
[Visual Basic]
Public Shared Function SysWaitForEvent( _
ByVal EventHandle As IntPtr, _
ByVal EventName As string, _
ByVal TimeOut As Int32 _
) As Int32
[C#]
public static Int32 SysWaitForEvent(
IntPtr EventHandle,
string EventName,
Int32 TimeOut
)
Parameters
EventHandle
This parameter specifies the handle of an event that the function waits for. Specify
"IntPtr.Zero" in this parameter if the specification is carried out in EventName parameter.
EventName
This parameter specifies the name of event that the function waits for. The parameter is
ignored if other value not "IntPte.Zero" is specified in the EventHandle parameter.
TimeOut
This parameter specifies a time period of the timeout in millisecond that the function waits
for an event to occur. Specify "Def.INFINITE (-1)" in this parameter if the function
infinitely waits for an event.
Seitenansicht 168
1 2 ... 164 165 166 167 168 169 170 171

Kommentare zu diesen Handbüchern

Keine Kommentare