arx/ArxLibertatis — comment on commit 5dea38f9146f08789db3c38df6dc2a2548ac7311
File:  line 0
By adejr:

you can call the function with nsize = 0 and it'll return the length of the string so you can allocate it as needed. includes null according to the msdn doc.