8 #ifndef __UtilFunc_h_incl__ 9 #define __UtilFunc_h_incl__ 39 POINT
MkPoint( LONG x, LONG y );
41 SIZE
MkSize( LONG cx, LONG cy );
43 RECT
MkRect( LONG L, LONG T, LONG R, LONG B );
49 POINT
MkPoint(
const POINTS& p );
109 void DiffRect( PRECT Borders, LPCRECT Outer, LPCRECT Inner );
119 void AbsDiffRect( PRECT Borders, LPCRECT Outer, LPCRECT Inner );
154 void FitRect( IN PRECT pRc, IN PRECT pBounds, OUT PRECT pOut );
161 #define RECT_WIDTH(r) ((r).right - (r).left) 162 #define RECT_HEIGHT(r) ((r).bottom - (r).top) 220 #ifdef __GNUC__ // MinGW is missing these SHFileOperation flags: 222 #define FOF_NO_CONNECTED_ELEMENTS 0x2000 223 #define FOF_NORECURSION 0x1000 224 #define FOF_WANTNUKEWARNING 0x4000 225 #define FOF_NORECURSEREPARSE 0x8000 226 #define FOF_NO_UI (FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR) 236 #define PACKVERSION( maj,min ) ((DWORD)MAKELONG( min,maj )) 242 typedef struct _LINKDATA
265 #define LDF_DESC 0x00000001 266 #define LDF_ARGS 0x00000002 267 #define LDF_ICON 0x00000004 268 #define LDF_WORKDIR 0x00000008 269 #define LDF_HOTKEY 0x00000010 270 #define LDF_SHOWCMD 0x00000020 271 #define LDF_PIDL 0x00000040 274 LDF_DESC | LDF_ARGS | LDF_ICON | LDF_WORKDIR | LDF_HOTKEY | LDF_SHOWCMD \ 312 #if USE_VISUALSTYLE_HACK // DeactivateActCtx is not available on Win2000 317 bool EnableVisualStyles(
bool Enable );
343 UINT Action, HWND hNfy, UINT Id, HICON hIcon,
CSTR Hint, UINT cbkMsg
DEF_(WM_APP)
345 #if 0 // Old name "ShellNotify" is too ambiguous and is going away... 346 #define ShellNotify( hNfy,Act,hIcon,Hint,Msg ) \ 347 SetTrayIconNotification( Act,hNfy,1,hIcon,Hint,Msg ) 404 HANDLE hToken,
CSTR Privilege,
bool Enable,
OPTOUT PLUID_AND_ATTRIBUTES pSave
424 IN HANDLE hToken, IN
bool Enable,
OPTOUT PTOKEN_PRIVILEGES* ppSave,
470 #ifndef DOS_EXEPAGE_SIZE 471 #define DOS_EXEPAGE_SIZE 512 502 #define GlobalAllocStr GlobalAllocStrW 503 #define GlobalDupStr GlobalDupStrW 505 #define GlobalAllocStr GlobalAllocStrA 506 #define GlobalDupStr GlobalDupStrA 545 int iShow
DEF_(SW_SHOW),
DWORD Flags
DEF_(NORMAL_PRIORITY_CLASS)
561 INOUT LPSTARTUPINFO pSi,
579 INOUT LPSTARTUPINFO pSI,
593 IN LPSTARTUPINFO pSi,
594 OPTIN PHANDLE pRdHnd,
595 OPTIN PHANDLE pWrHnd,
596 OPTIN PHANDLE pErrHnd
612 IN LPSTARTUPINFO pSi,
616 IN UINT RetCode
DEF_(EXIT_SUCCESS)
670 #endif // ndef NO_NDK_FILES 722 FILETIME
AddTime( IN FILETIME Time, SHORT Hr, SHORT Min, SHORT Sec, SHORT mSec );
724 #if 1 // WIP.. Not public yet. 725 FILETIME
AddFiletime( FILETIME Time,
const FILETIME Add );
733 #ifdef __cplusplus // FILETIME comparators... 737 bool operator > ( FILETIME
const& A, FILETIME
const& B );
738 bool operator < ( FILETIME
const& A, FILETIME
const& B );
739 bool operator >= ( FILETIME
const& A, FILETIME
const& B );
740 bool operator <= ( FILETIME
const& A, FILETIME
const& B );
741 bool operator == ( FILETIME
const& A, FILETIME
const& B );
742 bool operator != ( FILETIME
const& A, FILETIME
const& B );
765 #define DeleteEnvironmentVar( pwEnv,Name ) SetEnvironmentVar( pwEnv, Name, NULL ) 808 #ifndef NO_WINTERNAL // UNICODE_STRING 869 #endif//ndef NO_WINTERNAL 923 #define SYSMET( Id ) GetSystemMetrics( SM_##Id ) 926 #define GWL( hwnd,Item ) GetWindowLong( hwnd, GWL_##Item ) 927 #define GWLP( hwnd,Item ) GetWindowLongPtr( hwnd, GWLP_##Item ) 930 #define SYSICO( Id ) LoadIcon( NULL, IDI_##Id ) 931 #define SYSCUR( Id ) LoadCursor( NULL, IDC_##Id ) 933 #ifndef LOADICO // Load from global hInstance 934 #define LOADICO( Id ) LoadIcon( hInstance, CSTR( Id )) 938 #define WS_VISICHILD (WS_CHILD | WS_VISIBLE) 939 #define WS_SCROLL (WS_VSCROLL | WS_HSCROLL) 942 #define CS_REDRAW (CS_HREDRAW | CS_VREDRAW) 946 #define WM_Cut( hCtl ) SendMessage( hCtl, WM_CUT, 0,0 ) 947 #define WM_Copy( hCtl ) SendMessage( hCtl, WM_COPY, 0,0 ) 948 #define WM_Paste( hCtl ) SendMessage( hCtl, WM_PASTE, 0,0 ) 949 #define WM_Clear( hCtl ) SendMessage( hCtl, WM_CLEAR, 0,0 ) 952 #define SimpleBeep() MessageBeep( -1 ) 953 #define GetAcceleratorCount( hacc ) CopyAcceleratorTable( (HACCEL)(hacc), NULL, 0 ) 988 bool PutClipHandle( HWND clipboardOwner, HANDLE hClip, UINT clipFmt );
1006 #define PutClipboardString PutClipboardStringW 1008 #define PutClipboardString PutClipboardStringA 1046 bool GetWndPos( HWND hWnd, POINT* pPos );
1115 bool RedrawWnd( HWND hWnd, UINT Flags );
1118 bool MoveWnd( HWND hWnd,
int X,
int Y,
bool Repaint );
1119 bool ResizeWnd( HWND hWnd,
int W,
int H,
bool Repaint );
1121 #define GetWndStyle( hwnd ) GetWindowLong( hwnd, GWL_STYLE ) 1122 #define SetWndStyle( hwnd,style ) SetWindowLong( hwnd, GWL_STYLE, style ) 1123 #define GetWndExStyle( hwnd ) GetWindowLong( hwnd, GWL_EXSTYLE ) 1124 #define SetWndExStyle( hwnd,style ) SetWindowLong( hwnd, GWL_EXSTYLE, style ) 1127 #define WM_GetFont( hwnd ) (HFONT)SendMessage( hwnd, WM_GETFONT, 0,0 ) 1128 #define WM_SetFont( hwnd,hfnt,rdrw ) (void)SendMessage( hwnd, WM_SETFONT, (WPARAM)hfnt, rdrw ) 1131 #ifndef WM_SetRedraw 1132 #define WM_SetRedraw( hwnd,on ) SendMessage( hwnd, WM_SETREDRAW, on, 0 ) 1143 void WINAPI
SetRedraw( HWND hwnd,
bool on );
1182 HDC hdc,
int x,
int y,
int cx
DEF_(0),
int cy
DEF_(0)
1195 HDC hdc,
long x,
long y,
long cx
DEF_(0),
long cy
DEF_(0),
1197 PRECT prMeta
DEF_(NULL)
1222 int __cdecl
MsgBox( HWND Owner, UINT Type,
CSTR Cap,
CSTR Fmt, ... );
1224 #define MB_INFO MB_OK| MB_ICONINFORMATION 1225 #define MB_QUERY MB_YESNO| MB_ICONQUESTION 1226 #define MB_QUERYCANCEL MB_YESNOCANCEL| MB_ICONQUESTION 1227 #define MB_WARNING MB_OK| MB_ICONEXCLAMATION 1228 #define MB_ERROR MB_OK| MB_ICONSTOP 1291 HWND Owner, UINT Flags,
CSTR Title,
1292 HINSTANCE hInst,
CSTR IconId,
DWORD LangId,
1293 DWORD_PTR HelpId, MSGBOXCALLBACK Callback,
1300 #define CloseAsyncMsgBox( hBox ) SendMessage( hBox, WM_SYSCOMMAND, SC_CLOSE, 0 ) 1327 ( MIIM_STRING | MIIM_ID | MIIM_FTYPE | MIIM_STATE \ 1328 | MIIM_SUBMENU | MIIM_DATA | MIIM_BITMAP | MIIM_CHECKMARKS ) 1343 HMENU hMenu, UINT Index,
CSTR Text,
1345 HBITMAP Image
DEF_(NULL)
1361 HMENU hMenu, UINT Index,
CSTR Text,
WORD cmdId,
1363 HBITMAP Image
DEF_(NULL)
1366 #define AddMenuSeparator( hSubMenu ) \ 1367 AddMenuItem( hSubMenu, 999, NULL, (-1), 0, NULL, NULL ) 1389 HMENU hMenu, MENUITEMINFO* pInfo, PVOID Ctx
1423 #define MDI_CLIENTCLASS _T("MDIClient") 1432 #ifndef MDITileH // from wCore 1433 #define MDITileH( hcli ) (BOOL) SendMessage( hcli, WM_MDITILE, MDITILE_HORIZONTAL,0 ) 1434 #define MDITileV( hcli ) (BOOL) SendMessage( hcli, WM_MDITILE, MDITILE_VERTICAL,0 ) 1435 #define MDICascade( hcli ) (BOOL) SendMessage( hcli, WM_MDICASCADE, 0,0 ) 1436 #define MDIArrangeIcons( hcli ) (void) SendMessage( hcli, WM_MDIICONARRANGE, 0,0 ) 1437 #define MDIActivate( hcli,hchild ) (void) SendMessage( hcli, WM_MDIACTIVATE, (WPARAM)(hchild), 0 ) 1438 #define MDIGetActive( hcli,maxed ) (HWND) SendMessage( hcli, WM_MDIGETACTIVE, 0, (LPARAM)(PBOOL)(maxed) ) 1439 #define MDIDestroy( hcli,hchild ) (void) SendMessage( hcli, WM_MDIDESTROY, (WPARAM)(hchild), 0 ) 1440 #endif // ndef MDITileH 1442 #define MDIActivateNext( hcli,hchild ) (void) SendMessage( hcli, WM_MDINEXT, (WPARAM)(hchild),0 ) 1443 #define MDIActivatePrev( hcli,hchild ) (void) SendMessage( hcli, WM_MDINEXT, (WPARAM)(hchild),1 ) 1535 #define SB_SetParts( hctl,npart,ppart ) (BOOL) SendMessage( hctl,SB_SETPARTS,(WPARAM)(npart),(LPARAM)(ppart) ) 1536 #define SB_SetText( hctl,part,text ) (BOOL) SendMessage( hctl,SB_SETTEXT,(WPARAM)(part),(LPARAM)(text) ) 1537 #define SB_SetIcon( hctl,part,hico ) (BOOL) SendMessage( hctl,SB_SETICON,(WPARAM)(part),(LPARAM)(hico) ) 1547 #define I_NOIMAGE (I_IMAGECALLBACK-1) 1622 HINSTANCE hInst, UINT Id, LPCOLORMAP Map, UINT nMap,
1623 UINT cxImg, UINT Flags, UINT nGrow
1638 #define _TBS(s) (INT_PTR)_T(s) // CreateWindowEx 1654 UINT x, UINT y, UINT w,
1656 UINT cxBtn, UINT cyBtn,
1668 #define TBTN_HEIGHT 22 1669 #define TBTN_WIDTH 22 1670 #define TBAR_HEIGHT 26 1679 HWND hParent, UINT Id, UINT x, UINT y, UINT w, UINT h,
1680 UINT imgType, LPTBBUTTON Buttons, UINT nButtons,
DWORD Style,
DWORD ExStyle
1726 #define SYSHBR(id) GetSysColorBrush( COLOR_##id ) 1727 #define SYSRGB(id) GetSysColor( COLOR_##id ) 1731 #define BKGHBR(id) (HBRUSH)( 1 + COLOR_##id ) 1738 #define RGBA( R,G,B,A ) \ 1739 ((COLORREF) ((BYTE)(R)|((WORD)((BYTE)(G))<<8)|(((DWORD)(BYTE)(B))<<16)|(((DWORD)(BYTE)(A))<<24))) 1740 #define GetAValue( rgba ) ((BYTE)((COLORREF)(rgba) >> 24)) 1741 #define GetRGBValue( rgba ) ((COLORREF)((rgba) & 0x00FFFFFF)) 1745 #define R4_MASKBLT MAKEROP4( SRCCOPY, DSTCOPY ) 1750 #define DSTCOPY 0x00AA0029L // Id est: NOP 1756 #define VLine( dc,x, y1,y2 ) Line( dc, x,y1, x,y2 ) 1757 #define HLine( dc,y, x1,x2 ) Line( dc, x1,y, x2,y ) 1760 #ifndef GetSystemPalette 1761 #define GetSystemPalette() (HPALETTE)GetStockObject( DEFAULT_PALETTE ) 1763 #ifndef GetPaletteLength 1764 #define GetPaletteLength( hPal ) GetPaletteEntries( hPal,0,0,NULL ) 1771 #define DeleteFontEx(h) (HFONT) DeleteObjectEx( (HFONT)h ) 1772 #define DeletePenEx(h) (HPEN) DeleteObjectEx( (HPEN)h ) 1773 #define DeleteBrushEx(h) (HBRUSH) DeleteObjectEx( (HBRUSH)h ) 1774 #define DeleteBitmapEx(h) (HBITMAP) DeleteObjectEx( (HBITMAP)h ) 1775 #define DeleteRegionEx(h) (HRGN) DeleteObjectEx( (HRGN)h ) 1780 void WINAPI
Line( HDC hdc,
int x1,
int y1,
int x2,
int y2 );
1795 HDC hdc,
int xOrg,
int yOrg,
int Radius,
double Orientation
1806 POINT* Vtx,
int xOrg,
int yOrg,
int Radius,
double Orientation
1858 #endif//def _MSC_VER 1882 int WINAPI
FontHeight( HDC hdc,
int Points );
1898 POINT WINAPI
WhereXY( HDC dc );
1941 #define OBJ_DIBSECTION (GDI_OBJ_LAST+1) 1943 #define GetCurrentFontEx( dc, plfont ) (HFONT) GetCurrentObjectEx( dc, OBJ_FONT, PLOGFONT(plfont) ) 1944 #define GetCurrentPenEx( dc, plpen ) (HPEN) GetCurrentObjectEx( dc, OBJ_PEN, PLOGPEN(plpen) ) 1945 #define GetCurrentExtPenEx( dc, pelpen ) (HPEN) GetCurrentObjectEx( dc, OBJ_EXTPEN, PEXTLOGPEN(pelpen) ) 1946 #define GetCurrentBrushEx( dc, plbrsh ) (HBRUSH) GetCurrentObjectEx( dc, OBJ_BRUSH, PLOGBRUSH(plbrsh) ) 1947 #define GetCurrentBitmapEx( dc, pbmap ) (HBITMAP) GetCurrentObjectEx( dc, OBJ_BITMAP, PBITMAP(pbmap) ) 1948 #define GetCurrentDibSectEx( dc, pdibs ) (HBITMAP) GetCurrentObjectEx( dc, OBJ_DIBSECTION, PDIBSECTION(pdibs) ) 1949 #define GetCurrentPaletteEx( dc, pwrd ) (HPALETTE) GetCurrentObjectEx( dc, OBJ_PAL, PWORD(pwrd) ) 1950 #define GetCurrentColorspaceEx( dc, pcs ) (HCOLORSPACE) GetCurrentObjectEx( dc, OBJ_COLORSPACE, PLOGCOLORSPACE(pcs) ) 1952 #if 0 // Sundown: DataSize used to be an argument, as in GetObject(). 1958 #define GetCurrentFontEx( dc, plfont ) (HFONT)GetCurrentObjectEx( dc, sizeof(LOGFONT), plfont ) 1959 #define GetCurrentPenEx( dc, plpen ) (HPEN)GetCurrentObjectEx( dc, sizeof(LOGPEN), plpen ) 1960 #define GetCurrentExtPenEx( dc, pelpen ) (HPEN)GetCurrentObjectEx( dc, sizeof(EXTLOGPEN), pelpen ) 1961 #define GetCurrentBrushEx( dc, plbrsh ) (HBRUSH)GetCurrentObjectEx( dc, sizeof(LOGBRUSH), plbrsh ) 1962 #define GetCurrentBitmapEx( dc, pbmap ) (HBITMAP)GetCurrentObjectEx( dc, sizeof(BITMAP), pbmap ) 1963 #define GetCurrentDibSectEx( dc, pdibs ) (HBITMAP)GetCurrentObjectEx( dc, sizeof(DIBSECTION), pdibs ) 1964 #define GetCurrentPaletteEx( dc, pwrd ) (HPALETTE)GetCurrentObjectEx( dc, sizeof(WORD), pwrd ) 1965 #define GetCurrentColorspaceEx( dc, pcs ) (HCOLORSPACE)GetCurrentObjectEx( dc, sizeof(LOGCOLORSPACE), pcs ) 1986 HICON hIcon, HBRUSH hbrBkg, UINT cx
DEF_(0), UINT cy
DEF_(0)
2032 bool WINAPI
DrawMaskedBitmap( HDC hdc,
int x,
int y, HBITMAP hBmp, HBITMAP hMask );
2040 HDC hdc,
int x,
int y,
int w,
int h, HBITMAP hBmp, COLORREF cTrans
2046 void WINAPI
DrawBitmap( HDC hdc,
int x,
int y, HBITMAP hBmp );
2053 HDC hdc,
int x,
int y,
int cx,
int cy,
2054 HBITMAP hBmp,
int imx
DEF_(0),
int imy
DEF_(0),
int imw
DEF_(0),
int imh
DEF_(0),
2065 #define VTX_OPAQUE 0x00 2066 #define VTX_TRANSPARENT 0xFF 2081 void WINAPI
SetTriMesh( PGRADIENT_TRIANGLE pTri, UINT Vtx1, UINT Vtx2, UINT Vtx3 );
2084 void WINAPI
SetRectMesh( PGRADIENT_RECT pRect, UINT TopLeft, UINT BotRight );
2095 void WINAPI
DrawGradientRect( HDC hdc, PRECT pr, COLORREF c1, COLORREF c2, UINT type );
2097 #define GRADIENT_H GRADIENT_FILL_RECT_H 2098 #define GRADIENT_V GRADIENT_FILL_RECT_V 2099 #define GRADIENT_D (GRADIENT_FILL_TRIANGLE+1) 2122 void WINAPI DumpRegionData( CSTR Title, HRGN hRgn ); 2124 #define DumpRegionData(Title,hRgn) 2131 typedef struct _gdiPathData
2183 #if 0 // Superfluous, use PathToRegion() and GetRgnBox() if this is all you need. 2192 void OffsetPoints( POINT* Pts, UINT nPts,
int dx,
int dy );
2242 #define RR_CLIPRGN 1 2243 #define RR_METARGN 2 2245 #define RR_SYSRGN SYSRGN 2273 #define ClearXform( pxfm ) SetXformScale( pxfm, 1.0f, 1.0f ) 2277 #define AppendXform( Dst, append ) \ 2278 CombineTransform( (XFORM*)(Dst), (XFORM*)(Dst), (XFORM*)(append) ) 2282 #define PrependXform( Dst, prepend ) \ 2283 CombineTransform( (XFORM*)(Dst), (XFORM*)(prepend), (XFORM*)(Dst) ) 2333 #define OPEN_FILE( name,access ) \ 2334 CreateFile( name, access, FILE_SHARE_READ, &DefSec, OPEN_EXISTING, 0,0 ) 2345 #define LONG_PATH_PREFIX_A "\\\\?\\" 2346 #define LONG_UNC_PREFIX_A LONG_PATH_PREFIX_A "UNC\\" 2347 #define DEVICE_NAME_PREFIX_A "\\\\.\\" 2348 #define UNPARSED_NAME_PREFIX_A "\\??\\" 2350 #define LONG_PATH_PREFIX_W L"\\\\?\\" 2351 #define LONG_UNC_PREFIX_W LONG_PATH_PREFIX_W L"UNC\\" 2352 #define DEVICE_NAME_PREFIX_W L"\\\\.\\" 2353 #define UNPARSED_NAME_PREFIX_W L"\\??\\" 2356 #define LONG_PATH_PREFIX LONG_PATH_PREFIX_W 2357 #define LONG_UNC_PREFIX LONG_UNC_PREFIX_W 2358 #define DEVICE_NAME_PREFIX DEVICE_NAME_PREFIX_W 2359 #define UNPARSED_NAME_PREFIX UNPARSED_NAME_PREFIX_W 2361 #define LONG_PATH_PREFIX LONG_PATH_PREFIX_A 2362 #define LONG_UNC_PREFIX LONG_UNC_PREFIX_A 2363 #define DEVICE_NAME_PREFIX DEVICE_NAME_PREFIX_A 2364 #define UNPARSED_NAME_PREFIX UNPARSED_NAME_PREFIX_A 2373 #define SkipPathPrefix SkipPathPrefixW 2375 #define SkipPathPrefix SkipPathPrefixA 2383 bool IsDir( LPWIN32_FIND_DATA pFd );
2385 bool IsSubdir( LPWIN32_FIND_DATA pFd );
2409 #define GetFilePointer( hFile,pHiPart ) SetFilePointer( hFile, 0, (PLONG)pHiPart, FILE_CURRENT ) 2411 bool Seek( HANDLE hFile, LONG Offs,
DWORD How );
2412 UINT
Tell( HANDLE hFile );
2420 UINT
PeekFile( HANDLE hFile, PVOID Buf, UINT nBytes );
2422 UINT
BlockRead( HANDLE hFile, PVOID Buf, UINT nBytes );
2423 UINT
BlockWrite( HANDLE hFile, PVOID Buf, UINT nBytes );
2434 UINT __cdecl
WriteStrA( HANDLE hFile,
const char* Fmt, ... );
2435 UINT __cdecl
WriteStrW( HANDLE hFile,
const wchar_t* Fmt, ... );
2452 UINT
ReadLineA( HANDLE hFile,
char* Buffer, UINT BufLength,
bool TrimCrLf );
2453 UINT
ReadLineW( HANDLE hFile,
wchar_t* Buffer, UINT BufLength,
bool TrimCrLf );
2456 #define WriteStr WriteStrW 2457 #define ReadLine ReadLineW 2459 #define WriteStr WriteStrA 2460 #define ReadLine ReadLineA 2510 HANDLE hFind, WIN32_FIND_DATA* Found,
2631 OUT
TSTR SubstPath, UINT cchSubst,
OPTOUT TSTR PrintName, UINT cchPrint,
2632 OPTOUT PULARGE_INTEGER AttrTag
2647 #if (WINVER >= 0x0600) // FindFirstFileNameW & FindFirstStreamW requires Vista. 2725 #endif//(WINVER >= 0x0600) 2737 #define ALLOW_EXECUTABLE_FILEMAPPING 0 2764 #if 1 // Holdover for the old names.. 2765 #define GetMappedPointer GetMappedFilePointer 2766 #define GetMappedSize GetMappedFileSize 2769 #if 0 // Under consideration, expandable mapping 2797 #endif//ndef __UtilFunc_h_incl__ int __cdecl AddListString(HWND hLB, CSTR Fmt,...)
HANDLE CloseHandleEx(HANDLE H)
PBYTE SetMappedFilePtr(HMAPFILE hMapFile, INT64 Offset, UINT How)
bool EnableProcessPrivileges(bool Enable, CSTR prvName1,...)
bool ReadNTHeaders(CSTR ExeName, IMAGE_NT_HEADERS *Hdr, bool GetOptHdr)
bool IsVolumeMountPoint(CSTR PathName, TSTR VolNameBuf=NULL, UINT ccBuf=0)
DWORD GetDLLVersion(CSTR FName)
bool RemoveReparseData(CSTR PathName)
bool(__stdcall * PFnEnumHardLinks)(CSTR PathName, PVOID usrData)
bool CenterWindow(HWND hWnd, HWND hOwner)
HICON WINAPI LoadSmallIcon(HINSTANCE hInst, CSTR Id)
HANDLE CheckHandle(HANDLE Hnd)
void SetIdentityMat2(MAT2 *pm)
void WINAPI SetTriMesh(PGRADIENT_TRIANGLE pTri, UINT Vtx1, UINT Vtx2, UINT Vtx3)
PTOKEN_PRIVILEGES FreePrivileges(PTOKEN_PRIVILEGES pPrv)
void InitTaskbarSupport()
HTOKENEX CloseThreadTokenEx(HTOKENEX hToken)
bool GetWndPos(HWND hWnd, POINT *pPos)
HANDLE CreateCapturedProcessEx(OPTIN CSTR ExePath, OPTIN CSTR CmdLn, OPTIN CSTR EnvStr, OPTIN CSTR WorkDir, INOUT LPSTARTUPINFO pSI, IN DWORD Flags, OPTOUT PHANDLE pRdHnd, OPTOUT PHANDLE pWrHnd, OPTOUT PHANDLE pErrHnd, OPTOUT PHANDLE phThread)
bool SetMenuItemCheck(HMENU hMenu, UINT Id, bool Check)
HANDLE OpenDirectory(CSTR DirPath, DWORD Flags)
void WINAPI ReleaseDesktopDC(HDC hDeskDC)
FILETIME AddFiletime(FILETIME Time, const FILETIME Add)
HIMAGELIST ImageList_CreateMapped(HINSTANCE hInst, UINT Id, LPCOLORMAP Map, UINT nMap, UINT cxImg, UINT Flags, UINT nGrow)
bool GetEnvironmentSize(WSTR pwEnv, PUINT pSize, PUINT pUsed)
bool IsBadReadWritePtr(const PVOID address, UINT_PTR size)
HANDLE TerminateCapturedProcess(OPTIN HANDLE hProc, IN LPSTARTUPINFO pSi, IN PHANDLE pRdHnd, IN PHANDLE pWrHnd, IN PHANDLE pErrHnd, IN UINT RetCode=EXIT_SUCCESS)
int nPoints
Nr of elements in the pPoint and pType arrays.
void WINAPI FreeGdiPathData(PGdiPathData pData)
HGDIOBJ WINAPI GetCurrentObjectEx(HDC hdc, UINT ObjType, PVOID pObjData)
CSTR GetMachineStr(WORD Machine)
IPicture *WINAPI LoadPictureFile(CSTR FName)
HDC WINAPI CreateMemoryDC(UINT cx, UINT cy, OPTOUT HBITMAP *pOldBmp=NULL)
HGDIOBJ WINAPI DeleteObjectEx(HGDIOBJ hObj)
bool DeleteJunctionDir(CSTR LinkName)
HANDLE GetCurrentThreadHandle()
HWND CreateDialogParamEx(HINSTANCE hInst, CSTR Template, HWND hParent, DLGPROC DlgProc, LPARAM lParam, LANGID Language)
PVOID ctx
User's context, if any.
bool GetTrackbarInfo(HWND hCtl, LPSCROLLINFO psi)
bool WaitFor(HANDLE hObj, DWORD msWait)
HRESULT Shell_CreateLink(CSTR LinkFilePathname, IN const PLINKDATA pLink)
XFORM * SetXformScale(XFORM *pxfm, float dx, float dy)
CSTR LocalAtomName(ATOM atom)
HDC WINAPI GetDesktopDC()
HDC WINAPI ReleaseWndDC(HDC hdc)
XFORM * SetXformTranslate(XFORM *pxfm, float dx, float dy)
bool FileExist(CSTR PathName)
HWND CreateStatusbar(HWND hParent, UINT Id, CSTR Text, UINT Style)
bool AddMenuItem(HMENU hMenu, UINT Index, CSTR Text, WORD cmdId, WORD State=0, PVOID Data=NULL, HBITMAP Image=NULL)
HWND SetParentWnd(HWND hWnd, HWND newParent)
bool ResizeWnd(HWND hWnd, int W, int H, bool Repaint)
HWND CreateToolbar(HWND hParent, UINT Id, UINT x, UINT y, UINT w, UINT h, UINT cxBtn, UINT cyBtn, HIMAGELIST hImages, LPTBBUTTON Buttons, UINT nButtons, DWORD Style, DWORD ExStyle)
bool SetEnvironmentVar(OPTIO WSTR *pwEnv, IN CSTR Name, IN CSTR Value)
WSTR CloneEnvironment(OPTOUT PUINT pLength, OPTOUT PUINT pUsed)
SYSTEMTIME * SystemTimeToLocalTime(INOUT SYSTEMTIME *Time)
RECT MkRect(LONG L, LONG T, LONG R, LONG B)
int WINAPI ScreenFontHeight(WORD Points)
void InflateBorders(PRECT Target, LPCRECT Borders)
HFONT WINAPI CreateFontEx(CSTR Typeface, int Points, int Weight, DWORD Charset=ANSI_CHARSET, DWORD Quality=ANTIALIASED_QUALITY)
long WINAPI HiMetricToPix(long hiMetric)
HFONT WINAPI GetWndFont(HWND hWnd, OPTOUT LOGFONT *pLogFont)
void WINAPI DrawBitmapEx(HDC hdc, int x, int y, int cx, int cy, HBITMAP hBmp, int imx=0, int imy=0, int imw=0, int imh=0, DWORD rasterOp=SRCCOPY)
HANDLE GetThreadExToken(HTOKENEX hTok)
UINT64 GetFileSize64(HANDLE hFile)
UINT EnumerateMenuItems(HMENU hMenu, PFnMenuItemAction Action, PVOID Ctx)
bool EnablePrivileges(IN HANDLE hToken, IN bool Enable, OPTOUT PTOKEN_PRIVILEGES *ppSave,...)
bool WINAPI PaintPictureEx(IPicture *pPic, HDC hdc, long x, long y, long cx=0, long cy=0, long imx=0, long imy=0, long imw=0, long imh=0, PRECT prMeta=NULL)
LPRECT DimToAbsRect(LPRECT pRect)
bool WINAPI GetGdiPathBounds(HDC hdc, PRECT pBounds)
bool InitShellFunc(bool useOle=false, DWORD coFlag=COINIT_APARTMENTTHREADED)
void SetWindowDouble(HWND hWnd, int Index, double Value)
bool GetWndSize(HWND hWnd, SIZE *pSize)
bool GetRequiredWindowSize(HWND hWnd, IN const PSIZE pClient, OUT PSIZE pWindow)
bool EnableChildWnd(HWND Owner, UINT Id, bool Enable)
LPBYTE pType
Array of type specs for each point.
UINT BlockWrite(HANDLE hFile, PVOID Buf, UINT nBytes)
ULARGE_INTEGER GetAttributeAndReparseTag(CSTR PathName)
BOOL WriteLine(HANDLE hFile, CSTR Buf, UINT ccBuf=0)
bool ButtonChecked(HWND hBtn)
bool WINAPI DrawTransparentBitmap(HDC hdc, int x, int y, int w, int h, HBITMAP hBmp, COLORREF cTrans)
#define END_NAMESPACE(name)
bool IsWndClass(HWND hWnd, CSTR clsName)
UINT PeekFile(HANDLE hFile, PVOID Buf, UINT nBytes)
bool IsSubdirName(CSTR Dir)
bool RedrawWndRgn(HWND hWnd, HRGN hRgn, UINT Flags)
CSTR DoneDirectory(CSTR prevDir)
FILETIME MakeDateTime(WORD Year, WORD Month, WORD Day, WORD Hr, WORD Min, WORD Sec)
INT_PTR DialogBoxParamEx(HINSTANCE hInst, CSTR Template, HWND hParent, DLGPROC DlgProc, LPARAM lParam, LANGID Language)
void WINAPI SetRedraw(HWND hwnd, bool on)
bool _CreateHardLink(CSTR LinkName, CSTR TargetName)
double GetWndReal(HWND hCtl)
LPITEMIDLIST GetPathNamePIDL(CSTR Dir, ULONG *pAttrib OPTIONAL=NULL)
CSTR GlobalAtomName(ATOM atom)
bool __cdecl SetCaption(HWND hwnd, CSTR fmt,...)
HANDLE GetCurrentProcessHandle()
WORD GetInstanceTargetMachine(HINSTANCE hInst)
UINT64 GetFileSize64Ex(CSTR FName)
bool RedrawWndRect(HWND hWnd, PRECT pRect, UINT Flags)
HRESULT ShowShareFolderUI(HWND hParent, CSTR Path)
Transmutable wrap for the strictly dynamic ntshrui.dll function.
void WINAPI PaintPicture(IPicture *pPic, HDC hdc, int x, int y, int cx=0, int cy=0)
size_t PeekMappedFile(HMAPFILE hMapFile, PVOID Buffer, size_t cbRead)
LPRECT AbsToRelRect(LPRECT pRect)
HANDLE FindCloseEx(HANDLE hFind)
bool InitializeSecDesc(PSECURITY_DESCRIPTOR pSecDesc, PACL AccsList=NULL)
bool SetWndReal(HWND hCtl, double Value, BYTE nDeci, CSTR Suffix=NULL)
bool EnableProcessPrivilege(CSTR prvName, bool Enable=true)
void OffsetPoints(POINT *Pts, UINT nPts, int dx, int dy)
WORD GetTargetMachine(CSTR ExeName)
bool IsSymLinkDir(CSTR PathName)
void OffsetRgnData(PRGNDATA prd, int dx, int dy)
UINT64 GetMappedFilePos(HMAPFILE hMapFile)
bool operator >(FILETIME const &A, FILETIME const &B)
bool EnablePrivilege(HANDLE hToken, CSTR Privilege, bool Enable, OPTOUT PLUID_AND_ATTRIBUTES pSave)
LPMENUITEMINFO GetMenuItemByName(HMENU hMenu, CSTR Name)
HANDLE __cdecl AsyncMsgBoxEx(HWND Owner, UINT Flags, CSTR Title, HINSTANCE hInst, CSTR IconId, DWORD LangId, DWORD_PTR HelpId, MSGBOXCALLBACK Callback, PINT_PTR pResult, CSTR TextFmt,...)
PTOKEN_PRIVILEGES AllocPrivileges(UINT Count, OPTOUT PDWORD pSize=NULL)
HWND GetMDIClient(HWND hMdiFrame)
void WINAPI SetTriVertex(PTRIVERTEX pVtx, int x, int y, COLORREF cr, BYTE Alpha=0x00)
WSTR FreeEnvironment(WSTR Env)
bool GetFileInformationByName(CSTR FileName, LPBY_HANDLE_FILE_INFORMATION pInfo)
int WINAPI MapRegionToWindow(HRGN hRgn, HWND hWnd)
HANDLE GlobalUnlockedHandle(PVOID Ptr, PUINT pCount=NULL)
UINT GlobalPurgeAtom(CSTR Name)
SHORT GetProcDLLRefCount(HANDLE hProcess, WCSTR DllName)
bool ShellFuncInitialized()
HRESULT Shell_ResolveLink(HWND hWnd, CSTR LinkFilePathname, OUT PLINKDATA pLink)
UINT mu
Scaling multiplier.
HTOKENEX OpenThreadTokenEx(HANDLE hThread, ACCESS_MASK tokenAccess)
UINT64 SetMappedFilePos(HMAPFILE hMapFile, INT64 Offset, UINT How)
COLORREF WINAPI ScaleColorRef(COLORREF color, BYTE mul, BYTE div)
void WINAPI DrawGradientRect(HDC hdc, PRECT pr, COLORREF c1, COLORREF c2, UINT type)
RGNDATA *WINAPI FreeRegionData(RGNDATA *pRgn)
WSTR GlobalAllocStrW(UINT nChr)
CSTR DupClipboardString()
void DiffRect(PRECT Borders, LPCRECT Outer, LPCRECT Inner)
long WINAPI PixToHiMetric(long Pix)
size_t WriteMappedFile(HMAPFILE hMapFile, PVOID Buffer, size_t cbWrite)
HWND CreateWindowIndirect(LPCREATESTRUCT pc)
PVOID WINAPI LoadCustomResource(HMODULE hModule, CSTR Id, CSTR Type, UINT *pSize OPTOUT=NULL)
UINT __cdecl WriteStrW(HANDLE hFile, const wchar_t *Fmt,...)
HMODULE GetOrLoadModule(CSTR modName)
bool IsEndOfFile(HANDLE hFile)
UINT ReadLineW(HANDLE hFile, wchar_t *Buffer, UINT BufLength, bool TrimCrLf)
int GetMenuItemIdByName(HMENU hMenu, CSTR Name)
bool __cdecl SetStatusWidths(HWND hStat, UINT nParts, int *Width)
SIZES MkSizeS(SHORT cx, SHORT cy)
BOOL(WINAPI *SysImgList::Shell_GetImageLists)(HIMAGELIST *pimlLarge
PVOID WINAPI LoadCustomResourceEx(HMODULE hModule, CSTR Id, CSTR Type, LANGID Language OPTIN=0, UINT *pSize OPTOUT=NULL)
double GetClassDouble(HWND hWnd, int gcl_Ix)
void WINAPI SetRectMesh(PGRADIENT_RECT pRect, UINT TopLeft, UINT BotRight)
bool IsSymLink(CSTR PathName)
struct _LINKDATA * PLINKDATA
LPPOINT pPoint
Array of points.
void WINAPI GetScreenLPI(PPOINT pLpi)
bool operator >=(FILETIME const &A, FILETIME const &B)
ASTR GlobalDupStrA(ACSTR Str, bool isMz=false)
CSTR GetTempPathName(CSTR Prefix, CSTR dotExt)
COLORREF WINAPI GradientColor(COLORREF c1, COLORREF c2, WORD Ix, WORD Length)
void AbsDiffRect(PRECT Borders, LPCRECT Outer, LPCRECT Inner)
HBITMAP WINAPI CreateMaskBitmap(HBITMAP img, COLORREF transp)
UINT GetNtDeviceName(HANDLE hObj, TSTR pzNTPath, UINT ccNTPath)
bool(__stdcall * PFnEnumStreams)(CSTR PathName, UINT64 Size, PVOID usrData)
UINT EnumerateClipFormats(HWND hCBOwner, PFClipFmtAction Action, PVOID UserData)
bool(__stdcall * PFnPaintBitmap)(PAINTBMPSTRUCT *p)
POINTS MkPointS(SHORT x, SHORT y)
bool operator<=(FILETIME const &A, FILETIME const &B)
void WINAPI DrawBitmap(HDC hdc, int x, int y, HBITMAP hBmp)
HRGN WINAPI GetGdiPathRgnBounds(HDC hdc, OUT PRECT pBounds)
TSTR GetPathFileName(TSTR PathName)
UINT DispatchMessagesFor(HWND hWnd)
PVOID ShellFreeEx(PVOID pBlk)
int __cdecl AddComboString(HWND hCB, CSTR Fmt,...)
HWND GetChildWndWithId(HWND hParent, UINT ChildId)
bool IsDir(LPWIN32_FIND_DATA pFd)
struct _gdiPathData * PGdiPathData
LPRECT NegateRect(LPRECT pRect)
XFORM * SetXformShear(XFORM *pxfm, float sx, float sy)
const FILETIME NullFileTime
bool OpenEmptyClipboard(HWND hWnd)
bool CreateJunctionDir(CSTR LinkName, CSTR TargetPath, CSTR PrintName)
SIZE MkSize(LONG cx, LONG cy)
bool PutClipboardStringW(HWND clipboardOwner, WCSTR Text)
BOOL GetWindowMinimizeRect(HWND hTrayApp, RECT *pRect)
UINT DeduplicatePathStr(INOUT TSTR Path)
PVOID DupClipboardData(UINT clipFmt, PUINT pSize OPTOUT)
PVOID GetMenuItemData(HMENU hMenu, UINT Id)
PVOID GetMappedFilePointer(HMAPFILE hMap)
HWND GetComboEditor(HWND hCombo)
bool RestorePrivilege(HANDLE hToken, PTOKEN_PRIVILEGES pSaved)
See EnablePrivilege(()
float GetClassFloat(HWND hWnd, int gcl_Ix)
BOOL UnloadMappedFile(HMAPFILE hMap)
void WINAPI Line(HDC hdc, int x1, int y1, int x2, int y2)
HMODULE GetProcDLLHandle(HANDLE hProcess, WCSTR DllName)
ASTR GlobalAllocStrA(UINT nChr)
double GetWindowDouble(HWND hWnd, int Index)
bool DirExist(CSTR PathName)
bool GetWindowClientSize(HWND hWnd, IN const PSIZE pWindow, OUT PSIZE pClient)
float GetWindowFloat(HWND hWnd, int Index)
bool WINAPI GetGdiPathData(HDC hdc, OUT PGdiPathData pData)
UINT EnumerateFileStreams(CSTR FileName, PFnEnumStreams Action, PVOID usrData)
DWORD __cdecl _swapRGB2(DWORD rgb)
HRESULT CreateStreamOnFile(IN CSTR FName, OUT IStream **ppStrm, OPTOUT DWORD *pSize=NULL)
UINT ReadLineA(HANDLE hFile, char *Buffer, UINT BufLength, bool TrimCrLf)
bool RefreshWnd(HWND hWnd)
HANDLE CloseCapturedProcess(IN HANDLE hProc, IN LPSTARTUPINFO pSi, OPTIN PHANDLE pRdHnd, OPTIN PHANDLE pWrHnd, OPTIN PHANDLE pErrHnd)
bool(__stdcall * PFLvItemAction)(HWND hList, LPLVITEM pItem, PVOID pCtx)
UINT BlockRead(HANDLE hFile, PVOID Buf, UINT nBytes)
bool GetEnvironmentVar(OPTIN WSTR pwEnv, IN CSTR Name, OUT TSTR Value, INOUT PUINT ccValBuf)
bool IsJunctionDir(CSTR PathName)
HWND CreateStdToolbar(HWND hParent, UINT Id, UINT x, UINT y, UINT w, UINT h, UINT imgType, LPTBBUTTON Buttons, UINT nButtons, DWORD Style, DWORD ExStyle)
HRGN WINAPI GetGdiPathRgn(HDC hdc, OUT RGNDATA **ppRgnData, OPTOUT RECT **ppRgnRects)
ACSTR SkipPathPrefixA(ACSTR PathName)
int __cdecl MsgBox(HWND Owner, UINT Type, CSTR Cap, CSTR Fmt,...)
void GetChildWndRect(HWND hCtrl, RECT *pRc)
DWORD __cdecl _swapRGB(DWORD rgba)
RGNDATA *WINAPI AllocAndGetRegionData(IN HRGN hRgn, OPTOUT PRECT *ppRc)
bool MoveWnd(HWND hWnd, int X, int Y, bool Repaint)
FILETIME FileTimeToLocalTime(FILETIME utc)
INT GetReparseTarget(IN CSTR LinkName, OUT TSTR SubstPath, UINT cchSubst, OPTOUT TSTR PrintName, UINT cchPrint, OPTOUT PULARGE_INTEGER AttrTag)
CSTR GetSubSystemStr(WORD SubSys)
size_t ReadMappedFile(HMAPFILE hMapFile, PVOID Buffer, size_t cbRead)
bool SetDlgItemReal(HWND hDlg, UINT Id, double Value, BYTE nDeci, CSTR Suffix=NULL)
UINT GetWndHeight(HWND hWnd)
bool PutClipHandle(HWND clipboardOwner, HANDLE hClip, UINT clipFmt)
DWORD GetDosNameFromNtDeviceName(CSTR NtName, TSTR DosName, UINT ccDosName)
PDirEntry PScanDirCtx pCtx
#define BEGIN_NAMESPACE(name)
IPicture *WINAPI LoadPictureResource(HMODULE hModule, CSTR Id, CSTR Type)
bool GetVolumeGuidOfDevice(IN CSTR DevName, OUT TSTR VolGuid, WORD ccGuid, OPTOUT TSTR DosDrv, WORD ccDrv)
int AddComboItem(HWND hCB, CSTR Text, LPARAM Data=0)
RECT rcPaint
Upscaled drawing rect.
Common include; Added types, small "ubiquitous" utilities, et c.
bool GetWin32FileData(CSTR PathName, LPWIN32_FIND_DATA pFd)
void SetClassFloat(HWND hWnd, int gcl_Ix, float Value)
bool operator<(FILETIME const &A, FILETIME const &B)
FILETIME Now(eTimeType Domain=LOCAL_TIME)
HMAPFILE LoadAndMapFile(CSTR FName, DWORD PageAccess, PBYTE *ppData)
bool Is32BitInstance(HINSTANCE hInst)
void WINAPI GetIsoTriangleVertices(POINT *Vtx, int xOrg, int yOrg, int Radius, double Orientation)
bool FindMoreFiles(HANDLE hFind, WIN32_FIND_DATA *Found, OPTIN BYTE nTries=1, OPTIN BYTE msWait=50)
POINT WINAPI WhereXY(HDC dc)
bool(__stdcall * PFnMenuItemAction)(HMENU hMenu, MENUITEMINFO *pInfo, PVOID Ctx)
COLORREF WINAPI GrayScaleColor(COLORREF rgb)
HMODULE LoadProcLibrary(HANDLE hProcess, LPCSTR DllPathName, DWORD msWait=5000)
HBITMAP WINAPI DeleteMemoryDC(HDC hMemDC, OPTIN HBITMAP oldBmp=NULL)
void SetClassDouble(HWND hWnd, int gcl_Ix, double Value)
FILETIME AddTime(IN FILETIME Time, SHORT Hr, SHORT Min, SHORT Sec, SHORT mSec)
bool __cdecl SetStatusText(HWND hStat, UINT Part, CSTR Fmt,...)
UINT64 GetMappedFileSize(HMAPFILE hMap)
bool Is64BitInstance(HINSTANCE hInst)
bool operator==(FILETIME const &A, FILETIME const &B)
WSTR GlobalDupStrW(WCSTR Str, bool isMz=false)
bool GetVolumeGuidOfShare(IN CSTR ShareName, OUT TSTR VolGuid, WORD ccGuid, OPTOUT TSTR DosDrv, WORD ccDrv)
bool Is64BitExecutable(CSTR ExeName)
UINT GetHardLinkCount(CSTR FileName)
HBITMAP WINAPI CreateIconBitmap(HICON hIcon, HBRUSH hbrBkg, UINT cx=0, UINT cy=0)
ModifyEnvironmentVar() prepends the Addendum.
bool CheckButtonCtrl(HWND hDlg, UINT Id, bool Check)
int WINAPI FontHeight(HDC hdc, int Points)
BOOL UnloadProcLibrary(HANDLE hProcess, HMODULE hRemoteLib, DWORD msWait=5000)
UINT64 GetFilePos(HANDLE hFile)
bool(__stdcall * PFClipFmtAction)(UINT FmtTag, PVOID UserData)
bool RecycleFile(CSTR Name, bool Confirm=true, bool Single=true)
bool RestorePrivileges(HANDLE hToken, PTOKEN_PRIVILEGES pSaved, bool Dispose)
POINT MkPoint(LONG x, LONG y)
LPRECT AbsToDimRect(LPRECT pRect)
bool ButtonCtrlChecked(HWND hDlg, UINT Id)
HANDLE Launch(CSTR ExePath, CSTR CmdLn, CSTR StartDir=NULL, int iShow=SW_SHOW, DWORD Flags=NORMAL_PRIORITY_CLASS)
bool WINAPI DrawMaskedBitmap(HDC hdc, int x, int y, HBITMAP hBmp, HBITMAP hMask)
HANDLE __cdecl AsyncMsgBox(UINT Type, PINT_PTR pResult, CSTR Title, CSTR Fmt,...)
UINT GetFileNameFromHandle(HANDLE hFile, OUT TSTR Buffer, UINT BufLen)
HMENU AddSubMenu(HMENU hMenu, UINT Index, CSTR Text, WORD Id=0, WORD State=0, PVOID Data=NULL, HBITMAP Image=NULL)
UINT __cdecl WriteStrA(HANDLE hFile, const char *Fmt,...)
bool __cdecl SetStatusParts(HWND hStat, UINT nParts,...)
BOOL SetTrayIconNotification(UINT Action, HWND hNfy, UINT Id, HICON hIcon, CSTR Hint, UINT cbkMsg=WM_APP)
void WINAPI DrawIsoTriangle(HDC hdc, int xOrg, int yOrg, int Radius, double Orientation)
HMENU LoadMenuEx(HMODULE hModule, CSTR Id, LANGID Language)
HANDLE GetClipHandle(UINT clipFmt)
UINT DevicePathToDosPath(IN CSTR DevPath, OUT TSTR PathBuf, UINT ccPathBuf)
ModifyEnvironmentVar() appends the Addendum.
CSTR GetWndClassName(HWND hWnd)
UINT EnumerateHardLinks(CSTR FileName, PFnEnumHardLinks Action, PVOID UserData)
UINT64 GetFileSizeByName(CSTR FName)
UINT ListView_ForEach(HWND hLv, PFLvItemAction Action, PVOID pCtx)
HBITMAP WINAPI CreateAntialiasedBitmap(UINT cx, UINT cy, UINT mu, PFnPaintBitmap PaintBitmap, PVOID Ctx)
bool Seek(HANDLE hFile, LONG Offs, DWORD How)
HWND GetComboList(HWND hCombo)
void AbsInflateBorders(PRECT Target, LPCRECT Borders)
int AddListItem(HWND hLB, CSTR Text, LPARAM Data=0)
void FitRect(IN PRECT pRc, IN PRECT pBounds, OUT PRECT pOut)
bool TreeView_GetItemText(HWND hTree, HTREEITEM hItem, TSTR Buf, UINT BufLen)
UINT GetWndWidth(HWND hWnd)
CSTR ChangeDirectory(CSTR Dir)
bool SetTrackbarInfo(HWND hCtl, LPSCROLLINFO psi, bool Redraw)
bool CheckButton(HWND hBtn, bool Check)
void SetWindowFloat(HWND hWnd, int Index, float Value)
bool operator !=(FILETIME const &A, FILETIME const &B)
RECT Bounds
Bounding rect for the whole path.
RECTS MkRectS(SHORT L, SHORT T, SHORT R, SHORT B)
XFORM * SetXformRotate(XFORM *pxfm, double angle)
PBYTE GetMappedFilePtr(HMAPFILE hMapFile)
UINT64 SetFilePos(HANDLE hFile, INT64 Offset, UINT How)
UINT ModifyEnvironmentVar(OPTIO WSTR *pwEnv, IN BYTE Option, IN CSTR Name, IN CSTR Addendum, OPTIN TCHAR Sep)
bool PutClipboardStringA(HWND clipboardOwner, ACSTR Text)
bool CreateSymLink(CSTR LinkName, CSTR TargetPath, CSTR PrintName)
double GetDlgItemReal(HWND hDlg, UINT Id)
HANDLE CreateCapturedProcess(IN CSTR cmdLn, INOUT LPSTARTUPINFO pSi, IN DWORD Flags, OPTOUT PHANDLE pRdHnd, OPTOUT PHANDLE pWrHnd, OPTOUT PHANDLE pErrHnd, OPTOUT PHANDLE phThread=NULL)
bool RedrawWnd(HWND hWnd, UINT Flags)
XFORM * SetXformReflect(XFORM *pxfm, bool rx, bool ry)
SYSTEMTIME * LocalTimeToSystemTime(INOUT SYSTEMTIME *Time)
bool IsSubdir(LPWIN32_FIND_DATA pFd)
WCSTR SkipPathPrefixW(WCSTR PathName)