ITP_GET_CUSTOMER_EMAIL_V3

Top  Previous  Next

This call returns the customer's e-mail address, which is provided during purchase of the license code.

 

ITP_GET_CUSTOMER_EMAIL_V3(wchar_tpwcsCustomerEMailint iMaxLength);

 

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

 

Parameters

 

 pwcsCustomerEMail - Pointer to the buffer of characters.

 iMaxLen - Length of the buffer of characters.

 

Return

 

 Returns nothing. The output buffer (pwcsCustomerEMail) will get the customer's e-mail address.

 

Requirements

 

 Header: IntelliProtectorDeclarations.h

 

Example

 

void GetCustomerEMailW(OUT wchar_t* pwcsCustomerEMail, IN int iMaxLength)

{

 if(pwcsCustomerEMail == NULL)

         return;

 

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

 wchar_t* pwcsLocalEmailBuffer = new wchar_t[iMaxLength];

 ZeroMemory(pwcsLocalEmailBuffer, iMaxLength);

 

 ITP_GET_CUSTOMER_EMAIL_V3(pwcsLocalEmailBuffer, iMaxLength);

 

 // copy local buffer to pchCustomerEMail

 wcscpy_s(pwcsCustomerEMail, iMaxLength, pwcsLocalEmailBuffer);

 

 // remove local variable

 delete[] pwcsLocalEmailBuffer;

 pwcsLocalEmailBuffer = NULL;

}

 

 





Copyright © 2015 IntelliProtector.com