Jade application integrating to Windows ActiveDirectory for

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Jade application integrating to Windows ActiveDirectory for

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:48 pm

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


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests