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 可以了.~~ 不过这个大小,不知如何就是让他用户名大小如何设? 不太明白,标记一下 调用二次,就可以了,不过没什么用,
$result=DllCall ( "Advapi32.dll", "BOOL", "GetUserName" ,"str", "","DWORD*" ,0 )
第二个就是返回的是获得用户名的大小.
下面再调用一次.
页:
[1]