| || |
Win API Call with SILK INTL
Hello, I use SILK Inernational and i have an Win API call declared as:
private dll "advapi32.dll"
LONG RegOpenKeyExW (unsigned LONG hKey, STRING lpSubKey, LONG ulOptions, LONG samDesired, out unsigned LONG phkResult) alias "RegOpenKeyExW"
Now if try that piece of code:
print (RegOpenKeyExW(HKEY_LOCAL_MACHINE,"SOFTWARE",0,KEY _READ,hKey)))
-->doesn't work:returned value is 998 (instead of 0 since that key exists)
The same piece of code with SILK "standard" (using the RegOpenKeyEx) works fine.
Can anyone tell me what is wrong in that code please?