home *** CD-ROM | disk | FTP | other *** search
- /* This program, ssrecord.c, created by Delrina and assigned to the Record */
- /* button, connects to a session (if not connected), then records logon. */
-
- /* $Revision: 1.0 $ */
- /* $Date: 26 Apr 1993 15:21:24 $ */
-
- /* Define main function, which is always the starting point of C programs. */
- /* (The term "void" indicates that the function returns no value.) */
- void main()
- {
- /* Declare variables */
- long ScriptHandle;
- int ReturnValue;
- char Buffer[256];
-
- /* Initialize variables */
- ReturnValue = 0;
- ScriptHandle = 0;
- memset(Buffer, 0, 256);
-
- /* Establish a link between this script program and Delrina WinComm PRO */
- ScriptHandle = dcInitialize(0,0,0,0);
-
- /* Exit if intialization of link with Delrina WinComm PRO failed */
- if (ScriptHandle == 0) exit();
-
- /* Check to see is session is connected */
- ReturnValue = dcGetConnectionStatus(ScriptHandle);
-
- /* If connected, same as selecting Script from menu bar, the Record from Script menu */
- if (ReturnValue != 2)
- ReturnValue = dcMenuString(ScriptHandle, "CC");
- else
- /* If not connected, connect to session */
- ReturnValue = dcConnectSession(ScriptHandle, 1);
-
- /* Terminate link between Delrina WinComm PRO and script program */
- dcTerminate(ScriptHandle, 0);
- }
-
-
-