>>840
DL.dlunwrap(obj.to_i).call(hwnd)
ならどう?