Vcl.DdeMan.TDdeServerConv.ExecuteMacro

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExecuteMacro(Data: HDdeData): LongInt;

C++

int __fastcall ExecuteMacro(NativeUInt Data);

Properties

Type Visibility Source Unit Parent
function public
Vcl.DdeMan.pas
Vcl.DdeMan.hpp
Vcl.DdeMan TDdeServerConv

Description

Responds to macros sent by the DDE client.

ExecuteMacro provides the only way for a DDE server application to respond to macros sent by DDE clients. ExecuteMacro is called when the DDE client sends a Macro over the DDE link. Data is the handle to the DDE data that contains the macro.

ExecuteMacro retrieves the strings of the macro from Data, and calls the OnExecuteMacro event handler. If there is no OnExecuteMacro event handler, the macro is ignored. Whether or not there is an OnExecuteMacro event handler, the DDE client always receives notification that the macro was successfully transmitted, unless Data contains no macro.

See Also