PvDeleteLicense()
Deletes (deauthorizes) the specified license from the computer indicated by the connection.
Header File: dtilicense.h (See also
Header Files )
Function First Available In Library: w3dbav80.dll (Windows), libpsqldti.so (Linux), libpsqldti.dylib (macOS) (See also
Link Libraries )
Syntax
BTI_API PvDeleteLicense(
BTI_LONG hConnection,
BTI_CHAR_PTR licenses );
Arguments
In
hConnection
Connection handle that identifies the server. Connection handles are obtained with the
PvConnectServer() function.
In
licenses
License to be deleted.
Return Values
P_OK
The operation completed successfully
P_E_FAIL
The operation did not complete successfully
P_E_LIC_NOT_FOUND
The license specified is not currently authorized.
P_E_LIC_INVALID
The license specified is invalid.
Status code pertaining to license administration or to authorization
Remarks
The following preconditions must be met:
• Connection established by
PvConnectServer() or if you are performing the operation on a local machine, P_LOCAL_DB_CONNECTION may be used as the connection handle.
Example
BTI_CHAR_PTR delete_lic = "ERXVD3U4ZS9KR94QPDHV5BN2";
status = PvDeleteLicense(P_LOCAL_DB_CONNECTION, delete_lic);
See Also
This site works best with JavaScript enabled