Skip to main content

SalDDE

Namespace: PPJ.Runtime.DDE

Assembly: PPJ.Runtime.DDE.49 (4.9.0.0)

Summary description for SalDDE.

public class SalDDE

Methods

Static memberAddAtom(stringToAdd)

Adds a string to the global atom table and creates a new atom to identify the string.

ParameterTypeDescription
stringToAddSalString

Returns: SalNumber.

Static memberAlloc()

Allocates a memory handle for WM_DDE_Data or WM_DDE_Poke message.

Returns: SalNumber.

Static memberDeleteAtom(atomToDelete)

Decrements an atom's reference count.

ParameterTypeDescription
atomToDeleteSalNumberThe atom to delete.

Returns: SalNumber.

Static memberExtract(msg, wParam, lParam, sender, lowlParam, highlParam)

ParameterTypeDescription
msgSalNumber
wParamSalNumber
lParamSalNumber
senderSalWindowHandle&
lowlParamSalNumber&
highlParamSalNumber&

Returns: SalBoolean.

Static memberExtractCmd(handle, command, commandSize)

ParameterTypeDescription
handleSalNumber
commandSalString&
commandSizeSalNumber

Returns: SalBoolean.

Static memberExtractDataText(handle, status, data, dataSize)

ParameterTypeDescription
handleSalNumber
statusSalNumber&
dataSalString&
dataSizeSalNumber

Returns: SalBoolean.

Static memberExtractOptions(options, flags, format)

ParameterTypeDescription
optionsSalNumber
flagsSalNumber&
formatSalNumber&

Returns: SalBoolean.

Static memberFindAtom(topicString)

Searches the global atom table and returns the atom associated with the given string.

ParameterTypeDescription
topicStringSalStringThe string to search for.

Returns: SalNumber. nAtom

Static memberFree(memory)

Frees a memory handle allocated by SalDDEAlloc for WM_DDE_Data or WM_DDE_Poke messages.

ParameterTypeDescription
memorySalNumberThe memory handle to free.

Returns: SalNumber. nHandle

Static memberGetAtomName(atom, atomName, stringLength)

ParameterTypeDescription
atomSalNumber
atomNameSalString&
stringLengthSalNumber

Returns: SalNumber.

Static memberGetExecuteString(msglParam)

Converts the lParam of the SAM_DDE_ClientExecute message to a command string.

ParameterTypeDescription
msglParamSalNumber

Returns: SalString. sCommand

Static memberPost(wndReceiver, message, wndSender, lowlParam, hnighlParam)

Posts a WM_DDE_* messages except: WM_DDE_Initiate and WM_DDE_Ack.

ParameterTypeDescription
wndReceiverSalWindowHandle
messageSalNumber
wndSenderSalWindowHandle
lowlParamSalNumber
hnighlParamSalNumber

Returns: SalNumber.

Static memberRequest(ctrl, service, serverTopic, serverItem, timeout, data)

ParameterTypeDescription
ctrlControl
serviceSalString
serverTopicSalString
serverItemSalString
timeoutSalNumber
dataSalString&

Returns: SalBoolean.

Static memberSend(receiver, message, sender, lowlParam, highlParam)

Sends a WM_DDE_* message.

ParameterTypeDescription
receiverSalWindowHandle
messageSalNumber
senderSalWindowHandle
lowlParamSalNumber
highlParamSalNumber

Returns: SalNumber.

Static memberSendAll(message, sender, lowlParam, highlParam)

Broadcasts a WM_DDE_* message.

ParameterTypeDescription
messageSalNumber
senderSalWindowHandle
lowlParamSalNumber
highlParamSalNumber

Returns: SalNumber.

Static memberSendAll(message, sender, lowlParam, highlParam, timeout)

Broadcasts a WM_DDE_* message with a given Timeout

ParameterTypeDescription
messageSalNumber
senderSalWindowHandle
lowlParamSalNumber
highlParamSalNumber
timeoutSalNumber

Returns: SalNumber.

Static memberSendExecute(ctrl, service, topic, item, timeout, command)

Executes a DDE command on the server.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
serviceSalString
topicSalString
itemSalString
timeoutSalNumber
commandSalString

Returns: SalBoolean.

Static memberSendToClient(ctrl, data, clientID, timeout)

Sends data to the client.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
dataSalString
clientIDSalNumber
timeoutSalNumber

Returns: SalBoolean.

Static memberSetCmd(highlParam, command)

Assigns a command string to the data referenced by the high-order word of the lParam in a WM_DDE_Execute message.

ParameterTypeDescription
highlParamSalNumberThe handle to the command block that contains the command string.
commandSalStringThe command to execute.

Returns: SalBoolean. bOk

Static memberSetData(handle, status, data, format)

Sets DDEdata from a byte array with given format

ParameterTypeDescription
handleSalNumberThe handle to the memory object that contains the data and other information.
statusSalNumberThe status word.
dataByte[]The data to assign.
formatInt32The format

Returns: SalBoolean. bOk

Static memberSetDataText(numData, status, strData)

Assigns a value to the data referenced by the low-order word of the lParam in a WM_DDE_Data or WM_DDE_Poke message.

ParameterTypeDescription
numDataSalNumberThe handle to the memory object that contains the data and other information.
statusSalNumberThe status word.
strDataSalStringThe value to assign.

Returns: SalBoolean. bOk

Static memberSetOptions(options, flags, format)

Assigns a value to the data referenced by the low-order word of the lParam in a WM_DDE_Advise message.

ParameterTypeDescription
optionsSalNumberThe handle to the memory object that specifies how the data is to be sent.
flagsSalNumberThe status word.
formatSalNumberThe CF_* data format.

Returns: SalBoolean. bOk

Static memberStartServer(ctrl, service, topic, item)

Creates a DDE server for the specified service, topic and item.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
serviceSalString
topicSalString
itemSalString

Returns: SalBoolean.

Static memberStartSession(ctrl, service, topic, item, timeout)

Starts a hot link conversation with a server application.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.
serviceSalString
topicSalString
itemSalString
timeoutSalNumber

Returns: SalBoolean.

Static memberStopServer(ctrl)

Stops the DDE server associated with the specified control.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean.

Static memberStopSession(ctrl)

Ends a hot link conversation with a server application.

ParameterTypeDescription
ctrlControlTarget control on which to execute the call.

Returns: SalBoolean. bOk