Please enable JavaScript to view this site.

ESL Documentation

Function

Return Process ID

 

DDEGetPID ()

Description

Called by server.  This function returns the Process ID associated with the current instance of an application.

 

Use this function when you want a server to register an instance-specific application name so that a client can request that a conversation be established with a particular server instance.  Applications typically append their Process ID to their name (for example, "ESLnnn", where "nnn" is the Process ID), and register that name through DDERegisterServer.  Usually, the WildCard_BV argument to DDERegisterServer would be false when registering an instance-specific name, since the server would only want to accept conversations for this application name when the client asked for it specifically.

Example

response to start

   copy "Easel" DDEGetPID () to ServerName_SV

   copy "MyTopic" to Topic_SV

   copy false to WildCard_BV

   call DDERegisterServer (ServerName_SV, Topic_SV, WildCard_BV)