Page 1 of 1

Fetching a string property

Posted: Thu Aug 06, 2020 1:17 pm
by BenBaron
Hi guys,

I am a little unsure regarding this function declaration:

Code: Select all

virtual HRESULT GetProperty( __in LPCWSTR pszPropertyName, __out LPWSTR pszProperty, __in UINT uLength, __in int index = 0 )const
If I want to fetch a string property into a wchar_t buffer[], is this method expecting me to put in the actual size of the buffer pointed to by pszProperty, or its length as uLength?

In other words, do I have to input

Code: Select all

or simply

Code: Select all