PrintMessage function (netsh.h)
The PrintMessage function displays output to the NetShell console.
Syntax
DWORD PrintMessage(
[in] LPCWSTR pwszFormat,
...
);
Parameters
[in] pwszFormat
A string to be output to the NetShell console.
...
The arguments used to fill into the message.
Return value
Returns the number of characters printed. Returns zero upon failure.
Remarks
Use the PrintMessage function when the message to be output is not required to be localized.
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 |