Ejemplo n.º 1
0
 public void Read(NDRParser parser)
 {
     parser.BeginStructure();
     parser.ReadEmbeddedStructureFullPointer(ref NetName);
     ShareType = new ShareTypeExtended(parser);
     parser.ReadEmbeddedStructureFullPointer(ref Remark);
     parser.EndStructure();
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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();
 }
Ejemplo n.º 4
0
 public ShareInfo1Entry(string shareName, ShareTypeExtended shareType)
 {
     NetName   = new NDRUnicodeString(shareName);
     ShareType = shareType;
     Remark    = new NDRUnicodeString(String.Empty);
 }