windows-nt/Source/XPSP1/NT/sdktools/xerox/util.h

29 lines
784 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
PVOID Alloc(SIZE_T);
SIZE_T GetAllocSize(PVOID);
BOOL Free(PVOID);
INT AddItem(HWND, INT, LPSTR, LONG_PTR, BOOL);
INT AddItemhwnd(HWND, LPSTR, LONG_PTR, BOOL);
LONG_PTR FindData(HWND, LONG_PTR, BOOL);
// Useful macros
#define AddLBItem(hDlg, ControlID, string, data) \
(AddItem(hDlg, ControlID, string, data, FALSE))
#define AddCBItem(hDlg, ControlID, string, data) \
(AddItem(hDlg, ControlID, string, data, TRUE))
#define AddLBItemhwnd(hwnd, string, data) \
(AddItemhwnd(hwnd, string, data, FALSE))
#define AddCBItemhwnd(hwnd, string, data) \
(AddItemhwnd(hwnd, string, data, TRUE))
#define FindLBData(hwnd, data) \
(FindData(hwnd, data, FALSE))
#define FindCBData(hwnd, data) \
(FindData(hwnd, data, TRUE))