I had also detected this problem and found a work around.
Use GetUserNameA instead of RegQueryValueExString.
Private Declare Function GetUserNameA Lib "advapi32.dll" (ByVal lpBuffer As String, ByRef nSize As Long) As Long
and do something like this:
InfoSize = 128 'set...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.