Windows Server Program
ComTec GmbH 4-14
typedef struct {
int nDevices; // Number of devices: always 4
int nDisplays; // Number of displays (active MCA's): 0...4
int nSystems; // Number of systems
int bRemote; // 1 if server controled by MCDWIN
int sys; // System definition word
} ACQDEF;
/*** FUNCTION PROTOTYPES (do not change) ***/
VOID APIENTRY StoreSettingData(ACQSETTING FAR *Setting, int nDisplay);
// Stores Settings into the
// DLL
int APIENTRY GetSettingData(ACQSETTING FAR *Setting, int nDisplay);
// Get Settings stored in the
// DLL
// Store System Definition
// into DLL
VOID APIENTRY StoreStatusData(ACQSTATUS FAR *Status, int nDisplay);
// Store the Status into the
// DLL
int APIENTRY GetStatusData(ACQSTATUS FAR *Status, int nDisplay);
// Get the Status
VOID APIENTRY Start(int nSystem); // Start
VOID APIENTRY Halt(int nSystem); // Halt
VOID APIENTRY Continue(int nSystem); // Continue
VOID APIENTRY NewSetting(int nDevice); // Indicate new Settings to
// Server
UINT APIENTRY ServExec(HWND ClientWnd); // Execute the Server MCA.EXE
VOID APIENTRY StoreData(ACQDATA FAR *Data, int nDisplay);
// Stores Data pointers into
// the DLL
int APIENTRY GetData(ACQDATA FAR *Data, int nDisplay);
// Get Data pointers
long APIENTRY GetSpec(long i, int nDisplay);
// Get a spectrum value
VOID APIENTRY SaveSetting(void); // Save Settings
int APIENTRY GetStatus(int nDevice); // Request actual Status from
// Server
VOID APIENTRY Erase(int nSystem); // Erase spectrum
VOID APIENTRY SaveData(int nDevice); // Saves data
VOID APIENTRY GetBlock(long FAR *hist, int start, int end, int step,
int nDisplay); // Get a block of spectrum
// data
VOID APIENTRY StoreDefData(ACQDEF FAR *Def);
int APIENTRY GetDefData(ACQDEF FAR *Def);
// Get System Definition
VOID APIENTRY LoadData(int nDisplay); // Loads data
VOID APIENTRY AddData(int nDisplay); // Adds data
VOID APIENTRY SubData(int nDisplay); // Subtracts data
VOID APIENTRY Smooth(int nDisplay); // Smooth data
VOID APIENTRY NewData(void); // Indicate new ROI or string
// Data
VOID APIENTRY HardwareDlg(int item); // Calls the Settings dialog
// box
VOID APIENTRY UnregisterClient(void); // Clears remote mode from
// MCDWIN
VOID APIENTRY DestroyClient(void); // Close MCDWIN
UINT APIENTRY ClientExec(HWND ServerWnd);
// Execute the Client MCDWIN.EXE
int APIENTRY LVGetDat(unsigned long HUGE *datp, int nDisplay);
// Copies the spectrum to an array
VOID APIENTRY RunCmd(int nDisplay, LPSTR Cmd);
// Executes command
int APIENTRY LVGetRoi(unsigned long FAR *roip, int nDisplay);
// Copies the ROI boundaries to an array
int APIENTRY LVGetCnt(double far *cntp, int nDisplay);
// Copies Cnt numbers to an array
int APIENTRY LVGetStr(char far *strp, int nDisplay);
// Copies strings to an array
EXPORTS
StoreSettingData @2