Hi All,

I'm trying to set a DWORD value in the Win2k System Registry using RegSetValueExA. But it is giving an Error 998.
Can anyone tell me what am I doing wrong?

Here's the function call :
dim setval as long

setval = 10

RegFuncRetval = RegSetValueExA _
(phk, _
"Status_Code", 0&, REG_DWORD, _
setval, 4)

Here phk has been obtained from an earlier call to RegOpenKeyExA

Please help.
Thanks.