Previous PageTable Of ContentsHomeIndexNext Page

sr_NotifyEvent( )

Description | Cautions | Example | See Also

Name:

long sr_NotifyEvent(handle, message, flags)

Inputs:

HWND handle

  Window handle

 

unsigned int message

  message number to sent to window

 

unsigned int flags

  notification on/off flag

Returns:

0 if success

-1 if failure

 

Includes:

srllib.h

 

Type:

Event handling

Top Of PageDescription

The sr_NotifyEvent( ) function informs the SRL to send event notification to a window. This provides a method of getting notification of Dialogic events through the Window's event queue. Although the actual event does not come in through the Window's event queue, a notification message is sent which, when received, causes the application to call the sr_waitevt( ) function with a 0 timeout to pull an event from the Dialogic event queue.

Parameter

Description

handle

Window handle to which the message is to be sent

message

number of the message (message ID)

flag

flags to turn event notification on or off:

 

SR_NOTIFY_ON
SR_NOTIFY_OFF

event notification on
event notification off

Top Of PageCautions

This function should be only used when doing an asynchronous application controlling all devices within one thread. The application must call sr_waitevt(0) to get the event off the Dialogic event queue.

NOTES:
1. The sr_NotifyEvent function should be called before any Dialogic devices are opened.
2. If sr_NotifyEvent is called a second time to send messages to a new window, the previous window is no longer available to receive messages.

Top Of PageExample

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated January, 2001