[REBOL] Re: Getting username under windows
From: gabriele:colellachiara at: 19-Mar-2007 10:05
Hi Tim,
On Sunday, March 18, 2007, 10:49:15 PM, you wrote:
tdn> user: make routine! [arg1 [string!] agr2 [integer!] return:
tdn> [integer!]] lib "GetUserNameA" ; no error
The problem is that the second argument should be a pointer to a
integer, not an integer. Just create a struct with an integer in
it and pass it to the function.
Regards,
Gabriele.
--
Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/
Colella Chiara software division --- http://www.colellachiara.com/