Hi all
I made cursor resource macro (actually it's slightly changed icon resource macro from fasmw package
):
macro cursor group,[label,cursor_file] {
common
local count
count = 0
forward
local data,size,position
label dd RVA data,size+4,0,0
virtual at 0
file cursor_file:6,16
load size dword from 8
load position dword from 12
end virtual
data file cursor_file:10,4
file cursor_file:position,size
count = count+1
common
local header
align 4
group dd RVA header,6+count*14,0,0
header dw 0,2,count
forward
local width,height
virtual at 0
file cursor_file:6,2
load width byte from 0
load height byte from 1
end virtual
dw width,width+height,1,1
dd size+4
dw label#.resid
common
align 4
}