Returns the result code for validation of the license.
For a license to be valid, the validLicense property shouold be true, and the value of result should be 0.
Do not test the value of result for the validity of the license, since as will be seen below, 0 can be returned for an invalid license.