Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
NtTools.h
1#ifndef NTTOOLS_H
2#define NTTOOLS_H
3
4BEGIN_MOOTOOLS_NAMESPACE
5
6// Registry
7DLL_TOOLSFUNCTION bool DeleteProfileKey(LPCTSTR lpszSection, LPCTSTR lpszEntry);
8DLL_TOOLSFUNCTION BOOL GetProfileBinary(LPCTSTR lpszSection, LPCTSTR lpszEntry, void **ppData, UINT* pBytes);
9DLL_TOOLSFUNCTION BOOL WriteProfileBinary(LPCTSTR lpszSection, LPCTSTR lpszEntry, void *ppData, UINT pBytes);
10DLL_TOOLSFUNCTION BOOL WriteProfileFloat(LPCTSTR lpszSection, LPCTSTR lpszEntry, float data);
11DLL_TOOLSFUNCTION BOOL GetProfileFloat(LPCTSTR lpszSection, LPCTSTR lpszEntry, float& value, float defaultValue);
12DLL_TOOLSFUNCTION BOOL WriteProfileLongUInt(LPCTSTR lpszSection, LPCTSTR lpszEntry, longuint data);
13DLL_TOOLSFUNCTION BOOL GetProfileLongUInt(LPCTSTR lpszSection, LPCTSTR lpszEntry, longuint& value, longuint defaultValue);
14DLL_TOOLSFUNCTION BOOL GetNameFromRegistry(const CXString& regname, DWORD pathType, CXString& filename);
15
16#ifdef MOOTOOLS_PRODUCT_BUILD
17// Resources useful class
18class DLL_TOOLSFUNCTION CXWaitCursor
19{
21
22public:
23 CXWaitCursor(bool wait);
25
26 void ShowWaitCursor(bool show);
27};
28
29// class used to perform timings
30class DLL_TOOLSFUNCTION CProfileTimer
31{
32public:
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
43#endif
44
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
62class DLL_TOOLSFUNCTION CUseResourceHandle
63{
64 HINSTANCE hInstOld;
65
66public:
69};
70
71#if !defined(MOOTOOLS_NO_UI)
72 // Windows 7
73typedef enum _TaskBarScrollerFlags
74{
80
81DLL_TOOLSFUNCTION void TaskbarScroller(TaskBarScrollerFlags flags, unsigned int customDataID, unsigned int pos, unsigned int max, CWnd *pWnd = NULL);
82#endif
83#endif
84
85END_MOOTOOLS_NAMESPACE
86
87#endif /* NTTOOLS_H */
CXTString< TCHAR > CXString
CXString depend on the target OS. Could be CXStringW (Windows) or CXStringA (Linux / Macos)
Definition XString.h:118
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
Definition NtTools.h:63