Hi fellow Rebolians: Because I need to use the user name in an NT-networking env, I thought to use the "GetUserNameA" function from from ADVAPI32.dll ... Based on the code found on MSDN at http://support.microsoft.com/support/kb/articles/Q152/9/70.asp , I tried: <snip> name: make string! 255 len: make integer! 255 advapi32: load/library %advapi32.dll get-user-name: make routine! [buffer [string!] length [integer!] return: [integer!]] advapi32 "GetUserNameA" get-user-name name len print name ; because the returned value should be here </snip> But, although I tried several different combinations of passed parms, /Command stays crashing. Well, what did I do wrong ? Anybody as any experience regarding this matter ? Thanks for answering and Best Regards, chr== -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Problems with accessing external lib in /Command
CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN Tue, 06 Mar 2001 05:05:49 -0800
- [REBOL] Re: Problems with ac... CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN
