本帖最后由 oyljerry 于 2013-01-24 11:17:50 编辑

解决方案 »

  1.   

    lpUNCServerName [in]
    The Universal Naming Convention (UNC) name of the remote server on which the event log is to be opened. If this parameter is NULL, the local computer is used.\\1.1.1.1
    这种方式试试呢
      

  2.   

    LPCTSTR lpUNCServerName,  // server name 只知道是服务器名顶一楼
      

  3.   

    本帖最后由 oyljerry 于 2013-01-24 18:52:20 编辑
      

  4.   

    可能是域安全策略禁止这样做,你可以用GetLastError看看函数返回的错误是什么。
    可能要先建立IPC连接?