#include <CArchMiscWindows.h>
Public Types | |
typedef int(* | RunFunc )(void) |
enum | EValueType { kUNKNOWN, kNO_VALUE, kUINT, kSTRING, kBINARY } |
enum | EBusyModes { kIDLE = 0x0000, kSYSTEM = 0x0001, kDISPLAY = 0x0002 } |
Static Public Member Functions | |
void | init () |
Initialize. | |
bool | isWindows95Family () |
Test if windows 95, et al. | |
bool | isWindowsModern () |
Test if windows 95, et al. | |
void | setIcons (HICON largeIcon, HICON smallIcon) |
Set the application icons. | |
void | getIcons (HICON &largeIcon, HICON &smallIcon) |
Get the application icons. | |
int | runDaemon (RunFunc runFunc) |
Run the daemon. | |
void | daemonRunning (bool running) |
Indicate daemon is in main loop. | |
void | daemonFailed (int result) |
Indicate failure of running daemon. | |
UINT | getDaemonQuitMessage () |
Get daemon quit message. | |
HKEY | openKey (HKEY parent, const TCHAR *child) |
Open and return a registry key, closing the parent key. | |
HKEY | openKey (HKEY parent, const TCHAR *const *keyPath) |
Open and return a registry key, closing the parent key. | |
HKEY | addKey (HKEY parent, const TCHAR *child) |
Open/create and return a registry key, closing the parent key. | |
HKEY | addKey (HKEY parent, const TCHAR *const *keyPath) |
Open/create and return a registry key, closing the parent key. | |
void | closeKey (HKEY) |
Close a key. | |
void | deleteKey (HKEY parent, const TCHAR *name) |
Delete a key (which should have no subkeys). | |
void | deleteValue (HKEY parent, const TCHAR *name) |
Delete a value. | |
bool | hasValue (HKEY key, const TCHAR *name) |
Test if a value exists. | |
EValueType | typeOfValue (HKEY key, const TCHAR *name) |
Get type of value. | |
void | setValue (HKEY key, const TCHAR *name, const std::string &value) |
Set a string value in the registry. | |
void | setValue (HKEY key, const TCHAR *name, DWORD value) |
Set a DWORD value in the registry. | |
void | setValueBinary (HKEY key, const TCHAR *name, const std::string &value) |
Set a BINARY value in the registry. | |
std::string | readValueString (HKEY, const TCHAR *name) |
Read a string value from the registry. | |
DWORD | readValueInt (HKEY, const TCHAR *name) |
Read a DWORD value from the registry. | |
std::string | readValueBinary (HKEY, const TCHAR *name) |
Read a BINARY value from the registry. | |
void | addDialog (HWND) |
Add a dialog. | |
void | removeDialog (HWND) |
Remove a dialog. | |
bool | processDialog (MSG *) |
Process dialog message. | |
void | addBusyState (DWORD busyModes) |
Disable power saving. | |
void | removeBusyState (DWORD busyModes) |
Enable power saving. | |
void | wakeupDisplay () |
Briefly interrupt power saving. |
Definition at line 26 of file CArchMiscWindows.h.
|
Indicate failure of running daemon. Delegates to CArchDaemonWindows. Definition at line 119 of file CArchMiscWindows.cpp. References CArchDaemonWindows::daemonFailed(). |
|
Indicate daemon is in main loop. Delegates to CArchDaemonWindows. Definition at line 113 of file CArchMiscWindows.cpp. References CArchDaemonWindows::daemonRunning(). |
|
Get daemon quit message. Delegates to CArchDaemonWindows. Definition at line 125 of file CArchMiscWindows.cpp. References CArchDaemonWindows::getDaemonQuitMessage(). |
|
Get the application icons. Get the application icons. Definition at line 100 of file CArchMiscWindows.cpp. |
|
Test if windows 95, et al. Returns true iff the platform is win95/98/me. Definition at line 47 of file CArchMiscWindows.cpp. References init(). Referenced by CArchDaemonWindows::canInstallDaemon(), CArchDaemonWindows::daemonize(), init(), CArchDaemonWindows::installDaemon(), CArchDaemonWindows::isDaemonInstalled(), CArchLogWindows::openLog(), and CArchDaemonWindows::uninstallDaemon(). |
|
Test if windows 95, et al. Returns true iff the platform is win98 or win2k or higher (i.e. not windows 95 or windows NT). Definition at line 68 of file CArchMiscWindows.cpp. References init(). |
|
Process dialog message. Checks if the message is destined for a dialog. If so the message is passed to the dialog and returns true, otherwise returns false. Definition at line 355 of file CArchMiscWindows.cpp. Referenced by CMSWindowsScreen::handleSystemEvent(). |
|
Run the daemon. Delegates to CArchDaemonWindows. Definition at line 107 of file CArchMiscWindows.cpp. References CArchDaemonWindows::runDaemon(). |
|
Set the application icons. Set the application icons. Definition at line 93 of file CArchMiscWindows.cpp. |
|
Set a BINARY value in the registry.
Sets the Definition at line 269 of file CArchMiscWindows.cpp. |