Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[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/