8 namespace swift::simplugin::fs9
10 HRESULT logDirectPlayError(HRESULT error)
15 case DPNERR_BUFFERTOOSMALL:
16 errorMessage =
"The supplied buffer is not large enough to contain the requested data.";
18 case DPNERR_DOESNOTEXIST: errorMessage =
"Requested element is not part of the address.";
break;
19 case DPNERR_INVALIDFLAGS: errorMessage =
"The flags passed to this method are invalid.";
break;
20 case DPNERR_INVALIDPARAM:
21 errorMessage =
"One or more of the parameters passed to the method are invalid.";
23 case DPNERR_INVALIDPOINTER: errorMessage =
"Pointer specified as a parameter is invalid.";
break;
24 case DPNERR_INVALIDURL: errorMessage =
"Specified string is not a valid DirectPlayURL.";
break;
25 case DPNERR_NOTALLOWED: errorMessage =
"This function is not allowed on this object.";
break;
26 case DPNERR_INVALIDOBJECT: errorMessage =
"The Microsoft DirectPlay object pointer is invalid.";
break;
27 case DPNERR_UNINITIALIZED: errorMessage =
"This function is not allowed on this object.";
break;
28 case DPNERR_UNSUPPORTED:
30 "The function or feature is not available in this implementation or on this service provider.";
33 errorMessage =
"The client attempted to connect to a nonhost computer. Additionally, this error value may "
34 "be returned by a nonhost that tried to set the application description.";
36 default: errorMessage = QString(
"Unknown error code %1").arg(error);
break;
39 errorMessage =
"DirectPlay: " + errorMessage;
Class for emitting a log message.
Derived & error(const char16_t(&format)[N])
Set the severity to error, providing a format string.