| INT WINAPI PopFreezeEvents( |
| |
HCLIENT hClient, |
|
| |
BOOL bFreeze |
|
| ); |
The PopFreezeEvents function is used to suspend and resume
event handling by the client.
Parameters
- hClient
- Handle to the client session.
- bFreeze
- A non-zero value specifies that event handling should be
suspended by the client. A zero value specifies that event handling
should be resumed.
Return Value
If the function succeeds, the return value is zero. If the
function fails, the return value is POP_ERROR. To get extended error
information, call PopGetLastError.
Remarks
This function should be used when the application does not want to
process events, such as when a modal dialog is being displayed. When
events are suspended, all client events are queued. If events are
re-enabled at a later point, those queued events will be sent to the
application for processing. Note that only one of each event will be
generated. For example, if the client has suspended event handling,
and four read events occur, once event handling is resumed only one
of those read events will be posted to the client. This prevents the
application from being flooded by a potentially large number of
queued events.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cspopv12.lib
See Also
|