Inheritance: Srvsvc.ShareEnumAll
示例#1
0
 internal MsrpcShareInfo1(MsrpcShareEnum enclosing, Srvsvc.ShareInfo1 info1)
 {
     this._enclosing = enclosing;
     NetName         = info1.Netname;
     Type            = info1.Type;
     Remark          = info1.Remark;
 }
示例#2
0
			internal MsrpcShareInfo1(MsrpcShareEnum enclosing, Srvsvc.ShareInfo1 info1)
			{
				this._enclosing = enclosing;
				NetName = info1.Netname;
				Type = info1.Type;
				Remark = info1.Remark;
			}
示例#3
0
 /// <exception cref="System.IO.IOException"></exception>
 internal virtual IFileEntry[] DoMsrpcShareEnum()
 {
     MsrpcShareEnum rpc;
     DcerpcHandle handle;
     rpc = new MsrpcShareEnum(Url.GetHost());
     handle = DcerpcHandle.GetHandle("ncacn_np:" + GetAddress().GetHostAddress() + "[\\PIPE\\srvsvc]"
         , Auth);
     try
     {
         handle.Sendrecv(rpc);
         if (rpc.Retval != 0)
         {
             throw new SmbException(rpc.Retval, true);
         }
         return rpc.GetEntries();
     }
     finally
     {
         try
         {
             handle.Close();
         }
         catch (IOException ioe)
         {
             if (Log.Level >= 4)
             {
                 Runtime.PrintStackTrace(ioe, Log);
             }
         }
     }
 }