ITP_GET_CUSTOMER_NAME_V3

Top  Previous  Next

This call returns the customer's name (like 'Tim Grossman') which is provided during purchase of the license code.

 

ITP_GET_CUSTOMER_NAME_V3(wchar_tpwcsCustomerNameint iMaxLength);

 

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

 

Parameters

 

 pwcsCustomerName - Pointer to the buffer of characters.

 iMaxLength - Length of the buffer of characters.

 

Return

 

 Returns nothing. The output buffer (pwcsCustomerName) will get the customer's name.

 

Requirements

 

 Header: IntelliProtectorDeclarations.h

 

Example

 

void GetCustomerNameW(OUT wchar_t* pwcsCustomerName, IN int iMaxLength)

{

 if(pwcsCustomerName == NULL)

         return;

 

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

 wchar_t* pwcsLocalNameBuffer = new wchar_t[iMaxLength];

 ZeroMemory(pwcsLocalNameBuffer, iMaxLength);

 

 ITP_GET_CUSTOMER_NAME_V3(pwcsLocalNameBuffer, iMaxLength);

 

 // copy local buffer to pchCustomerName

 wcscpy_s(pwcsCustomerName, iMaxLength, pwcsLocalNameBuffer);

 

 // remove local variable

 delete[] pwcsLocalNameBuffer;

 pwcsLocalNameBuffer = NULL;

}

 

 

 





Copyright © 2015 IntelliProtector.com