10-21-2016, 03:17 PM
3. To understand MSDN code examples need to have some C/C++ and Windows API knowledge and experience. Then you know what is LPWSTR, or can find in SDK headers, where it is defined as pointer to unsigned short, which is a 2-byte integer, in QM it is word.
4. I just looked in the example, not in function reference. pwszVal was there. In PROPVARIANT its type is word*, which implies that it probably is a UTF16 string. QM string format is not UTF16, need to convert.
5. Part of Windows API in QM is declared through WINAPI, and it includes STGM_READ. Read more in QM help topic "Declare reference file or macro".
4. I just looked in the example, not in function reference. pwszVal was there. In PROPVARIANT its type is word*, which implies that it probably is a UTF16 string. QM string format is not UTF16, need to convert.
5. Part of Windows API in QM is declared through WINAPI, and it includes STGM_READ. Read more in QM help topic "Declare reference file or macro".