PrintError function (netsh.h)
The PrintError function displays a system or application error message to the NetShell console.
Syntax
DWORD PrintError(
[in] HANDLE hModule,
[in] DWORD dwErrId,
...
);
Parameters
[in] hModule
A handle to the module from which the string should be loaded, or null for system error messages.
[in] dwErrId
The identifier of the message to print.
...
The arguments used to fill into the message.
Return value
Returns the number of characters printed. Returns zero upon failure.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | netsh.h |
Library | Netsh.lib |
DLL | Netsh.exe |