use IOCTL_NDISUIO_SET_OID_VALUE return a error code 31?

Tech-Archive recommends: Fix windows errors by optimizing your registry



the code is abt "A Device attached to the system is not
functioning" something like that...i use it to set SSID and i do get
the return bytes in the SetBuffer and error happen at m_dwLastError =
GetLastError()...
what kinda of thing could trigger this fault? can you guys help
me out on this?
thanks lot !!!!

Michael

.