Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get LicenceNo. information

Status
Not open for further replies.

bkowlagi

Programmer
Apr 8, 2003
28
US
I have written this code which gathers all details about applications installed on the computer and writes them to a file. I first used getfileversionsize to allocate the required memory then used getfileversioninfo and verqueryvalues to get the different information I am passing the identifier string e.g. "companyName","productVersion" etc.to a separate function which writes to the output file. How do I get the Licence Number for a application using above or any other Win32 API. Is it available in the same data block that Getfileversioninfo writes to, then what is Identifier?
 
>> How do I get the Licence Number for a application

This is application-dependent data, the various files/registry keys that the license number is stored in may vary. In some cases the License Number is encoded. In other cases there is both a License Number AND a Product ID, and in many cases there is no license number.
 
Yeah, guess I realised that after I had posted. Also I guess it is illegal to extract licence and other copyright information as it would amount to piracy. Thanks anyway. However what I did get was the LegalCopyright information from verqueryvalue this is good enough because it usually contains the time period of the copyright or license.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top