miniwin.h File Reference


Detailed Description

Mini Windows Header, by Peter O., Public domain.

This file contains a slim Windows header file.

Definition in file miniwin.h.

Go to the source code of this file.

Data Structures

struct  POINT
struct  SIZE
struct  RECT
struct  XFORM
struct  SYSTEMTIME
struct  FILETIME
struct  BITMAPCOREHEADER
struct  RGBTRIPLE
struct  BITMAPCOREINFO
struct  BITMAPFILEHEADER
struct  BITMAPINFOHEADER
struct  RGBQUAD
struct  BITMAPINFO

Defines

#define FAR
#define CONST   const
#define VOID   void
#define TRUE   1
#define FALSE   0
#define NULL   ((void*)0)
#define CALLBACK   __stdcall
#define WINAPI   __stdcall
#define FILE_BEGIN   0
#define FILE_CURRENT   1
#define FILE_END   2
#define GetBValue(rgb)   ((BYTE) ((rgb) >> 16))
#define GetGValue(rgb)   ((BYTE) (((WORD) (rgb)) >> 8))
#define GetRValue(rgb)   ((BYTE) (rgb))
#define RGB(r, g, b)   ((DWORD)(((BYTE)(r)|((WORD)(g) << 8))|(((DWORD)(BYTE)(b)) << 16)))
#define HIBYTE(w)   ((BYTE) (((WORD) (w) >> 8) & 0xFF))
#define HIWORD(l)   ((WORD) (((DWORD) (l) >> 16) & 0xFFFF))
#define LOBYTE(w)   (((BYTE) (w)) & 0xFF)
#define LOWORD(l)   (((WORD) (l)) & 0xFFFF)
#define MAKELONG(a, b)   ((LONG) (((WORD) (a)) | ((DWORD) ((WORD) (b))) << 16))
#define MAKEWORD(a, b)   ((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8))
#define MAKEINTRESOURCE(i)   (LPTSTR) ((DWORD) ((WORD) (i)))
#define MAKELPARAM(l, h)   ((LPARAM) MAKELONG(l,h))
#define MAKELRESULT(l, h)   ((LRESULT) MAKELONG(l,h))
#define MAKEWPARAM(l, h)   ((WPARAM) MAKELONG(l,h))
#define max(a, b)   (((a) > (b)) ? (a) : (b))
#define min(a, b)   (((a) < (b)) ? (a) : (b))
#define EndType(b)
#define SimpleType(a, b)
#define SimpleTypePtr(a, b)
#define __TEXT(x)   L##x
#define TEXT(x)   __TEXT(x)
#define INVALID_HANDLE_VALUE   (HANDLE)(0xffffffff)
#define BI_RGB   0
#define BI_RLE8   1
#define BI_RLE4   2
#define BI_BITFIELDS   3
#define R2_BLACK   1
#define R2_COPYPEN   13
#define R2_MASKNOTPEN   3
#define R2_MASKPEN   9
#define R2_MASKPENNOT   5
#define R2_MERGENOTPEN   12
#define R2_MERGEPEN   15
#define R2_MERGEPENNOT   14
#define R2_NOP   11
#define R2_NOT   6
#define R2_NOTCOPYPEN   4
#define R2_NOTMASKPEN   8
#define R2_NOTMERGEPEN   2
#define R2_NOTXORPEN   10
#define R2_WHITE   16
#define R2_XORPEN   7
#define HEAP_ZERO_MEMORY   8

Typedefs

typedef char CHAR
typedef char * PCHAR
typedef char const * PCCHAR
typedef char * LPCHAR
typedef char const * LPCCHAR
typedef unsigned char UCHAR
typedef unsigned char * PUCHAR
typedef unsigned char const * PCUCHAR
typedef unsigned char * LPUCHAR
typedef unsigned char const * LPCUCHAR
typedef signed char SCHAR
typedef signed char * PSCHAR
typedef signed char const * PCSCHAR
typedef signed char * LPSCHAR
typedef signed char const * LPCSCHAR
typedef short SHORT
typedef short * PSHORT
typedef short const * PCSHORT
typedef short * LPSHORT
typedef short const * LPCSHORT
typedef unsigned short USHORT
typedef unsigned short * PUSHORT
typedef unsigned short const * PCUSHORT
typedef unsigned short * LPUSHORT
typedef unsigned short const * LPCUSHORT
typedef signed short SSHORT
typedef signed short * PSSHORT
typedef signed short const * PCSSHORT
typedef signed short * LPSSHORT
typedef signed short const * LPCSSHORT
typedef long LONG
typedef long * PLONG
typedef long const * PCLONG
typedef long * LPLONG
typedef long const * LPCLONG
typedef unsigned long ULONG
typedef unsigned long * PULONG
typedef unsigned long const * PCULONG
typedef unsigned long * LPULONG
typedef unsigned long const * LPCULONG
typedef signed long SLONG
typedef signed long * PSLONG
typedef signed long const * PCSLONG
typedef signed long * LPSLONG
typedef signed long const * LPCSLONG
typedef float FLOAT
typedef float * PFLOAT
typedef float const * PCFLOAT
typedef float * LPFLOAT
typedef float const * LPCFLOAT
typedef double DOUBLE
typedef double * PDOUBLE
typedef double const * PCDOUBLE
typedef double * LPDOUBLE
typedef double const * LPCDOUBLE
typedef int INT
typedef int * PINT
typedef int const * PCINT
typedef int * LPINT
typedef int const * LPCINT
typedef unsigned int UINT
typedef unsigned int * PUINT
typedef unsigned int const * PCUINT
typedef unsigned int * LPUINT
typedef unsigned int const * LPCUINT
typedef signed int SINT
typedef signed int * PSINT
typedef signed int const * PCSINT
typedef signed int * LPSINT
typedef signed int const * LPCSINT
typedef long long LONGLONG
typedef long long * PLONGLONG
typedef long long const * PCLONGLONG
typedef long long * LPLONGLONG
typedef long long const * LPCLONGLONG
typedef unsigned long long ULONGLONG
typedef unsigned long long * PULONGLONG
typedef unsigned long long
const * 
PCULONGLONG
typedef unsigned long long * LPULONGLONG
typedef unsigned long long
const * 
LPCULONGLONG
typedef void * PVOID
typedef void const * PCVOID
typedef void * LPVOID
typedef void const * LPCVOID
typedef CHARPSTR
typedef CHAR const * PCSTR
typedef CHARLPSTR
typedef CHAR const * LPCSTR
typedef USHORTPWSTR
typedef USHORT const * PCWSTR
typedef USHORTLPWSTR
typedef USHORT const * LPCWSTR
typedef CHAR TCHAR
typedef CHARPTCHAR
typedef CHAR const * PCTCHAR
typedef CHARLPTCHAR
typedef CHAR const * LPCTCHAR
typedef TCHARPTSTR
typedef TCHAR const * PCTSTR
typedef TCHARLPTSTR
typedef TCHAR const * LPCTSTR
typedef int INT_PTR
typedef int * PINT_PTR
typedef int const * PCINT_PTR
typedef int * LPINT_PTR
typedef int const * LPCINT_PTR
typedef unsigned int UINT_PTR
typedef unsigned int * PUINT_PTR
typedef unsigned int const * PCUINT_PTR
typedef unsigned int * LPUINT_PTR
typedef unsigned int const * LPCUINT_PTR
typedef long LONG_PTR
typedef long * PLONG_PTR
typedef long const * PCLONG_PTR
typedef long * LPLONG_PTR
typedef long const * LPCLONG_PTR
typedef unsigned long ULONG_PTR
typedef unsigned long * PULONG_PTR
typedef unsigned long const * PCULONG_PTR
typedef unsigned long * LPULONG_PTR
typedef unsigned long const * LPCULONG_PTR
typedef int __int3264
typedef int * P__int3264
typedef int const * PC__int3264
typedef int * LP__int3264
typedef int const * LPC__int3264
typedef UCHAR BYTE
typedef UCHARPBYTE
typedef UCHAR const * PCBYTE
typedef UCHARLPBYTE
typedef UCHAR const * LPCBYTE
typedef USHORT WORD
typedef USHORTPWORD
typedef USHORT const * PCWORD
typedef USHORTLPWORD
typedef USHORT const * LPCWORD
typedef ULONG DWORD
typedef ULONGPDWORD
typedef ULONG const * PCDWORD
typedef ULONGLPDWORD
typedef ULONG const * LPCDWORD
typedef INT BOOL
typedef INTPBOOL
typedef INT const * PCBOOL
typedef INTLPBOOL
typedef INT const * LPCBOOL
typedef UCHAR BOOLEAN
typedef UCHARPBOOLEAN
typedef UCHAR const * PCBOOLEAN
typedef UCHARLPBOOLEAN
typedef UCHAR const * LPCBOOLEAN
typedef UINT WPARAM
typedef UINTPWPARAM
typedef UINT const * PCWPARAM
typedef UINTLPWPARAM
typedef UINT const * LPCWPARAM
typedef SLONG LPARAM
typedef SLONGPLPARAM
typedef SLONG const * PCLPARAM
typedef SLONGLPLPARAM
typedef SLONG const * LPCLPARAM
typedef LPVOID HANDLE
typedef LPVOIDPHANDLE
typedef LPVOID const * PCHANDLE
typedef LPVOIDLPHANDLE
typedef LPVOID const * LPCHANDLE
typedef ULONG COLORREF
typedef ULONGPCOLORREF
typedef ULONG const * PCCOLORREF
typedef ULONGLPCOLORREF
typedef ULONG const * LPCCOLORREF
typedef ULONGLONG DWORDLONG
typedef ULONGLONGPDWORDLONG
typedef ULONGLONG const * PCDWORDLONG
typedef ULONGLONGLPDWORDLONG
typedef ULONGLONG const * LPCDWORDLONG
typedef ULONG_PTR DWORD_PTR
typedef ULONG_PTRPDWORD_PTR
typedef ULONG_PTR const * PCDWORD_PTR
typedef ULONG_PTRLPDWORD_PTR
typedef ULONG_PTR const * LPCDWORD_PTR
typedef POINTPPOINT
typedef POINT const * PCPOINT
typedef POINTLPPOINT
typedef POINT const * LPCPOINT
typedef SIZEPSIZE
typedef SIZE const * PCSIZE
typedef SIZELPSIZE
typedef SIZE const * LPCSIZE
typedef RECTPRECT
typedef RECT const * PCRECT
typedef RECTLPRECT
typedef RECT const * LPCRECT
typedef XFORMPXFORM
typedef XFORM const * PCXFORM
typedef XFORMLPXFORM
typedef XFORM const * LPCXFORM
typedef SYSTEMTIMEPSYSTEMTIME
typedef SYSTEMTIME const * PCSYSTEMTIME
typedef SYSTEMTIMELPSYSTEMTIME
typedef SYSTEMTIME const * LPCSYSTEMTIME
typedef FILETIMEPFILETIME
typedef FILETIME const * PCFILETIME
typedef FILETIMELPFILETIME
typedef FILETIME const * LPCFILETIME
typedef BITMAPCOREHEADERPBITMAPCOREHEADER
typedef BITMAPCOREHEADER const * PCBITMAPCOREHEADER
typedef BITMAPCOREHEADERLPBITMAPCOREHEADER
typedef BITMAPCOREHEADER const * LPCBITMAPCOREHEADER
typedef RGBTRIPLEPRGBTRIPLE
typedef RGBTRIPLE const * PCRGBTRIPLE
typedef RGBTRIPLELPRGBTRIPLE
typedef RGBTRIPLE const * LPCRGBTRIPLE
typedef BITMAPCOREINFOPBITMAPCOREINFO
typedef BITMAPCOREINFO const * PCBITMAPCOREINFO
typedef BITMAPCOREINFOLPBITMAPCOREINFO
typedef BITMAPCOREINFO const * LPCBITMAPCOREINFO
typedef BITMAPFILEHEADERPBITMAPFILEHEADER
typedef BITMAPFILEHEADER const * PCBITMAPFILEHEADER
typedef BITMAPFILEHEADERLPBITMAPFILEHEADER
typedef BITMAPFILEHEADER const * LPCBITMAPFILEHEADER
typedef BITMAPINFOHEADERPBITMAPINFOHEADER
typedef BITMAPINFOHEADER const * PCBITMAPINFOHEADER
typedef BITMAPINFOHEADERLPBITMAPINFOHEADER
typedef BITMAPINFOHEADER const * LPCBITMAPINFOHEADER
typedef RGBQUADPRGBQUAD
typedef RGBQUAD const * PCRGBQUAD
typedef RGBQUADLPRGBQUAD
typedef RGBQUAD const * LPCRGBQUAD
typedef BITMAPINFOPBITMAPINFO
typedef BITMAPINFO const * PCBITMAPINFO
typedef BITMAPINFOLPBITMAPINFO
typedef BITMAPINFO const * LPCBITMAPINFO

Functions

HANDLE __stdcall GetProcessHeap (void)
LPVOID __stdcall HeapAlloc (HANDLE, DWORD, DWORD)
LPVOID __stdcall HeapReAlloc (HANDLE, DWORD, LPVOID, DWORD)
BOOL __stdcall HeapFree (HANDLE, DWORD, LPVOID)


Define Documentation

#define __TEXT  )     L##x
 

Definition at line 82 of file miniwin.h.

#define BI_BITFIELDS   3
 

Definition at line 218 of file miniwin.h.

#define BI_RGB   0
 

Definition at line 215 of file miniwin.h.

#define BI_RLE4   2
 

Definition at line 217 of file miniwin.h.

#define BI_RLE8   1
 

Definition at line 216 of file miniwin.h.

#define CALLBACK   __stdcall
 

Definition at line 17 of file miniwin.h.

#define CONST   const
 

Definition at line 10 of file miniwin.h.

#define EndType  ) 
 

Value:

b ; typedef b *P##b ; typedef b CONST *PC##b ; \
                     typedef b FAR *LP##b ; typedef b CONST FAR *LPC##b

Definition at line 44 of file miniwin.h.

#define FALSE   0
 

Definition at line 13 of file miniwin.h.

#define FAR
 

Definition at line 9 of file miniwin.h.

#define FILE_BEGIN   0
 

Definition at line 19 of file miniwin.h.

#define FILE_CURRENT   1
 

Definition at line 20 of file miniwin.h.

#define FILE_END   2
 

Definition at line 21 of file miniwin.h.

#define GetBValue rgb   )     ((BYTE) ((rgb) >> 16))
 

Definition at line 23 of file miniwin.h.

#define GetGValue rgb   )     ((BYTE) (((WORD) (rgb)) >> 8))
 

Definition at line 24 of file miniwin.h.

#define GetRValue rgb   )     ((BYTE) (rgb))
 

Definition at line 25 of file miniwin.h.

#define HEAP_ZERO_MEMORY   8
 

Definition at line 251 of file miniwin.h.

#define HIBYTE  )     ((BYTE) (((WORD) (w) >> 8) & 0xFF))
 

Definition at line 27 of file miniwin.h.

#define HIWORD  )     ((WORD) (((DWORD) (l) >> 16) & 0xFFFF))
 

Definition at line 28 of file miniwin.h.

#define INVALID_HANDLE_VALUE   (HANDLE)(0xffffffff)
 

Definition at line 130 of file miniwin.h.

#define LOBYTE  )     (((BYTE) (w)) & 0xFF)
 

Definition at line 29 of file miniwin.h.

#define LOWORD  )     (((WORD) (l)) & 0xFFFF)
 

Definition at line 30 of file miniwin.h.

#define MAKEINTRESOURCE  )     (LPTSTR) ((DWORD) ((WORD) (i)))
 

Definition at line 33 of file miniwin.h.

#define MAKELONG a,
 )     ((LONG) (((WORD) (a)) | ((DWORD) ((WORD) (b))) << 16))
 

Definition at line 31 of file miniwin.h.

#define MAKELPARAM l,
 )     ((LPARAM) MAKELONG(l,h))
 

Definition at line 34 of file miniwin.h.

#define MAKELRESULT l,
 )     ((LRESULT) MAKELONG(l,h))
 

Definition at line 35 of file miniwin.h.

#define MAKEWORD a,
 )     ((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8))
 

Definition at line 32 of file miniwin.h.

#define MAKEWPARAM l,
 )     ((WPARAM) MAKELONG(l,h))
 

Definition at line 36 of file miniwin.h.

#define max a,
 )     (((a) > (b)) ? (a) : (b))
 

Definition at line 38 of file miniwin.h.

#define min a,
 )     (((a) < (b)) ? (a) : (b))
 

Definition at line 41 of file miniwin.h.

#define NULL   ((void*)0)
 

Definition at line 15 of file miniwin.h.

#define R2_BLACK   1
 

Definition at line 232 of file miniwin.h.

#define R2_COPYPEN   13
 

Definition at line 233 of file miniwin.h.

#define R2_MASKNOTPEN   3
 

Definition at line 234 of file miniwin.h.

#define R2_MASKPEN   9
 

Definition at line 235 of file miniwin.h.

#define R2_MASKPENNOT   5
 

Definition at line 236 of file miniwin.h.

#define R2_MERGENOTPEN   12
 

Definition at line 237 of file miniwin.h.

#define R2_MERGEPEN   15
 

Definition at line 238 of file miniwin.h.

#define R2_MERGEPENNOT   14
 

Definition at line 239 of file miniwin.h.

#define R2_NOP   11
 

Definition at line 240 of file miniwin.h.

#define R2_NOT   6
 

Definition at line 241 of file miniwin.h.

#define R2_NOTCOPYPEN   4
 

Definition at line 242 of file miniwin.h.

#define R2_NOTMASKPEN   8
 

Definition at line 243 of file miniwin.h.

#define R2_NOTMERGEPEN   2
 

Definition at line 244 of file miniwin.h.

#define R2_NOTXORPEN   10
 

Definition at line 245 of file miniwin.h.

#define R2_WHITE   16
 

Definition at line 246 of file miniwin.h.

#define R2_XORPEN   7
 

Definition at line 247 of file miniwin.h.

#define RGB r,
g,
 )     ((DWORD)(((BYTE)(r)|((WORD)(g) << 8))|(((DWORD)(BYTE)(b)) << 16)))
 

Definition at line 26 of file miniwin.h.

#define SimpleType a,
 ) 
 

Value:

typedef a b ; typedef a *P##b ; typedef a CONST *PC##b ;\
                         typedef a FAR *LP##b ; typedef a CONST FAR *LPC##b

Definition at line 46 of file miniwin.h.

#