logo_wupi_64x64px WupiGetHandle

WupiGetHandle returns the native handle to an entry. For CodeMeter this value has to be casted to HCMSysEntry. For WibuKey this value has to be casted to HWKBENTRY.

The returned handle can be used for any of the native commands but you should not release the handle using CmRelease or WkbClose2 after you have finished. If you want to free the used license use WupiFreeLicense instead.

  • C, C++
  • C#

Syntax

int WupiGetHandle(int iLicenseList);

Parameters

•iLicenseList refers to the license list index.

Return

This function returns 0, if an error occurs.

Syntax

public static object GetHandle(int LicenseList)

Parameters

•LicenseList refers to the license list index.

Return

This function returns null, if an error occurs.