Наследование: Lsarpc.LsarOpenPolicy2
Пример #1
0
		/// <exception cref="System.IO.IOException"></exception>
		public LsaPolicyHandle(DcerpcHandle handle, string server, int access)
		{
			if (server == null)
			{
				server = "\\\\";
			}
			MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this);
			handle.Sendrecv(rpc);
			if (rpc.Retval != 0)
			{
				throw new SmbException(rpc.Retval, false);
			}
		}
Пример #2
0
        /// <exception cref="System.IO.IOException"></exception>
        public LsaPolicyHandle(DcerpcHandle handle, string server, int access)
        {
            if (server == null)
            {
                server = "\\\\";
            }
            MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this);

            handle.Sendrecv(rpc);
            if (rpc.Retval != 0)
            {
                throw new SmbException(rpc.Retval, false);
            }
        }