<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Generators Functions > WLGenPassword |
The WLGenPassword function generates a specific password for a given user name.
int WLGenPassword( char* pPassHash, char* pUserName, char* pBufferOut ); |
function WLGenPassword( pPassHash:PAnsiChar; pUserName:PAnsiChar; pBufferOut:PAnsiChar ):Integer; stdcall; |
Public Declare Function WLGenPassword Lib "WinLicenseSDK.dll"( ByVal pPassHash As String, ByVal pUserName As String, ByVal pBufferOut As String ) As Integer |
class WinlicenseSDK { [DllImport( "WinlicenseSDK.dll", EntryPoint="GenerateLicenseFileKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenPassword( string pPassHash, string pUserName, byte[] pBufferOut); } |
Parameters
pPassHash
[in] Pointer to a null-terminated string that specifies the unique Password hash to generate specific passwords for an application.
pUserName
[in] Pointer to a null-terminated string that specifies the user name for whom the password is generated.
pBufferOut
[out] Pointer to a buffer that will hold the generated password for the specified user.
Return Values
If the function succeeds, the return value is the number of bytes in the generated password.
If the function fails, the return value is 0.
See Also