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:
long 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?