#include <string>
#include <iostream>
#include <windows.h>
#include <tchar.h>
#include <windowsx.h>
#include <commctrl.h>
#include <objbase.h>
#include <oleauto.h>
#include <malloc.h>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
Go to the source code of this file.
Namespaces | |
namespace | std |
Defines | |
#define | WIN32_LEAN_AND_MEAN |
#define | WIN32_EXTRA_LEAN |
#define | _MAX_DRIVE 3 |
#define | _MAX_FNAME 256 |
#define | _MAX_DIR _MAX_FNAME |
#define | _MAX_EXT _MAX_FNAME |
#define | _MAX_PATH 260 |
#define | for if (0) {} else for |
#define | COUNTOF(x) (sizeof(x)/sizeof(x[0])) |
#define | BUFFER_LEN 2048 |
#define | LOG(txt) |
#define | _tcsrchr strrchr |
#define | _stprintf sprintf |
#define | U2A(s, d, l) WideCharToMultiByte(CP_ACP, 0, s, -1, d, l, NULL, NULL) |
#define | U2nA(s, d, l) WideCharToMultiByte(CP_ACP, 0, s, l, d, l, NULL, NULL) |
#define | A2U(s, d, l) MultiByteToWideChar(CP_ACP, 0, s, -1, d, l) |
#define | A2nU(s, d, l) MultiByteToWideChar(CP_ACP, 0, s, l, d, l) |
#define | FILE_ATTRIBUTE_ENCRYPTED 0x00000040 |
#define | FILE_ATTRIBUTE_SPARSE_FILE 0x00000200 |
#define | FILE_ATTRIBUTE_REPARSE_POINT 0x00000400 |
#define | FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000 |
#define | SetDlgCtrlID(hwnd, id) SetWindowLong(hwnd, GWL_ID, id) |
#define | SetWindowStyle(hwnd, val) (DWORD)SetWindowLong(hwnd, GWL_STYLE, val) |
#define | SetWindowExStyle(h, val) (DWORD)SetWindowLong(hwnd, GWL_EXSTYLE, val) |
#define | Window_SetIcon(hwnd, type, hicon) (HICON)SendMessage(hwnd, WM_SETICON, type, (LPARAM)(hicon)) |
Functions | |
void | CenterWindow (HWND hwnd) |
void | MoveVisible (HWND hwnd) |
void | display_error (HWND hwnd, DWORD error) |
BOOL | time_to_filetime (const time_t *t, FILETIME *ftime) |
int | find_window_class (LPCTSTR classname) |
BOOL | RecursiveCreateDirectory (LPCTSTR path_in) |
BOOL | exists_path (LPCTSTR path) |
#define _stprintf sprintf |
#define A2nU | ( | s, | |||
d, | |||||
l | ) | MultiByteToWideChar(CP_ACP, 0, s, l, d, l) |
#define A2U | ( | s, | |||
d, | |||||
l | ) | MultiByteToWideChar(CP_ACP, 0, s, -1, d, l) |
#define BUFFER_LEN 2048 |
Definition at line 77 of file utility.h.
Referenced by XMLStorage::XS_String::appendf(), XMLStorage::XS_String::printf(), XMLStorage::XS_String::vappendf(), and XMLStorage::XS_String::vprintf().
#define COUNTOF | ( | x | ) | (sizeof(x)/sizeof(x[0])) |
Definition at line 74 of file utility.h.
Referenced by XMLStorage::XS_String::appendf(), XMLStorage::XMLDoubleRef::assign(), XMLStorage::XMLIntRef::assign(), XMLStorage::XMLDouble::operator XS_String(), XMLStorage::XMLInt::operator XS_String(), XMLStorage::XS_String::printf(), TrayIcon::Set(), XMLStorage::XS_String::vappendf(), and XMLStorage::XS_String::vprintf().
#define LOG | ( | txt | ) |
#define SetDlgCtrlID | ( | hwnd, | |||
id | ) | SetWindowLong(hwnd, GWL_ID, id) |
#define SetWindowExStyle | ( | h, | |||
val | ) | (DWORD)SetWindowLong(hwnd, GWL_EXSTYLE, val) |
#define SetWindowStyle | ( | hwnd, | |||
val | ) | (DWORD)SetWindowLong(hwnd, GWL_STYLE, val) |
#define U2A | ( | s, | |||
d, | |||||
l | ) | WideCharToMultiByte(CP_ACP, 0, s, -1, d, l, NULL, NULL) |
#define U2nA | ( | s, | |||
d, | |||||
l | ) | WideCharToMultiByte(CP_ACP, 0, s, l, d, l, NULL, NULL) |
#define Window_SetIcon | ( | hwnd, | |||
type, | |||||
hicon | ) | (HICON)SendMessage(hwnd, WM_SETICON, type, (LPARAM)(hicon)) |
void CenterWindow | ( | HWND | hwnd | ) |
void display_error | ( | HWND | hwnd, | |
DWORD | error | |||
) |
BOOL exists_path | ( | LPCTSTR | path | ) |
int find_window_class | ( | LPCTSTR | classname | ) |
void MoveVisible | ( | HWND | hwnd | ) |
BOOL RecursiveCreateDirectory | ( | LPCTSTR | path_in | ) |
BOOL time_to_filetime | ( | const time_t * | t, | |
FILETIME * | ftime | |||
) |
IBrowser Source Code Documentation
generated on 18.09.2008 by |