예제 #1
0
        public NetrShareEnumResponse(byte[] buffer)
        {
            NDRParser parser = new NDRParser(buffer);

            InfoStruct   = new ShareEnum(parser);
            TotalEntries = parser.ReadUInt32();
            ResumeHandle = parser.ReadUInt32();
            Result       = (Win32Error)parser.ReadUInt32();
        }
예제 #2
0
        public NetrShareEnumRequest(byte[] buffer)
        {
            NDRParser parser = new NDRParser(buffer);

            ServerName            = parser.ReadTopLevelUnicodeStringPointer();
            InfoStruct            = new ShareEnum(parser);
            PreferedMaximumLength = parser.ReadUInt32();
            ResumeHandle          = parser.ReadUInt32();
        }