Package streamer

Examples of streamer.ByteBuffer.writeShortLE()


        // cbPassword length: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(password.length);

        // cbAlternateShell:  (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(alternateShell.length);

        // cbWorkingDir: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(workingDir.length);

        //
View Full Code Here


        // cbAlternateShell:  (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(alternateShell.length);

        // cbWorkingDir: (LE) (NOT including size of mandatory NULL terminator)
        buf.writeShortLE(workingDir.length);

        //
        // Values
        //
View Full Code Here

        // the Version field MUST be set to the current version (section 2.2.2.10),
        // the DomainName field MUST be set to a zero-length string, and the
        // Workstation field MUST be set to a zero-length string.

        // Domain: ""
        buf.writeShortLE(0); // Length
        buf.writeShortLE(0); // Allocated space
        buf.writeIntLE(0); // Offset

        // Workstation: ""
        buf.writeShortLE(0); // Length
View Full Code Here

        // the DomainName field MUST be set to a zero-length string, and the
        // Workstation field MUST be set to a zero-length string.

        // Domain: ""
        buf.writeShortLE(0); // Length
        buf.writeShortLE(0); // Allocated space
        buf.writeIntLE(0); // Offset

        // Workstation: ""
        buf.writeShortLE(0); // Length
        buf.writeShortLE(0); // Allocated space
View Full Code Here

        buf.writeShortLE(0); // Length
        buf.writeShortLE(0); // Allocated space
        buf.writeIntLE(0); // Offset

        // Workstation: ""
        buf.writeShortLE(0); // Length
        buf.writeShortLE(0); // Allocated space
        buf.writeIntLE(0); // Offset

        // OS Version: 6.1 (Build 7601); NTLM Current Revision 15
        buf.writeBytes(new byte[] {(byte)0x06, (byte)0x01, (byte)0xb1, (byte)0x1d, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0f});
View Full Code Here

        buf.writeShortLE(0); // Allocated space
        buf.writeIntLE(0); // Offset

        // Workstation: ""
        buf.writeShortLE(0); // Length
        buf.writeShortLE(0); // Allocated space
        buf.writeIntLE(0); // Offset

        // OS Version: 6.1 (Build 7601); NTLM Current Revision 15
        buf.writeBytes(new byte[] {(byte)0x06, (byte)0x01, (byte)0xb1, (byte)0x1d, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0f});
View Full Code Here

        // Header
        ByteBuffer header = createMCSHeader(buf);

        // Length of source descriptor, including NULL character (LE)
        header.writeShortLE(SOURCE_DESC.length() + 1);

        // Length of combined capabilities + 4 bytes (number of capabilities and
        // padding) (LE)
        header.writeShortLE(buf.length + 4);
View Full Code Here

        // Length of source descriptor, including NULL character (LE)
        header.writeShortLE(SOURCE_DESC.length() + 1);

        // Length of combined capabilities + 4 bytes (number of capabilities and
        // padding) (LE)
        header.writeShortLE(buf.length + 4);

        header.writeString(SOURCE_DESC, RdpConstants.CHARSET_8);
        header.writeByte(0);

        // Number of capabilities
View Full Code Here

        header.writeString(SOURCE_DESC, RdpConstants.CHARSET_8);
        header.writeByte(0);

        // Number of capabilities
        header.writeShortLE(numberCapabilities);

        // Padding 2 bytes
        header.writeShortLE(0);

        header.trimAtCursor();
View Full Code Here

        // Number of capabilities
        header.writeShortLE(numberCapabilities);

        // Padding 2 bytes
        header.writeShortLE(0);

        header.trimAtCursor();

        // Prepend header to capabilities
        buf.prepend(header);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.