ITP_GET_RENEWAL_PURCHASE_LINK_V3

Top  Previous  Next

This define returns the 'purchase renewal code' link, which is specified in the IntelliProtector project.

 

ITP_GET_RENEWAL_PURCHASE_LINK_V3(wchar_t* pwcsLinkBuffer, int iMaxLen);

 

Note: pwcsLinkBuffer buffer must be filled by zeros before use. Please use the ZeroMemory macros or memset() function.

 

Parameters

 

 pwcsLinkBuffer - pointer to the purchase renewal code link.

 iMaxLen - Max length in the link buffer.

 

Return

 

 Returns nothing. The output buffer (pwcsLinkBuffer) will get the license code.

 

Requirements

 

 Header: IntelliProtectorDeclarations.h

 

Example

 

void GetRenewalPurchaseLinkW(OUT wchar_t* pwcsLinkBuffer, int iMaxLength)

{

 if(pwcsLinkBuffer == NULL)

         return;

 

 // The defines cannot use parameters from function directly, so creating local variable at first.

 wchar_t* pwcsLocalLinkBuffer = new wchar_t[iMaxLength];

 ZeroMemory(pwcsLocalLinkBuffer, iMaxLength);

 

 ITP_GET_RENEWAL_PURCHASE_LINK_V3(pwcsLocalLinkBuffer, iMaxLength);

 

 // copy local link to pchLinkBuffer

 wcscpy_s(pwcsLinkBuffer, iMaxLength, pwcsLocalLinkBuffer);

 

 // remove local variable

 delete[] pwcsLocalLinkBuffer;

 pwcsLocalLinkBuffer = NULL;

}

 

 





Copyright © 2015 IntelliProtector.com