Shy07 发表于 2011-10-17 21:45
你可以试试夏娜做的require so库补丁
如果要用Win32API的话,下面这些是libiconv2.dll的函数
_libiconv_ver ...
当你破解这个条码的时候,恭喜
但其实这毫无意义,只是一张签名图罢了
by 英顺的马甲
module MsgBox
B_O = 0
B_OC = 1
B_ARI = 2
B_YN = 4
C_O = 1
C_C = 2
C_A = 3
C_R = 4
C_I = 5
C_Y = 6
C_N = 7
CP_ACP = 0
CP_UTF8 = 65001
def self.u2s(text)
m2w = Win32API.new('kernel32', 'MultiByteToWideChar', 'ilpipi', 'i')
w2m = Win32API.new('kernel32', 'WideCharToMultiByte', 'ilpipipp', 'i')
len = m2w.call(CP_UTF8, 0, text, -1, nil, 0);
buf = "\0" * (len*2)
m2w.call(CP_UTF8, 0, text, -1, buf, buf.size/2);
len = w2m.call(CP_ACP, 0, buf, -1, nil, 0, nil, nil);
ret = "\0" * len
w2m.call(CP_ACP, 0, buf, -1, ret, ret.size, nil, nil);
return ret.delete!("\000")
end
def self.show(msg="",title="",button=0)
msgbox = Win32API.new('user32','MessageBox',['L', 'P', 'P', 'L'],'I')
r, rs = msgbox.call(0, self.u2s(msg), self.u2s(title), button)
return r
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |