ありがとう
>DL.dlunwrap(obj).call(hwnd)
のところで
>`dlunwrap': can't convert DL::CPtr into Integer (TypeError)
って出る・・・って調べていったら1.9だと通るけど1.8+dl2だとダメなのか
なんじゃそりゃ・・・orz