What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Scripting Example] GetUserName

[Scripting Example] GetUserName
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Scripting Example] GetUserName
PS: A buffer size of (UNLEN + 1) characters will hold the maximum length user name including the terminating null character. UNLEN is defined in Lmcons.h.

And Lmcons.h defines UNLEN as being 256 characters. So I suppose the correct length for the (unicode) buffer should be 2*(256+1)

PS2:
quote:
// Free the memory we allocated
   sBuffer.Size = 0;
   lBuffer.Size = 0;
Will be done automatically as soon as the function ends since the two are local variables though.

This post was edited on 06-29-2006 at 04:57 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-29-2006 04:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Scripting Example] GetUserName - by matty on 06-29-2006 at 03:30 PM
RE: [Scripting Example] GetUserName - by JonnyT on 06-29-2006 at 03:46 PM
RE: [Scripting Example] GetUserName - by matty on 06-29-2006 at 03:49 PM
RE: [Scripting Example] GetUserName - by Eljay on 06-29-2006 at 04:03 PM
RE: [Scripting Example] GetUserName - by matty on 06-29-2006 at 04:04 PM
RE: [Scripting Example] GetUserName - by CookieRevised on 06-29-2006 at 04:40 PM
RE: [Scripting Example] GetUserName - by JonnyT on 06-29-2006 at 04:41 PM
RE: [Scripting Example] GetUserName - by matty on 06-29-2006 at 04:42 PM
RE: [Scripting Example] GetUserName - by matty on 06-29-2006 at 05:14 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On