PvValidateLicenses()
Initiates a check of the validity of all keys on the computer indicated by the connection.
Header File: dtilicense.h (See also Header Files)
Function First Available In Library: w3dbav90.dll (Windows), libpsqldti.so (Linux), libpsqldti.dylib (macOS) (See also
Link Libraries)
Syntax
BTI_API PvValidateLicenses(BTI_LONG hConnection);
Arguments
In | hConnection | Connection handle that identifies the server. Connection handles are obtained with the
PvConnectServer() function. |
Return Values
P_OK | The validation operation completed successfully. |
P_E_FAIL | The validation operation did not complete successfully. |
Status code pertaining to license administration or to authorization | |
Remarks
PvValidateLicenses returns only the result from
requesting a validation check. It does
not return any information about the state of the keys. You must separately call
PvGetProductsInfo() to get the XML string of product information that includes information about the state of the keys.
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
status = PvValidateLicenses(P_LOCAL_DB_CONNECTION);
See Also