mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
20ed41dd6d
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3348 21ef857c-d57f-4fe0-8362-d861dc6d29cd
31 lines
859 B
C
31 lines
859 B
C
#ifndef _PH_HEXEDIT_H
|
|
#define _PH_HEXEDIT_H
|
|
|
|
#define PH_HEXEDIT_CLASSNAME L"PhHexEdit"
|
|
|
|
BOOLEAN PhHexEditInitialization();
|
|
|
|
HWND PhCreateHexEditControl(
|
|
__in HWND ParentHandle,
|
|
__in INT_PTR Id
|
|
);
|
|
|
|
#define HEM_SETBUFFER (WM_APP + 1401)
|
|
#define HEM_SETDATA (WM_APP + 1402)
|
|
#define HEM_GETBUFFER (WM_APP + 1403)
|
|
#define HEM_SETSEL (WM_APP + 1404)
|
|
|
|
#define HexEdit_SetBuffer(hWnd, Buffer, Length) \
|
|
SendMessage((hWnd), HEM_SETBUFFER, (WPARAM)(Length), (LPARAM)(Buffer))
|
|
|
|
#define HexEdit_SetData(hWnd, Buffer, Length) \
|
|
SendMessage((hWnd), HEM_SETDATA, (WPARAM)(Length), (LPARAM)(Buffer))
|
|
|
|
#define HexEdit_GetBuffer(hWnd, Buffer, Length) \
|
|
((PUCHAR)SendMessage((hWnd), HEM_GETBUFFER, 0, 0)
|
|
|
|
#define HexEdit_SetSel(hWnd, Start, End) \
|
|
SendMessage((hWnd), HEM_SETSEL, (WPARAM)(Start), (LPARAM)(End))
|
|
|
|
#endif
|