Vitaliy Margolen wrote:
+res = RegOpenKeyExW( HKEY_LOCAL_MACHINE, profile_pathname, 0L,
KEY_QUERY_VALUE, keyProfileDir );
+res = RegGetValueW( keyProfileDir, profile_subkey,
profile_keyname, RRF_RT_ANY,
+ NULL, buffer, sizePath ); /* RegGetValue
Andreas Rosenberg wrote:
Almost there, just few small things left.
+TRACE(%p %s %p\n, hToken, lpProfileDir, lpcchSize);
Don't print output parameters[lpProfileDir] as string only as a point.
Unless it's used as
Andreas Rosenberg wrote:
It's quite common for these functions to check for the needed buffersize when
buffer=NULL and size=0 is passed.
I did a quick check on W2K3 and this is what is returned:
sizePath = 0;