ITP_GET_CURRENT_PRODUCT_VERSION_V3 |
Top Previous Next |
Function returns the current product version.
ITP_GET_CURRENT_PRODUCT_VERSION_V3(wchar_t* pwcsVersion, int iMaxLength);
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. iMaxLength - Max length in the buffer.
Return
Returns nothing. The output buffer (pwcsVersion) will get current product version.
Requirements
Header: IntelliProtectorDeclarations.h
Example
void GetCurrentProductVersionW(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_CURRENT_PRODUCT_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 |