-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecorder.h
More file actions
50 lines (39 loc) · 1.21 KB
/
Recorder.h
File metadata and controls
50 lines (39 loc) · 1.21 KB
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
#ifndef _SIMPLE_RECORDER_H
#define _SIMPLE_RECORDER_H
////////////////////////////////////////////////////////////////////////////////
//
// General definitions.
//
// Including the definitions for general using.
//
// These definitions are generally used in different operation system.
//
////////////////////////////////////////////////////////////////////////////////
typedef struct tagSimpleRecorder
{
//Trace ID
_INT32 nTraceID;
//Locked
_BOOL bLocked;
//Open Time
SimpleTime timeOpen;
//Directory
_PASCALSTRING strDirectory;
//File Name
_PASCALSTRING strFileName;
//File
FILE* lpFile;
}
SimpleRecorder;
////////////////////////////////////////////////////////////////////////////////
//
// General functions.
//
////////////////////////////////////////////////////////////////////////////////
extern void InitializeRecorder(SimpleRecorder* pRecorder);
extern void UninitializeRecorder(SimpleRecorder* pRecorder);
extern _BOOL OpenRecorder(SimpleRecorder* pRecorder);
extern _BOOL CloseRecorder(SimpleRecorder* pRecorder);
extern _BOOL RecordEvent(SimpleRecorder* pRecorder,_STRING lpstrEvent);
////////////////////////////////////////////////////////////////////////////////
#endif //End of the header file.