Page 1 of 1

Issue with application button parameters

Posted: Mon Feb 11, 2013 6:55 pm
by Passing by
I'm facing an issue with application button parameters (I'm running the latest nightly builds), where parameters are not expanded (e.g. "%dir%" stays "%dir%" instead of becoming the current directory).
I suspect the issue is related to incorrect use of ExpandEnvironmentStringsForUser in MyExpandEnvironmentStrings: according to the documentation, since Windows 7, the token parameter passed to this function must have, in addition to TOKEN_IMPERSONATE and TOKEN_QUERY, TOKEN_DUPLICATE. See ... 85%29.aspx.

Edit: forgot to mention - I'm running Windows 7 64bit with SP1.