code:
typedef struct tagNMHDR {
HWND hwndFrom;
UINT_PTR idFrom;
UINT code;
} NMHDR;
now im not sure what size the HWND structure is (i think it is an integer) but UINT_PTR should be a 32bit value and so should UINT, so could you not just read off the DWORDs from the structure?
code:
var hwndFrom= nmhdr.ReadDWORD(0);
var idFrom = nmhdr.ReadDWORD(4);
var code = nmhdr.ReadDWORD(8 );
sorry if ive missed something