예제 #1
0
 public void Read(NDRParser parser)
 {
     parser.BeginStructure();
     parser.ReadEmbeddedStructureFullPointer(ref NetName);
     ShareType = new ShareTypeExtended(parser);
     parser.ReadEmbeddedStructureFullPointer(ref Remark);
     parser.EndStructure();
 }
예제 #2
0
        public ShareInfo2Entry(string shareName, ShareTypeExtended shareType)
        {
            NetName   = new NDRUnicodeString(shareName);
            ShareType = shareType;
            Remark    = new NDRUnicodeString(String.Empty);

            MaxUses  = UnlimitedConnections;
            Path     = new NDRUnicodeString(String.Empty);
            Password = null;
        }
예제 #3
0
 public void Read(NDRParser parser)
 {
     parser.BeginStructure();
     parser.ReadEmbeddedStructureFullPointer(ref NetName);
     ShareType = new ShareTypeExtended(parser);
     parser.ReadEmbeddedStructureFullPointer(ref Remark);
     Permissions = (Permissions)parser.ReadUInt32();
     MaxUses     = parser.ReadUInt32();
     CurrentUses = parser.ReadUInt32();
     parser.ReadEmbeddedStructureFullPointer(ref Path);
     parser.ReadEmbeddedStructureFullPointer(ref Password);
     parser.EndStructure();
 }
예제 #4
0
 public ShareInfo1Entry(string shareName, ShareTypeExtended shareType)
 {
     NetName   = new NDRUnicodeString(shareName);
     ShareType = shareType;
     Remark    = new NDRUnicodeString(String.Empty);
 }