The NetAlertRaiseEx function simplifies the raising of an Administrators interrupting message.
No special group membership is required to successfully execute NetAlertRaiseEx.
NET_API_STATUS NetAlertRaiseEx(
LPWSTR AlertEventName,
LPVOID VariableInfo,
DWORD VariableInfoSize,
LPWSTR ServiceName
);
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmalert.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetAlertRaiseEx