⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 options.java

📁 cygwin 是一个在windows平台上运行的unix模拟环境
💻 JAVA
字号:
/* Options.java
 * Component: ProperJavaRDP
 * 
 * Revision: $Revision: 1.7 $
 * Author: $Author: telliott $
 * Date: $Date: 2005/09/27 14:15:39 $
 *
 * Copyright (c) 2005 Propero Limited
 *
 * Purpose: Global static storage of user-definable options
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 * 
 * (See gpl.txt for details of the GNU General Public License.)
 * 
 */
package net.propero.rdp;

import java.awt.image.DirectColorModel;

public class Options {
    
    public static final int DIRECT_BITMAP_DECOMPRESSION = 0;
    public static final int BUFFEREDIMAGE_BITMAP_DECOMPRESSION = 1;
    public static final int INTEGER_BITMAP_DECOMPRESSION = 2;
    
    public static int bitmap_decompression_store = INTEGER_BITMAP_DECOMPRESSION;
    
    
	public static boolean low_latency = true; // disables bandwidth saving tcp packets
	public static int keylayout = 0x809; // UK by default
	public static String username = "root"; // -u username
	public static String domain = ""; // -d domain
	public static String password = ""; // -p password
	public static String hostname = ""; // -n hostname
	public static String command = "";  // -s command
	public static String directory = ""; // -d directory
	public static String windowTitle = "properJavaRDP"; // -T windowTitle
	public static int width = 800; // -g widthxheight
	public static int height = 600; // -g widthxheight
	public static int port = 3389; // -t port
	public static boolean fullscreen = false;
	public static boolean built_in_licence = false;
    
	public static boolean load_licence = false;
	public static boolean save_licence = false;

    public static String licence_path = "./";
    
    public static boolean debug_keyboard = false;
	public static boolean debug_hexdump = false;

    
	public static boolean enable_menu = false;
	//public static boolean paste_hack = true;
	
	public static boolean altkey_quiet = false;
	public static boolean caps_sends_up_and_down = true;
	public static boolean remap_hash = true;
	public static boolean useLockingKeyState = true;
	
	public static boolean use_rdp5 = true;
	public static int server_bpp = 24;							// Bits per pixel
	public static int Bpp = (server_bpp + 7) / 8;				// Bytes per pixel
	
	public static int bpp_mask =  0xFFFFFF >> 8 * (3 - Bpp);	// Correction value to ensure only the relevant
			                                                    // number of bytes are used for a pixel
    
    public static int imgCount = 0;
    
    
    public static DirectColorModel colour_model = new DirectColorModel(24,0xFF0000,0x00FF00,0x0000FF);
    
    /**
     * Set a new value for the server's bits per pixel
     * @param server_bpp New bpp value
     */
	public static void set_bpp(int server_bpp){
		Options.server_bpp = server_bpp;
		Options.Bpp = (server_bpp + 7) / 8;
		if(server_bpp == 8) bpp_mask = 0xFF;
        else bpp_mask = 0xFFFFFF;
        
        colour_model = new DirectColorModel(24,0xFF0000,0x00FF00,0x0000FF);
	}
	
	
	public static int server_rdp_version;
	
	public static int win_button_size = 0;	/* If zero, disable single app mode */
	public static boolean bitmap_compression = true;
    public static boolean persistent_bitmap_caching = false;
    public static boolean bitmap_caching = false;
    public static boolean precache_bitmaps = false;
    public static boolean polygon_ellipse_orders = false;
	public static boolean sendmotion = true;
	public static boolean orders = true;
	public static boolean encryption = true;
	public static boolean packet_encryption = true;
	public static boolean desktop_save = true;
	public static boolean grab_keyboard = true;
	public static boolean hide_decorations = false;
	public static boolean console_session = false;
	public static boolean owncolmap;
	
	public static boolean use_ssl = false;
	public static boolean map_clipboard = true;
    public static int rdp5_performanceflags =   Rdp.RDP5_NO_CURSOR_SHADOW | Rdp.RDP5_NO_CURSORSETTINGS |
                                                Rdp.RDP5_NO_FULLWINDOWDRAG | Rdp.RDP5_NO_MENUANIMATIONS |
                                                Rdp.RDP5_NO_THEMING | Rdp.RDP5_NO_WALLPAPER;
    public static boolean save_graphics = false;
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -