GetLicenseCodeA

Top  Previous  Next

This function retrieves the license code, which is specified during registration process.

 

static void GetLicenseCodeA(OUT char* pchLicense, IN int iMaxLength);

 

Parameters

 

 char* pchLicense - This is a buffer for the license code.
 int iMaxLength   - Length of the buffer.

 

Return value

 

 Returns nothing. The output parameter (pchLicense) will get the license code.

 

Requirements

 

 Header: IntelliProtector.h

 

Example

 

using namespace IntelliProtectorService;

// ...

 

void ShowLicenseCode()

{

 const int ciBufferLen = 256;

 char chBuffer[ciBufferLen] = {0, };

 CIntelliProtector::GetLicenseCodeA(chBuffer, ciBufferLen);

 AfxMessageBox(chBuffer);        

}

 

 

 





Copyright © 2015 IntelliProtector.com