Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ILicense2::verifyLicenseFile ( const P6WCHAR pFilePath)
pure virtual

Validate that the license file was generated by this component given the key pair used in the call to initialize.

If this function returns eOk, then the contents of the license can be examined either with calls to getPropXXX or enumLicense. Also note, that valid licenses are read only and no calls to setPropXXX will be allowed.

Multiple license files can be verified in a row. Upon each call to this function all state of a previous license is cleared.

Parameters
pFilePath[ in ] Location of an existing license file.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eAccessLICENSE_VERIFY is not set.
P6R::eInvalidArgpFilePath was set to NULL.
P6R::eNotFoundCannot open file at pFilePath.
P6R::eFailThe license file has been modified and is no longer valid.