class WinlicenseSDK
{
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenPassword", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenPassword(string PassHash, string Name, StringBuilder PasswordBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseFileKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseFileKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, int CountryId, int Runtime, int GlobalTime, byte[] LicenseBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseRegistryKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseRegistryKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, int CountryId, int Runtime, int GlobalTime, string RegName, string RegValueName, byte[] LicenseBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseTextKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseTextKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, int CountryId, int Runtime, int GlobalTime, StringBuilder LicenseBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseSmartKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseSmartKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, StringBuilder LicenseBuffer);
}