2
votes
SHGetFolderPath and Default User
Marco's Tech Blog
– Over the last few days, I've had a few issues with the SHGetFolderPath API, which are now solved. It all started when I grabbed some Delphi existing code (pre-Unicode), with a call to: OleCheck (SHGetFolderPath (Handle, CSIDL_MYDOCUMENTS, $FFFF, 0, PChar(szBuffer))); By simply leaving the code as it was I got a Windows runtime error, "The Handle is Invalid". Might be the handle passed as first parameter, but it didn't help. Curious, I went back to the Ansi version of the function: OleCheck (SHGetFolderPathA (Handle, CSIDL_PERSONAL, $FFFF, 0, PAnsiChar(szBuffer))); This ...
Statistics
|
Visits by Source |
User Actions |




