ITP_GET_INTELLIPROTECTOR_VERSION_V3

Top  Previous  Next

This definition returns version of the protection core.

 

ITP_GET_INTELLIPROTECTOR_VERSION_V3(wchar_tpwcsVersionint iMaxLen);

 

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

 

Parameters

 

 pwcsVersion - pointer to the buffer of characters.

 iMaxLen - Max length in the buffer.

 

Return

 

 Returns nothing.  The output buffer (pwcsVersion) will get version of the protection engine.

 

Requirements

 

 Header: IntelliProtectorDeclarations.h

 

Example

 

void GetIntelliProtectorVersionW(OUT wchar_t* pwcsVersion, IN int iMaxLength)

{

 if(pwcsVersion == NULL)

         return;

 

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

 wchar_t* pwcsLocalVersionBuffer = new wchar_t[iMaxLength];

 ZeroMemory(pwcsLocalVersionBuffer, iMaxLength);

 

 ITP_GET_INTELLIPROTECTOR_VERSION_V3(pwcsLocalVersionBuffer, iMaxLength);

 

 // copy local buffer to pchLicense

 wcscpy_s(pwcsVersion, iMaxLength, pwcsLocalVersionBuffer);

 

 // remove local variable

 delete[] pwcsLocalVersionBuffer;

 pwcsLocalVersionBuffer = NULL;

}

 

 

 





Copyright © 2015 IntelliProtector.com