ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

utility.h File Reference
#include <windows.h>
#include <undocuser.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.

Defines

#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#define W_VER_NT   0
#define for   if (0) {} else for
#define COUNTOF(x)   (sizeof(x)/sizeof(x[0]))
#define BUFFER_LEN   2048
#define LOG(txt)   _log_(txt)
#define LONGLONGARG   TEXT("L")
#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 SetDlgCtrlID(hwnd, id)   SetWindowLongPtr(hwnd, GWL_ID, id)
#define SetWindowStyle(hwnd, val)   (DWORD)SetWindowLongPtr(hwnd, GWL_STYLE, val)
#define SetWindowExStyle(h, val)   (DWORD)SetWindowLongPtr(hwnd, GWL_EXSTYLE, val)
#define Window_SetIcon(hwnd, type, hicon)   (HICON)SendMessage(hwnd, WM_SETICON, type, (LPARAM)(hicon))
#define strcpy_s(d, l, s)   strcpy(d, s)
#define wcscpy_s(d, l, s)   wcscpy(d, s)
#define wcsncpy_s(d, l, s, n)   wcsncpy(d, s, n)
#define _wsplitpath_s(f, d, dl, p, pl, n, nl, e, el)   _wsplitpath(f, d, p, n, e)
#define _splitpath_s(f, d, dl, p, pl, n, nl, e, el)   _splitpath(f, d, p, n, e)
#define _stprintf_s1(b, l, f, p1)   _stprintf(b, f, p1)
#define _stprintf_s2(b, l, f, p1, p2)   _stprintf(b, f, p1,p2)

Functions

void _log_ (LPCTSTR txt)
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)
DWORD RegGetDWORDValue (HKEY root, LPCTSTR path, LPCTSTR valueName, DWORD def)
BOOL RegSetDWORDValue (HKEY root, LPCTSTR path, LPCTSTR valueName, DWORD value)
BOOL exists_path (LPCTSTR path)

Generated on Sun May 27 2012 04:46:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.