Revision 1
(checked in by haines, 17 years ago)
|
Initial import
|
Line | |
---|
1 |
/* |
---|
2 |
* DAQLIB_DLL.dll |
---|
3 |
* |
---|
4 |
* PURPOSE: This DLL exports functions to perform simple system functions |
---|
5 |
* not available in embedded Visual Basic. |
---|
6 |
* |
---|
7 |
*/ |
---|
8 |
|
---|
9 |
// The following ifdef block is the standard way of creating macros which make exporting |
---|
10 |
// from a DLL simpler. All files within this DLL are compiled with the DAQLIB_EXPORTS |
---|
11 |
// symbol defined on the command line. this symbol should not be defined on any project |
---|
12 |
// that uses this DLL. This way any other project whose source files include this file see |
---|
13 |
// DAQLIB_API functions as being imported from a DLL, wheras this DLL sees symbols |
---|
14 |
// defined with this macro as being exported. |
---|
15 |
|
---|
16 |
#ifdef DAQLIB_EXPORTS |
---|
17 |
#define DAQLIB_API __declspec(dllexport) |
---|
18 |
#else |
---|
19 |
#define DAQLIB_API __declspec(dllimport) |
---|
20 |
#endif |
---|
21 |
|
---|
22 |
/* |
---|
23 |
* Constants |
---|
24 |
*/ |
---|
25 |
#define MAXIMUM_RETURN_INFO_LEN 512 |
---|
26 |
|
---|
27 |
/* |
---|
28 |
* Prototypes |
---|
29 |
*/ |
---|
30 |
|
---|
31 |
DAQLIB_API BOOL storageStatus(TCHAR* localFilePath, |
---|
32 |
TCHAR* returnInfo); |
---|
33 |
DAQLIB_API BOOL storagePercentage(TCHAR* localFilePath, |
---|
34 |
TCHAR* returnInfo); |
---|
35 |
|
---|
36 |
DAQLIB_API int getDirNumFiles(TCHAR* FileMask); |
---|
37 |
/*int or unsigned short*/ |
---|
38 |
|
---|
39 |
DAQLIB_API BOOL memoryStatus(TCHAR* returnInfo); |
---|
40 |
DAQLIB_API BOOL memoryPhysPercentage(TCHAR* returnInfo); |
---|
41 |
DAQLIB_API BOOL memoryVirtualPercentage(TCHAR* returnInfo); |
---|
42 |
|
---|
43 |
|
---|
44 |
/* |
---|
45 |
DAQLIB_API BOOL systemInfo(TCHAR* returnInfo); |
---|
46 |
*/ |
---|
47 |
|
---|