ehardin
Posts: 85
Joined: Fri Jul 13, 2007 8:10 pm

how to get return from GetPropertyValue

In the sample code for C++ it has:
DWORD len = mID.GetAllocLength();
if ( ERROR_MORE_DATA== InitTrial::GetPropertyValue(LICENSE_PROP_ID, mID.GetBuffer(), len) )
{
InitTrial::GetPropertyValue(LICENSE_PROP_ID, mID.GetBufferSetLength(len), len);
}

My question is where is the License ID data. In debug mode I show mID as "" and I show len as 0.

I do I get the return value in C++. Maybe I'm just dense but I can't figure it out.

Ed
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: how to get return from GetPropertyValue

Hello Ed,

You should get the output value of the "GetPropertyValue" function through its second parameter.

However, please note that before registering a license only the trial properties are available. License properties (e.g. ID, SIGN, etc) are not available as long you did not register a license yet.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”