对于Messenger您可能会立即想到一些人利用这个发垃圾广告。 [no] 
但是在某些时候,我们利用这个服务来给管理员发送警告还是非常不错的。 [yes] 

/* **********************************************
  * Rainsoft Development Library for Microsoft.NET
  * 
  * Copyright (c) 2004,2005 RainTrail Studio.China
  * All Rigths Reserved!
  * Author: Q.yuhen
  ********************************************** */ 
 using System;
 using System.Runtime.InteropServices;namespace Rainsoft.Win32
 {
   /// <summary>
   /// 系统信使服务
   /// </summary>
   public sealed class NetSend
   {
     [DllImport("netapi32.dll", EntryPoint="NetMessageBufferSend", CharSet=CharSet.Unicode)]
     private static extern int NetMessageBufferSend(
       string servername,
       string msgname,
       string fromname,
       [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 4)] byte[] buf,
       [MarshalAs(UnmanagedType.U4)] int buflen);    private NetSend(){}
    /// <summary>
     /// 发送消息
     /// </summary>
     /// <param name="fromName">发送人</param>
     /// <param name="toName">接收人(机器名或者IP)</param>
     /// <param name="message">消息内容</param>
     /// <returns></returns>
     public static bool Send(string fromName, string toName, string message)
     {
       byte[] buf = System.Text.Encoding.Unicode.GetBytes(message);
       return NetMessageBufferSend(null, toName, fromName, buf, buf.Length) == 0;
     }
   }
 }