User manual
Windows Server Program
ComTec GmbH 5-34
/*** FUNCTION PROTOTYPES (do not change) ***/
BOOL APIENTRY DllMain(HANDLE hInst, DWORD ul_reason_being_called, LPVOID
lpReserved);
VOID APIENTRY StoreSettingData(ACQSETTING *Setting, int nDisplay);
// Stores Settings into the DLL
int APIENTRY GetSettingData(ACQSETTING *Setting, int nDisplay);
// Get Settings stored in the DLL
VOID APIENTRY StoreStatusData(ACQSTATUS *Status, int nDev);
// Store the Status into the DLL
// nDev=0: MPA, 1..16 ADC1..ADC16
int APIENTRY GetStatusData(ACQSTATUS *Status, int nDev);
// 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 nDisplay);
// Indicate new Settings to Server
UINT APIENTRY ServExec(HWND ClientWnd); // Execute the Server MPA3.EXE
long APIENTRY GetSpec(long i, int nDisplay);
// Get a spectrum value
VOID APIENTRY SaveSetting(void); // Save Settings
int APIENTRY GetStatus(int nDev); // Request actual Status from Server
VOID APIENTRY Erase(int nDev); // Erase all (nDev=0)
VOID APIENTRY SaveData(int nDisplay, int all);
// Saves data:
// all=1 all, all=0 only nDisplay
VOID APIENTRY GetBlock(long *hist, int start, int end, int step,
int nDisplay); // Get a block of spectrum data
VOID APIENTRY StoreDefData(ACQDEF *Def);
// Store System Definition into DLL
int APIENTRY GetDefData(ACQDEF *Def); // Get System Definition
VOID APIENTRY LoadData(int nDisplay, int all);
// Loads data
VOID APIENTRY NewData(void); // Indicate new ROI or string Data
VOID APIENTRY HardwareDlg(int item);
// item=0: Calls the Settings dialog
// 1: data dialog, 2: system dialog,
// 3: spectra dialog
VOID APIENTRY UnregisterClient(void);
// Clears remote mode from MPANT
VOID APIENTRY DestroyClient(void); // Close MPANT
UINT APIENTRY ClientExec(HWND ServerWnd);
// Execute the Client MPANT.EXE
int APIENTRY LVGetDat(unsigned long *datp, int nDisplay);
// Copies the spectrum to an array
VOID APIENTRY RunCmd(int nDisplay, LPSTR Cmd);
// Executes command
VOID APIENTRY AddData(int nDisplay, int all);
// Adds data
VOID APIENTRY SubData(int nDisplay, int all);
// Subtracts data
VOID APIENTRY Smooth(int nDisplay); // Smooth data
int APIENTRY LVGetRoi(unsigned long FAR *roip, int nDisplay);
// Copies the ROI boundaries to an array
int APIENTRY LVGetCnt(double *cntp, int nDisplay);
// Copies Cnt numbers to an array
int APIENTRY LVGetStr(char *strp, int nDisplay);
// Copies strings to an array
VOID APIENTRY StoreMP3Setting(ACQMP3 *Defmp3);
// Store MP3 System Definition into DLL
int APIENTRY GetMP3Setting(ACQMP3 *Defmp3);
// Get MP3 System Definition from DLL
VOID APIENTRY StoreDatSetting(DATSETTING *Defdat);
// Store Data Format Definition into DLL
int APIENTRY GetDatSetting(DATSETTING *Defdat);
// Get Data Format Definition from DLL