Process Hacker
hexedit.h
Go to the documentation of this file.
1 #ifndef _PH_HEXEDIT_H
2 #define _PH_HEXEDIT_H
3 
4 #define PH_HEXEDIT_CLASSNAME L"PhHexEdit"
5 
6 #define EDIT_NONE 0
7 #define EDIT_ASCII 1
8 #define EDIT_HIGH 2
9 #define EDIT_LOW 3
10 
12  VOID
13  );
14 
15 #define HEM_SETBUFFER (WM_USER + 1)
16 #define HEM_SETDATA (WM_USER + 2)
17 #define HEM_GETBUFFER (WM_USER + 3)
18 #define HEM_SETSEL (WM_USER + 4)
19 #define HEM_SETEDITMODE (WM_USER + 5)
20 #define HEM_SETBYTESPERROW (WM_USER + 6)
21 
22 #define HexEdit_SetBuffer(hWnd, Buffer, Length) \
23  SendMessage((hWnd), HEM_SETBUFFER, (WPARAM)(Length), (LPARAM)(Buffer))
24 
25 #define HexEdit_SetData(hWnd, Buffer, Length) \
26  SendMessage((hWnd), HEM_SETDATA, (WPARAM)(Length), (LPARAM)(Buffer))
27 
28 #define HexEdit_GetBuffer(hWnd, Length) \
29  ((PUCHAR)SendMessage((hWnd), HEM_GETBUFFER, (WPARAM)(Length), 0))
30 
31 #define HexEdit_SetSel(hWnd, Start, End) \
32  SendMessage((hWnd), HEM_SETSEL, (WPARAM)(Start), (LPARAM)(End))
33 
34 #define HexEdit_SetEditMode(hWnd, Mode) \
35  SendMessage((hWnd), HEM_SETEDITMODE, (WPARAM)(Mode), 0)
36 
37 #define HexEdit_SetBytesPerRow(hWnd, BytesPerRow) \
38  SendMessage((hWnd), HEM_SETBYTESPERROW, (WPARAM)(BytesPerRow), 0)
39 
40 #endif