quote:
Originally posted by CookieRevised
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 buffer should be 2*256+2
Ya your write. Haha I will fix that. I am thinking maybe we should make a thread where scripters post examples for people to learn. That way we can keep all these types of threads in one place.
quote:
Originally posted by JonnyT
ah yeah that one works
so what else could this be used for?
In all reality nothing really, this is just an example of using Datablocks and Interop.Call/Allocate. But there are menu things you can do with the API etc.