onepc 发表于 2010-6-23 17:33:27

dllcall怎么调用getusername [已解]

本帖最后由 onepc 于 2010-6-23 17:41 编辑

dllcall怎么调用getusername?
$result=DllCall ( "Advapi32.dll", "BOOL", "GetUserName" ,"str", "","DWORD*" ,100 )
msgbox(0, "", $result)   
msgbox(0, "", $result)
SK C 可以了.~~

onepc 发表于 2010-6-23 17:42:07

不过这个大小,不知如何就是让他用户名大小如何设?

yejier1983 发表于 2010-6-23 21:47:13

不太明白,标记一下

onepc 发表于 2010-6-24 08:18:08

调用二次,就可以了,不过没什么用,
$result=DllCall ( "Advapi32.dll", "BOOL", "GetUserName" ,"str", "","DWORD*" ,0 )
第二个就是返回的是获得用户名的大小.
下面再调用一次.
页: [1]
查看完整版本: dllcall怎么调用getusername [已解]