by T Moore >> Fri, 1 Apr 2005 13:09:24 GMT
Yes John I agree. It would probably be more efficient to declare the string as fixed length. It needs to be defined as at least 256 characters in length though
The definition of the external function is
getUserNameEx(
iFormat : Integer;
szUser : String[256] output;
pcchUser : Integer io
) : Boolean is GetUserNameExA in secur32;
If the string passed to the szUser parameter is defined as variable length, then Jade will make sure it is at least 256 characters long. If you define the string as fixed length then Jade checks the length as the function is called. If the string is defined as less than 256 characters in length an exception is thrown.
Torrie