Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
NtTools.h
1
#ifndef NTTOOLS_H
2
#define NTTOOLS_H
3
4
BEGIN_MOOTOOLS_NAMESPACE
5
6
// Registry
7
DLL_TOOLSFUNCTION
bool
DeleteProfileKey(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
);
8
DLL_TOOLSFUNCTION
BOOL
GetProfileBinary(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
,
void
**
ppData
,
UINT
*
pBytes
);
9
DLL_TOOLSFUNCTION
BOOL
WriteProfileBinary(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
,
void
*
ppData
,
UINT
pBytes
);
10
DLL_TOOLSFUNCTION
BOOL
WriteProfileFloat(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
,
float
data);
11
DLL_TOOLSFUNCTION
BOOL
GetProfileFloat(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
,
float
& value,
float
defaultValue);
12
DLL_TOOLSFUNCTION
BOOL
WriteProfileLongUInt(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
,
longuint
data);
13
DLL_TOOLSFUNCTION
BOOL
GetProfileLongUInt(
LPCTSTR
lpszSection
,
LPCTSTR
lpszEntry
,
longuint
& value,
longuint
defaultValue);
14
DLL_TOOLSFUNCTION
BOOL
GetNameFromRegistry(
const
CXString
&
regname
,
DWORD
pathType
,
CXString
& filename);
15
16
#ifdef MOOTOOLS_PRODUCT_BUILD
17
// Resources useful class
18
class
DLL_TOOLSFUNCTION
CXWaitCursor
19
{
20
CWaitCursor
*
pWait
;
21
22
public
:
23
CXWaitCursor
(
bool
wait);
24
~CXWaitCursor
();
25
26
void
ShowWaitCursor(
bool
show
);
27
};
28
29
// class used to perform timings
30
class
DLL_TOOLSFUNCTION
CProfileTimer
31
{
32
public
:
33
CProfileTimer
(
BOOL
dumpMemory
);
34
35
// starts the timer
36
void
Start();
37
// returns the number of milliseconds
38
DWORD
End
(
const
CXString
& text =
CXString
());
39
40
#ifdef _DEBUG
41
BOOL
dumpMemory
;
42
CMemoryState
memstart
,
memend
;
43
#endif
44
45
int
threadPriority
;
46
__int64
m_freq
;
47
__int64
m_start
;
48
};
49
50
#ifndef MOOTOOLS_NO_SPECIFIC_PROCESS_SUPPORT
51
DLL_TOOLSFUNCTION
bool
IsProcessExists
(
LPCWSTR
processName
);
52
DLL_TOOLSFUNCTION
CXString
GetApplicationDescription
(
const
CXString
& path,
bool
addVersion
=
true
);
53
54
// utilities
55
DLL_TOOLSFUNCTION
DWORD
GetDllVersion
(
CXString
&
dllname
);
56
DLL_TOOLSFUNCTION
BOOL
IsXPCommonControls
();
57
#endif
58
#endif
59
60
#ifdef MOOTOOLS_MFC_PRODUCT_BUILD
61
// Resources useful class
62
class
DLL_TOOLSFUNCTION
CUseResourceHandle
63
{
64
HINSTANCE
hInstOld;
65
66
public
:
67
CUseResourceHandle
(
HINSTANCE
hInstance
);
68
~CUseResourceHandle
();
69
};
70
71
#if !defined(MOOTOOLS_NO_UI)
72
// Windows 7
73
typedef
enum
_TaskBarScrollerFlags
74
{
75
TASKBAR_SCROLLER_SETPOS
= 0x02,
76
TASKBAR_SCROLLER_CLOSE
= 0x04,
77
TASKBAR_SCROLLER_START_INDETERMINATE
= 0x08,
78
TASKBAR_SCROLLER_STOP_INDETERMINATE
= 0x10,
79
}
TaskBarScrollerFlags
;
80
81
DLL_TOOLSFUNCTION
void
TaskbarScroller
(
TaskBarScrollerFlags
flags,
unsigned
int
customDataID
,
unsigned
int
pos,
unsigned
int
max,
CWnd
*
pWnd
=
NULL
);
82
#endif
83
#endif
84
85
END_MOOTOOLS_NAMESPACE
86
87
#endif
/* NTTOOLS_H */
CXString
CXTString< TCHAR > CXString
CXString depend on the target OS. Could be CXStringW (Windows) or CXStringA (Linux / Macos)
Definition
XString.h:118
C3DTPoint
The class defines an x, y, z 3D point which can use int, float or double.
Definition
3DPoint.h:27
CUseResourceHandle
Definition
NtTools.h:63
CXTString< TCHAR >
VS2022-PolygonCruncherSDK-Full-IO
SDK
Includes
NtTools.h
Generated by
1.9.8