-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTE_GlobalDefines.h
1069 lines (759 loc) · 32.8 KB
/
TE_GlobalDefines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#ifndef __TE_GlobalDefines_H__
#define __TE_GlobalDefines_H__
#ifdef __cplusplus
extern "C" {
#endif
//==============================================================================
// Include files
#include "cvidef.h"
#include "GlobalDefines.h"
#include "dblayer.h"
//==============================================================================
// Constants
#define TEST_SEL_EVENT_ADD_TEST 1999
#define TEST_SEL_EVENT_REMOVE_TEST 1998
#define TEST_PANEL_SIZE_CHECK 1997
#define MAX_NUMBER_OF_PANELS_STORE 32
//==============================================================================
//DB
#define TEST_EXECUTIVE_SUB_KEY "Software\\ATE\\Test Executive"
#define TEST_EXECUTIVE_DB_SUB_KEY "Software\\ATE\\Test Executive\\Databases"
#define ALLOW_ACTIVE_CONTANT_SUB_KEY "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_LOCALMACHINE_LOCKDOWN"
#define LAST_ODBC_CONNECTION "LAST_ODBC_Connection"
#define DEFAULT_ODBC_CONNECTION "DEFAULT_ODBC_Connection"
#define DEFAULT_LICENSE_SERVER "DEFAULT_License_Server"
#define DB_ODBC_NAME "DB_ODBC_NAME"
#define DB_DATABASE_NAME "DB_DATABASE_NAME"
#define DB_DRIVER_NAME "DB_DRIVER_NAME"
#define DB_SERVER_LOCATION "DB_SERVER_LOCATION"
#define DB_USER_NAME "DB_USER_NAME"
#define DB_USER_PASSWORD "DB_USER_PASSWORD"
#define DB_PROJECT_NAME "DB_PROJECT_NAME"
#define DB_PROJECT_NUMBER "DB_PROJECT_NUMBER"
#define DB_LOCAL_SERVER "DB_LOCAL_SERVER"
#define DB_MAIN_ODBC_NAME "MAIN_DB_ODBC_NAME"
#define MAIN_DB_ODBC_NAME "MAIN_DB_ODBC_NAME"
#define MAIN_DB_DATABASE_NAME "MAIN_DB_DATABASE_NAME"
#define MAIN_DB_DRIVER_NAME "MAIN_DB_DRIVER_NAME"
#define MAIN_DB_SERVER_LOCATION "MAIN_DB_SERVER_LOCATION"
#define MAIN_DB_USER_NAME "MAIN_DB_USER_NAME"
#define MAIN_DB_USER_PASSWORD "MAIN_DB_USER_PASSWORD"
#define INSTR_TYPE_CONTINUE 0
#define INSTR_TYPE_YES_NO 1
//================================================================================
// Types
typedef int (*tfEXLX_Init)( char *szTemplateFile , int bVisible , int *pHandle );
typedef int (*tfEXLX_UpdateTargetFileName)( int handle , char *szFileName );
typedef int (*tfEXLX_GetTargetFileName)( int handle , char **szFileName );
typedef int (*tfEXLX_Print_VectorOfLabels)( int handle , char **pszLabelName , char **pszLabelValue , int iNumberOfItems );
typedef int (*tfEXLX_Read_VectorOfLabels)( int handle , char ***pszLabelName , char ***pszLabelValue , int *piNumberOfItems );
typedef int (*tfEXLX_ExportAllToPDF)( int handle , char *szFileNamePath );
typedef int (*tfEXLX_SetVisibleStatus)( int handle , int bVisible );
typedef int (*tfEXLX_SetActivePage)( int handle , int iSheetNumber );
typedef int (*tfEXLX_GetCurrentRange)( int handle , char **pszCellIndexName , char **pszCellName );
typedef int (*tfEXLX_IsCellNameExists)( int handle , char *szCellName , int bSelectCell , int *piExists );
typedef int (*tfEXLX_SetCellFontAttributes)( int handle , char *szLabelName , int fontColor , int fontSize , int fontBold , int fontUnderline );
typedef int (*tfEXLX_SetCellName)( int handle , char *szCellIndexName , char *szCellName );
typedef int (*tfEXLX_OpenTemplateFileEx)( int handle , char *szFileName );
typedef int (*tfEXLX_OpenTemplateFile)( int handle );
typedef int (*tfEXLX_SaveTemplateFile)( int handle );
typedef int (*tfEXLX_CloseTemplateFile)( int handle );
typedef int (*tfEXLX_Close)( int *pHandle );
typedef int (*tfWRDX_Init)( char *szTemplateFile , int bVisible , int *pHandle );
typedef int (*tfWRDX_GetCurrentRange)( int handle , char **pszCellIndexName , char **pszCellName );
typedef int (*tfWRDX_IsBookmarkExists)( int handle , char *szCellName , int bSelectCell , int *piExists );
typedef int (*tfWRDX_SetBookmarkName)( int handle , char *szCellIndexName , char *szCellName );
typedef int (*tfWRDX_OpenTemplateFileEx)( int handle , char *szFileName );
typedef int (*tfWRDX_OpenTemplateFile)( int handle );
typedef int (*tfWRDX_SaveTemplateFile)( int handle );
typedef int (*tfWRDX_UpdateTargetFileName)( int handle , char *szFileName );
typedef int (*tfWRDX_GetTargetFileName)( int handle , char **szFileName );
typedef int (*tfWRDX_Print_VectorOfLabels)( int handle , char **pszLabelName , char **pszLabelValue , int iNumberOfItems );
typedef int (*tfWRDX_Read_VectorOfLabels)( int handle , char ***pszLabelName , char ***pszLabelValue , int *piNumberOfItems );
typedef int (*tfWRDX_SetRangeFontAttributes)( int handle , char *szLabelName , int fontColor , int fontSize , int fontBold , int fontUnderline , int textAlignment );
typedef int (*tfWRDX_ExportAllToPDF)( int handle , char *szFileNamePath );
typedef int (*tfWRDX_SetVisibleStatus)( int handle , int bVisible );
typedef int (*tfWRDX_SetActivePage)( int handle , int iSheetNumber );
typedef int (*tfWRDX_CloseTemplateFile)( int handle );
typedef int (*tfWRDX_Close)( int *pHandle );
typedef struct
{
HINSTANCE hExcelPlugInLibrary;
tfEXLX_Init EXLX_Init;
tfEXLX_UpdateTargetFileName EXLX_UpdateTargetFileName;
tfEXLX_GetTargetFileName EXLX_GetTargetFileName;
tfEXLX_Print_VectorOfLabels EXLX_Print_VectorOfLabels;
tfEXLX_Read_VectorOfLabels EXLX_Read_VectorOfLabels;
tfEXLX_ExportAllToPDF EXLX_ExportAllToPDF;
tfEXLX_SetVisibleStatus EXLX_SetVisibleStatus;
tfEXLX_SetActivePage EXLX_SetActivePage;
tfEXLX_GetCurrentRange EXLX_GetCurrentRange;
tfEXLX_IsCellNameExists EXLX_IsCellNameExists;
tfEXLX_SetCellName EXLX_SetCellName;
tfEXLX_SetCellFontAttributes EXLX_SetCellFontAttributes;
tfEXLX_OpenTemplateFileEx EXLX_OpenTemplateFileEx;
tfEXLX_OpenTemplateFile EXLX_OpenTemplateFile;
tfEXLX_SaveTemplateFile EXLX_SaveTemplateFile;
tfEXLX_CloseTemplateFile EXLX_CloseTemplateFile;
tfEXLX_Close EXLX_Close;
} tuExcelPlugInItem;
typedef struct
{
HINSTANCE hWordPlugInLibrary;
tfWRDX_Init WRDX_Init;
tfWRDX_GetCurrentRange WRDX_GetCurrentRange;
tfWRDX_IsBookmarkExists WRDX_IsBookmarkExists;
tfWRDX_SetBookmarkName WRDX_SetBookmarkName;
tfWRDX_OpenTemplateFileEx WRDX_OpenTemplateFileEx;
tfWRDX_OpenTemplateFile WRDX_OpenTemplateFile;
tfWRDX_SaveTemplateFile WRDX_SaveTemplateFile;
tfWRDX_UpdateTargetFileName WRDX_UpdateTargetFileName;
tfWRDX_GetTargetFileName WRDX_GetTargetFileName;
tfWRDX_Print_VectorOfLabels WRDX_Print_VectorOfLabels;
tfWRDX_Read_VectorOfLabels WRDX_Read_VectorOfLabels;
tfWRDX_SetRangeFontAttributes WRDX_SetRangeFontAttributes;
tfWRDX_ExportAllToPDF WRDX_ExportAllToPDF;
tfWRDX_SetVisibleStatus WRDX_SetVisibleStatus;
tfWRDX_SetActivePage WRDX_SetActivePage;
tfWRDX_CloseTemplateFile WRDX_CloseTemplateFile;
tfWRDX_Close WRDX_Close;
} tuWordPlugInItem;
typedef int (*EXT_TRIG_TemperatureInitModule)( int ,char*,char*,char*,int*);
typedef double (*EXT_TRIG_TemperatureSyncSigment)(int,double,double,double);
typedef double (*EXT_TRIG_VibrationSyncSigment)( int, double, double, double );
typedef int (*EXT_TRIG_TemperatureCloseModule)(int*);
typedef enum { VALUE_TYPE_INT , VALUE_TYPE_DOUBLE , VALUE_TYPE_STRING , VALUE_TYPE_IMAGE , VALUE_TYPE_INT_ARRAY , VALUE_TYPE_DOUBLE_ARRAY , VALUE_TYPE_SENTINEL } teValueType;
typedef enum{ NOT_SELECTED , RUN_SELECTION , DOC_SELCTION , DATABASE_SELECTION , REPORT_SELECTION , CLEAR_SELECTION , SENTINEL_SELECTION } teMAIN_SELECTION;
typedef enum{ RUN_MODE_TEST , RUN_MODE_CALIBRATION , RUN_MODE_DEBUG , RUN_MODE_DEMO , RUN_MODE_SENTINEL } teMAIN_RUN_MODE;
typedef enum{ TEST_STATUS_RUNNING, TEST_STATUS_PASS, TEST_STATUS_FAIL, TEST_STATUS_ABORT, TEST_STATUS_ERROR, TEST_STATUS_DEMO, TEST_STATUS_SENTINEL } teSTATUS_TEST;
typedef enum{ TEST_TYPE_TEST , TEST_TYPE_PRE_TEST , TEST_TYPE_POST_TEST } teTestType;
typedef struct
{
int hPanel,
bDisplayed;
int control_lb_TEST_MESSAGES,
control_rb_STOP_ON_RESULT,
control_num_RESULT_NUM,
control_rb_STOP_ON_TEST_END,
control_rb_SINGLE_STEP,
control_rb_STOP_ON_FAIL,
control_tb_TEST_FLOW,
control_tb_UUT_NAME,
control_tb_USER_NAME,
control_tb_SN,
control_tb_UUT_VERSION,
control_tb_TEST_NAME,
control_ns_RESULT_BAR,
control_cb_ABORT_TEST,
control_cb_ABORT_ALL,
control_TABLE_RESULT,
control_cb_STOP_TEST,
control_cb_CONTINUE_TEST,
control_STOP_LED,
control_TESTS_LIST,
control_LOOP,
control_PROGRESS_DELAY,
control_PROGRESS_TIMEOUT,
control_DELAY_TIME,
control_TIMEOUT_TIME,
control_UUT_NUMBER,
control_TIME,
control_cb_OPEN_REPORT,
control_RESULT_BAR_TIME,
control_rb_PAUSE_ON_DELAY,
control_TEMPERATURE,
control_SERMENT,
control_PATH_NAME,
control_PATH_INDEX,
control_FREQ_INDEX,
control_TOTAL_COMP,
control_REPORT_TYPE;
int left,
top;
}teTestPanel;
typedef struct
{
int iControlID;
int iLeft,
iTop,
iWidth,
iHeight;
int iBeforeMoveLeft,
iBeforeMoveTop;
int iXCoordinate,
iYCoordinate;
int iPreviousLinkedControl,
iPreviousLinkedIndex;
int iNextLinkedControl,
iNextLinkedIndex;
}tsConfigSingleItem;
typedef struct
{
tsConfigSingleItem tLabelCtrlID,
tValueCtrlID,
tNumberCtrlID,
tPictureCtrlID;
int iNumber,
iDefCtrl,
iType,
iUnique;
unsigned long long iImageID;
}tsConfigControlsItem;
typedef struct
{
tsConfigControlsItem *pConfigControls;
int iNumberOfConfigs,
iCurrentControlIndexMouseMoveIndex,
iCurrentControlIDMouseMove,
iCurrentPanelIDMouseMove;
int iNextLinkedControl,
iNextLinkedIndex;
int bSaveNeeded;
}tsConfigControl;
typedef struct
{
tTest *ptDB_Test;
tlSpec *ptlDB_Specs;
HMODULE dllTestHandle,
dllPathHandle,
dllCalibHandle;
char *pPathApplyFunction;
int hPathModuleRefHandle;
char *pszLibraryPath;
int iTestStatus,
iTotalTestStatus;
int hLockHandle,
lockStatus;
int iCurrentLoop,
iNumberOfLoops;
int iCurrentPathIndex,
iCurrentCalibPathPartIndex;
int iNumberOfTestSteps;
double lfLoopTime,
lfLoopStartTime;
unsigned long long database_session;
int bStopOnFail,
bSingleStep,
bStopOnTestEnd,
bPauseOnDelay,
iPauseOnResult;
int bConfig_TryToStartTestWhileBusy,
bConfig_ReportDisableView;
int bTryNextTime;
//------------ Version 4.4.0.0 --------------------//
tlEquipmentUse *ptlDB_EquipmentList;
//------------ Version 4.4.2.0 --------------------//
int *pPathDisableList,
*pPathHasDoneList;
//------------ Version 4.6.12.0 --------------------//
int *pFrequencyDisableList;
int iFrequencyListLength;
//------------ Version 4.6.20.0 --------------------//
int iNumberOfReTestHaveDone;
//------------ Version 5.2.6.0 --------------------//
int bDisableTestResultCountCheck;
}tsSingleTestItem;
typedef struct
{
tsSingleTestItem *pCurrentRunTestSeq;
int iNumberOfSelectedTests;
} tsTestListItem;
typedef struct
{
int number;
char *pszParameter;
}tsExtraItem;
typedef struct
{
int iNumberOfItems;
tsExtraItem *pList;
}tsExtraParamsList;
typedef struct
{
char *pszSerialNumberParsingModulePath,
*pszAutoSelectionModulePath,
*szOperator;
int bRunLastSnConfig,
bAutoContinue;
int iMaxNumberOfSlots,
iMaxNumberOfExtraParams;
} tuSelectSerialNumberItem;
typedef struct
{
tsExtraParamsList tExtraList;
char *pSerialNumber,
*pPartNumber,
*pNote;
int bRunEnable;
int iAutoSelect_UUT_Index,
iAutoSelect_Verion_Index;
void *piAutoSelect_ExtraData;
int iAutoSelect_ExtraDataLength;
} tsSSNRItem;
typedef struct
{
tsSSNRItem *pSelect;
int iNumberOfSlots;
} tsSSNRList;
typedef struct
{
double lfStartToolTipTime;
int iLastXcoordinates,
iLastYcoordinates,
iToolTipControl,
bToolTipEnabled,
iToolTipPanel;
int hProcessingToolTipLock;
}tsToolTipItem;
typedef struct
{
int handle,
type;
void *pResult,
*pResdata;
int iCurrentTestIndex,
iResultIndex,
iCurrentSpecIndex;
int iTestStatus;
char *pszPicturePath;
unsigned long long ulTestBatabaseSession;
tSpec *spec;
} tsSTANDARD_RESULT_ITEM;
/*
typedef struct
{
tsSTANDARD_RESULT_ITEM *pResults;
int iNumberOfResults;
} tsSTANDARD_RESULT_LIST;
*/
typedef struct
{
int bSkipSerialNumber,
bAutoContinueSerialNumber,
bBreakAllTestsOnError,
bRunPreTestOnce,
bRunPostTestOnce,
bRunPreTestFirstOnce,
bRunPostTestLastOnce,
bRunPostTestAnyWay,
bTestsPanelsMoveble,
bPopupVariablesStringEditor,
bReportOrderDown,
bRunAnyWay,
bTestStopEventsForAllTests,
bViewTestTotalTimeOnSummery,
bViewReportAttachedFiles,
bRunAutoSelectionOnly,
bUserSelectAllReports;
int iUserSelectReportType;
double lfStatusWindowTimeout;
//------------ Version 4.2.0.0 --------------------//
int bDisableMainWindowResizing;
//------------ Version 4.4.2.0 --------------------//
int bRunSequencyPathOriented;
//------------ Version 4.4.4.0 --------------------//
int bEnableedToRepeatTestAtFail;
//------------ Version 4.4.5.0 --------------------//
int bWarningForSerialNumberRepeat;
//------------ Version 4.6.6.0 --------------------//
int bRunInDemoMode;
//------------ Version 4.6.21.0 --------------------//
int bSkipDeviceCommandRepeatCheck;
//------------ Version 4.7.0.0 --------------------//
int iAllowedNumberOfReportThreads,
iAllowedNumberOfTestThreads;
//------------ Version 4.8.3.0 --------------------//
int bDeleteReportSourceAfterGeneration;
//------------ Version 5.0.10.0 --------------------//
int bUserReadyToRunUUT;
//------------ Version 5.1.8.0 --------------------//
int bOpenReportSourceOnly;
//------------ Version 5.2.2.0 --------------------//
int bTempVibrMeasureDev;
//------------ Version 5.2.4.0 --------------------//
int bDisableExportReports;
//------------ Version 5.2.5.0 --------------------//
int bReportsOneBasedTemperatureIndex;
//------------ Version 5.2.8.0 --------------------//
int bDisableToCheckTemperatureTrigger;
//------------ Version 5.2.16.0 --------------------//
double lfVibrationUpdatePeriod,
lfTemperatureUpdatePeriod;
//------------ Version 5.2.18.0 --------------------//
double lfProfileLogUpdatePeriod;
//------------ Version 5.3.1.0 --------------------//
int bGenerateReportsAutomatically;
//------------ Version 5.4.6.0 --------------------//
int bDisableGenerateReportsAfterTest,
bBlockStartTestWhileGeneratingReports;
//------------ Version 5.4.9.0 --------------------//
int iGenerateReportsByStatusLevel;
//------------ Version 5.5.3.0 --------------------//
int bUserSelectAutoReport;
} tsConfiguration;
typedef struct
{
//-------------------------- Local Store -------------------------------------//
int bEnableRun,
bRunning;
int hDatabaseHandle,
hMainDatabaseHandle;
int hSlotPoolThreadHandle;
teTestPanel *pvhTestPanels;
int hCurrentVisiblePanel,
hCurrentVisiblePanelIndex;
int hMainStoreHandle;
int iSlotIndex;
STD_ERROR *pLastError;
unsigned __int64 dwOperatorPrivileges;
int bInSleepState;
int iSpecGroup;
teMAIN_RUN_MODE tRunMode;
tSession *pCurrent_database_session;
unsigned long long hCurrentTestId;
int iCurrentTestIndex,
iDrawStatusTestIndex;
int iNextResultIndex,
iCurrentSpecIndex;
tsTestListItem tCurrentRunTestSeq;
int iCurrentLoop,
iNumberOfLoops;
double lfCurrentTestStartTime;
double lfCurrentTemperature;
int iCurrentTemperatureLoop,
iNumberOfTemperatureLoops;
int iCurrentTemperatureSegment,
iNumberOfTemperatureSegments;
int hTemperatureModuleHandle;
EXT_TRIG_TemperatureSyncSigment EXT_TRIG_TemperatureModuleSet;
tsToolTipItem tToolTips;
double lfLoopTime,
lfLoopStartTime;
double lfStartTimeoutTime,
lfMaxTimeoutTime;
double lfStartDelayTime,
lfMaxDelayTime;
int hThreadID,
hGuiThreadID;
int bSetPaused,
bPaused;
int bTryNextTime;
int bDisableStatusWindow;
int bBreakRunningSequence;
int hSlotGuiLockHandle,
hSlotGuiBusyLockHandle;
int slotVariableSaving;
tsExtraParamsList extraParameters;
unsigned long long hCurrentSelectedUutId,
hCurrentSelectedVersionId;
char *pszCurrentSelected_UUT_PartNumber,
*pszCurrentSelected_UUT_Name,
*pszCurrentSelected_UUT_VersionName;
unsigned int iAtuo_UUT_Selection_Index,
iAtuo_VER_Selection_Index;
void *pAuto_ExtraData;
int iAuto_ExtraDataLength;
int bRunningStatus,
iTotalStatus;
int bBreakTemperatureRunning,
bEnableOvenExtremeMode;
int iStatusWindowTop,
iStatusWindowLeft;
char *pszTitleName,
*pszCurrentPathName;
//------------ Version 4.2.0.0 --------------------//
char *pszOperatorName;
tsConfiguration *pRunConfig;
int iCurrentMonitorID;
int iSelectedNumberOfSlots;
int bRunMultiThread;
unsigned long long hCurrentUserId;
char *pszStationLocation,
*pszStationName,
*pszStationPartNumber,
*pszStationSerialNumber;
double *pPathFrequenciesList;
int iPathFreqNumberOfPoints;
int hSlotBackgroundThreadID,
hSlotBackgroundBusyLockHandle;
int bRunDelayProcess;
//------------ Version 4.2.3.0 --------------------//
char *pLastPathManualConnectionDescription;
//------------ Version 4.2.14.0 --------------------//
int iLastResultStatus;
//------------ Version 4.4.3.0 --------------------//
char *pszPreviousPathName;
//------------ Version 4.4.4.0 --------------------//
int iPathGroup;
//------------ Version 4.4.5.0 --------------------//
char *pszCurrentPathDescription;
double lfUserResponseTime;
char *pszPreviousCalibrationPathName;
//------------ Version 4.4.6.0 --------------------//
char *pPathPartAlias;
//------------ Version 4.6.3.0 --------------------//
tlFrequency *ptlFrequencies;
int iCurrentFrequencyIndex;
//------------ Version 4.6.10.0 --------------------//
int bGuiUpdatingDisabled;
//------------ Version 4.6.13.0 --------------------//
double lfDefaultTemperature;
//------------ Version 4.8.2.0 --------------------//
int bGuiUpdatingDisabledReleased;
//------------ Version 4.9.2.0 --------------------//
int *pPathRangesList;
int iPathFreqNumberOfRanges;
//------------ Version 5.1.9.0 --------------------//
char *pszCurrentSelected_UUT_Project_Number;
//------------ Version 5.1.15.0 --------------------//
double lfCurrentVibration;
//------------ Version 5.1.17.0 --------------------//
int bTestIsEnding;
//------------ Version 5.2.4.0 --------------------//
unsigned long long *pTemperatureProfileReportList;
//------------ Version 5.2.6.0 --------------------//
int hResultToWindowQueueHandle,
hResultAnalyzeQueueHandle;
int hLogProcessQueueHandle,
hLogToWindowQueueHandle;
int hFileProcessQueueHandle;
tLog tCurrentLogBuffer;
//------------ Version 5.2.8.0 --------------------//
int iMaxNumberOfSlots,
iMaxNumberOfSlotsToSelect;
//------------ Version 5.4.1.0 --------------------//
int bSlotFinishedRunning;
//------------ Version 5.5.6.0 --------------------//
int iSelectedFinalTest;
char *pszTestType;
//------------ Version 5.6.6.0 --------------------//
int iSlotSynchronizationAtOnePointCounter,
hSlotSynchronizationAtOnePointLockHandle;
int bGlobalDisplayDataUpdate;
}tsSlotStore;
typedef struct
{
//----------------- Main Store -------------------------//
int bRunMultiThread;
int bRunningStatus;
int hMainPanelHandle,
hMenuBarHandle;
int hTestPoolThreadHandle;
int hInstructionLockHandle;
int hSemaphoreLockHandle;
unsigned int uiSemaphoreSpaceCounter;
int bMainThreadBusy;
int hDatabaseHandle,
hMainDatabaseHandle;
int iCurrentSlotIndex;
int hMainThreadLock;
int iMaxNumberOfSlots,
iMaxNumberOfSlotsToSelect,
iCalibNumberOfSlotsToSelect;
int iSelectedNumberOfSlots;
int *pSlotsHandleList;
int *pSlotsDisabledList;
int iNumberOfCurrentRunningSlots,
iNumberOfActiveTestThread,
iMaximumNumberOfActiveTestThread;
int globalTestsVariableSaving;
int bLoadLastSnConfig,
bRunLastSnConfig;
char *pszSW_Revision,
*pszStationName,
*pszStationLocation,
*pszOperator,
*pszOperatorPassword,
*pszStationPartNumber,
*pszStationSerialNumber;
unsigned __int64 dwOperatorPrivileges;
char *pszCurrentSelected_UUT_PartNumber,
*pszCurrentSelected_UUT_Name,
*pszCurrentSelected_UUT_VersionName;
char *pszSerialNumberSelectModulePath,
*pszSerialNumberParsingModulePath,
*pszAutoSelectionModulePath,
*pszProfileTriggerModulePath,
*pszProfileModuleDeviceAddress_,
*pszProfileModuleDeviceDriverLocation_,
*pszProfileModuleDeviceConfigFile_,
*pszExcelTemplatePath,
*pszWordTemplatePath;
unsigned int iTemperatureModuleDriverID;
int iVersionNumber;
double lfTemperatureCelsius,
lfDelayBetweenStartSlots;
tsTestListItem tCurrentRunTestSeq;
int bSelectedFullATP;
int bPreTestSelected,
bPostTestSelected;
int iNumberOfExtraParameters;
teMAIN_RUN_MODE tRunMode;
int iSpecGroup;
unsigned long long hCurrentStationId,
hCurrentUserId,
hCurrentSelectedUutId,
hCurrentSelectedVersionId;
unsigned long long hLastSessionReport;
unsigned long long hEditorCurrentSelectedStationID,
hEditorCurrentSelectedUserID,
hEditorCurrentSelectedUutID,
hEditorCurrentSelectedUutVersionID,
hEditorCurrentSelectedTestID,
hEditorCurrentSelectedVariableID,
hEditorCurrentSelectedSpecID,
hEditorCurrentSelectedTemperatureProfileID,
hEditorCopyCameFromVersionID,
hEditorCopyCameFromUutID;
int hEditorCurrentSelectedVarType;
char *pszEditorCurrentSelectedTestName,
*pszEditorTestTemplatePrefix;
int hEditorTemplateHandle;
unsigned long long hEditorTemplateFileDatabaseID;
char iEditorTemplateBookmarkStyle;
char *pTemplateFileFullPath;
int iLastSelectionSectionIndex;
tsConfigControl *ptConfigControls;
tlUser *copyUsers;
tlStation *copyStations;
tlUut *copyUUTs;
tlUutVer *copyUUTversions;
tlFile *copyFiles;
tlTest *copyTests;
tlSpec *copySpecs;
tlVar *copyVariables;
tlCalibration *copyCalibrations;
tlVerConfig *copyConfigControls;
tlTempProfile *copyTempProfileList;
double lfLastMainPanelSizeingTime;
int iMainPanelLastWidth,
iMainPanelLastHeight,
iMainPanelLastZoom,
iStartMainPanelTop,
iStartMainPanelLeft,
iStartMainPanelMax;
int bRunLast,
bInitRun;
int bGlobalExitRequest;
tsConfiguration config;
STD_ERROR *pRet;
char *pApplicationFileName,
*pDatabaseName;
//------------ Version 4.2.0.0 --------------------//
char *pszReferanceDataBaseName;
//------------ Version 4.3.1.0 --------------------//
HINSTANCE hDriverManagerLibrary;
//------------ Version 4.3.4.0 --------------------//
unsigned long long hEditorCurrentSelectedEquipmentID,
hEditorCurrentSelectedEquipmentUsedID;
int iEditorCurrentSelectedEquipmentType;
//------------ Version 4.4.0.0 --------------------//
tlEquipmentUse *copyEquipmentUse;
//------------ Version 4.4.4.0 --------------------//
int iPathGroup;
//------------ Version 4.5.0.0 --------------------//
char **pCalibratedPathList;
int iCalibratedPathListCount;
//------------ Version 4.5.1.0 --------------------//
int hMainDatabaseLockHandle;
//------------ Version 4.6.0.0 --------------------//
tuExcelPlugInItem *ptExcelPlugIn;
tuWordPlugInItem *ptWordPlugIn;
//------------ Version 4.6.13.0 --------------------//
double lfDefaultTemperature;
//------------ Version 4.6.20.0 --------------------//
char **pLastPathCommandsList;
int *piLastPathCommandValuesList;
int iLastPathNumberOfCommands;
int bLastPathCommandHasApplied;
//------------ Version 4.8.7.0 --------------------//
tlEquipment *copyEquipment;
//------------ Version 4.8.11.0 --------------------//
char *pLicenseServerAddress;
//------------ Version 5.0.3.0 --------------------//
int iEditorCurrentSpecGroup;
//------------ Version 5.0.9.0 --------------------//
unsigned int ulCurrentUserLevelNumber;
//------------ Version 5.1.9.0 --------------------//
char *pszCurrentSelected_UUT_Project_Number;
//------------ Version 5.2.3.0 --------------------//
int bCurrentRunningDatabaseIsServer;
//------------ Version 5.2.5.0 --------------------//
int hExcelGeneratorHandle,
hWordGeneratorHandle;
//------------ Version 5.2.6.0 --------------------//
int bSchedulingTesting;
int iNumberOfFinalizingTestThread;
//------------ Version 5.2.16.0 --------------------//
int hOvenControlHandle,
hOvenControlLockHandle;
//------------ Version 5.2.18.0 --------------------//
int iRunningTestSlots,
iSlotsHaveFinishedSegment,
iSlotsWantToFinishSegment,
iNumberOfScheduledTestThread;
//------------ Version 5.2.24.0 --------------------//
unsigned long long station_unique;
//------------ Version 5.3.4.0 --------------------//
int hImportFilesFunctiondID;
//------------ Version 5.4.6.0 --------------------//
int bGeneratingReportsInProgress;
//------------ Version 5.5.6.0 --------------------//
int iSelectedFinalTest;
char *pszTestType;
//------------ Version 5.6.6.0 --------------------//
int iSlotSynchronizationAtOnePointActiveSlots,
iMainSynchronizationAtOnePointCounter,
hSlotSynchronizationAtOnePointLockHandle;
//------------ Version 5.6.10.0 --------------------//
int bOneOrMoreOfSlotsFinished;
//------------ Version 5.7.6.0 --------------------//
int bExportReporting;
}tsMainStore;
typedef struct
{
int handle,