Invoking the OnDemand Client from another Windows application
This invocation method is typically used when the DDE interface is required.
The OnDemand Client can be invoked from another Windows application by
using the CreateProcess
Windows API. The prototype for this function is:
BOOL CreateProcess(
lpszImageName,
lpszCmdLine,
lpsaProcess,
lpsaThread,
fInheritHandles,
fdwCreate,
lpvEnvironment,
lpszCurDir,
lpsiStartInfo,
lppiProcInfo )
lpszCmdLine is a null-terminated character string containing the name of the OnDemand Client executable followed by a set of optional parameters as described below.
Consult your documentation for a description of the other parameters. This invocation method is typically used when the Dynamic Data Exchange interface is required.
The following is an example invocation using CreateProcess:
PROCESS_INFORMATION pi;
STARTUPINFO sui;
char * pCmd;
memset( &sui, 0, sizeof(STARTUPINFO) );
sui.cb = sizeof(STARTUPINFO);
pCmd = "C:\\ARS\\ARSGUI "
"/T Special Content Manager OnDemand "
"/I 3,C:\\MYAPP\\BITMAP.DLL,81 "
"/W 5,10,90,80";
CreateProcess( NULL,
pCmd,
NULL,
NULL,
FALSE,
CREATE_NEW_CONSOLE,
NULL,
NULL,
&sui,
&pi );