Running Windows CE? The following two MS links give a little detail.
http://msdn.microsoft.com/library/de...ngleObject.asp
http://msdn.microsoft.com/library/de...tLastError.asp
%WAIT_FAILED - an error occurred. And the error is most likely in the system registry. RegNotifyChangeKeyValue is explained at
http://windowssdk.msdn.microsoft.com.../ms724892.aspx
A good registry cleaner and using the system file checker would be one way to see if a damaged system file is the source of the error. Tyoing "sfc /scannow" at the Run prompt and pressing enter will start the system file checker. This could also be a memory fault being seen.