Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>ddeadvise()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DDEAdvise()
Ask to be advised about changes to a DDE data item
------------------------------------------------------------------------------

Syntax
DDEAdvise( <hWndServer>, <hWndClient>, [ <nFormat> ] , [ <cItem> ] ,
           [ <lDeferUpd> ] , [ <lAckReq> ] )   -->   NIL

Arguments
<hWndServer> is the handle of the server window.

<hWndClient> is the handle of the window stopping the
conversation.

<nFormat> is an optional integer specifying the format of data
wanted.  Use one of the CF_* values defined in WINDOWS.CH,
which are explained in the GetClipbData() function.
(Default: CF_TEXT.)

<cItem> is an optional string specifying the name of the item.
(Default: all or default, depending on the server.)

<lDeferUpd> is an optional logical specifying whether changed
data values are sent immediately they occur.  Use FALSE (.F.)
or NIL to make the server send the changed data with the
notification message.  Use TRUE (.T.) to make the server send
the notification message without the data (which must then be
requested when needed).

<lAckReq> is an optional logical specifying whether the server
should demand an acknowledgement of each notification message
it sends.  Use TRUE (.T.) if you want this for some reason.

Returns
NIL.

Description
This function can be used to be kept informed of changes to a
data item.  The changed value is returned (if at all) in
subsequent messages from the server, and may not be received
for some time.

This function is provided in the \clip4win\source\dde.prg file.

Example
DDEAdvise( hWndServer, hWndClient, CF_TEXT, "Item1" )


See Also: DDEGetData() DDERequest() DDEStart() DDEUnAdvise()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson