// ----------------------------------- // // Copyright (c) 1990 Microsoft Corporation // // Module Name: // // tpctl.h // // Abstract: // // This module defines the external definitions used for the MAC Tester // // Author: // // Tom Adams (tomad) 11-May-1991 // // Revision History: // // 11-May-1991 tomad // Created // // 4-27-94 timothyw // Added performance test; CPP style comments // 5-18-94 // Added globvars; fixed warnings // 6-08-94 // chgs for client/server model, perf tests // // ----------------------------------- #include "tp_ndis.h" #include "common.h" // // // extern CMD_ARGS GlobalCmdArgs; extern LPSTR GlobalBuf; extern BOOL Verbose; extern BOOL CommandsFromScript; extern BOOL CommandLineLogging; extern BOOL RecordToScript; extern HANDLE CommandLineLogHandle; extern HANDLE ScriptRecordHandle; extern CHAR RecordScriptName[TPCTL_MAX_PATHNAME_SIZE]; extern BOOL ExitFlag; extern BOOL ContinueLooping; extern INT TpctlSeed; // // Script Control is used to keep track of where in a script file the // application is, and where to log the next set of results in the // respective log file. // typedef struct _SCRIPTCONTROL { LPSTR ScriptFile; BOOL IsLowestLevel; LPBYTE Buffer; DWORD Length; DWORD BufIndex; HANDLE LogHandle; LPSTR LogFile; } SCRIPTCONTROL, * PSCRIPTCONTROL; // // Scripts is an array of 10 script control structures allowing recursion // of upto ten script files at any one time. Any more then 10 and an error // occurs resulting in the closing of all upper recursive levels of script // files. // #define TPCTL_MAX_SCRIPT_LEVELS 10 extern SCRIPTCONTROL Scripts[TPCTL_MAX_SCRIPT_LEVELS+1]; extern DWORD ScriptIndex; // // Initialize the script array. // // ------ // // VOID // TpctlInitializeScripts( // VOID // ); // // ----- #define TpctlInitializeScripts() { \ DWORD i; \ ScriptIndex = 0xFFFFFFFF; \ for (i=0;i