Created On: 13 April 2012 When calling Reg_CreateValue in Silk Test Classic using the open agent the following error occurs: *** Error: Unexpected NULL Occurred in RegCreateKeyEx at registry.inc(397) This issue is due to Agent.GetOption (OPT_USE_ANSICALL) being used within RegCreateKeyEx. It is because the open agent does not support dll calling in Silk Test Classic 2011 and so this agent option is not valid with the open agent. To overcome this, you can upgrade to the latest release of Silk test where the issue is resolved. Or you can switch to the classic agent to call Reg_CreateValue. Alternatively, you can create a new version of RegCreateKeyEx (as shown below) and comment out the existing version of this function. Example: [-] LONG RegCreateKeyEx (LONG hKey, STRING lpSubKey, LONG Reserved, STRING lpClass, LONG dwOptions, LONG samDesired, LONG lpSecurityAttributes, out LONG phkResult, out LONG lpdwDisposition) [ ] [ ] LONG retVal [ ] retVal = RegCreateKeyExW (hKey, lpSubKey, Reserved, lpClass, dwOptions, samDesired, lpSecurityAttributes, phkResult, lpdwDisposition) [ ] return retVal [ ] Old KB# 35816
↧