org.eclipse.pde.internal.swt.tools
Class IconExe

java.lang.Object
  extended by org.eclipse.pde.internal.swt.tools.IconExe

public class IconExe
extends java.lang.Object

Customize the icon of a Windows exe WARNING! This class is not part of SWT API. It is NOT API. It is an internal tool that may be changed or removed at anytime. Based on MSDN "An In-Depth Look into the Win32 Portable Executable File Format". Win x64 support (Bug #238001) based on MSDN "x64 Primer: Everything You Need To Know To Start Programming 64-Bit Windows Systems".


Nested Class Summary
static class IconExe.BITMAPINFOHEADER
           
static class IconExe.CURSORDIR
           
static class IconExe.FileFormat
           
static class IconExe.ICONRESDIR
           
static class IconExe.IconResInfo
           
static class IconExe.IMAGE_DATA_DIRECTORY
           
static class IconExe.IMAGE_DOS_HEADER
           
static class IconExe.IMAGE_FILE_HEADER
           
static class IconExe.IMAGE_NT_HEADERS
           
static class IconExe.IMAGE_OPTIONAL_HEADER
           
static class IconExe.IMAGE_RESOURCE_DATA_ENTRY
           
static class IconExe.IMAGE_RESOURCE_DIRECTORY
           
static class IconExe.IMAGE_RESOURCE_DIRECTORY_ENTRY
           
static class IconExe.IMAGE_SECTION_HEADER
           
static class IconExe.NEWHEADER
           
static class IconExe.RESDIR
           
 
Field Summary
static java.lang.String VERSION
           
 
Constructor Summary
IconExe()
           
 
Method Summary
static void main(java.lang.String[] args)
          Replace the Desktop icons provided in the Windows executable program with matching icons provided by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

IconExe

public IconExe()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Replace the Desktop icons provided in the Windows executable program with matching icons provided by the user. Takes 2 arguments argument 0: the Windows executable e.g c:/eclipse/eclipse.exe argument 1: The .ico file to write to the given executable e.g. c:/myApp.ico Note 1. Write access to the executable program is required. As a result, that program must not be currently running or edited elsewhere. Note 2. The Eclipse 3.4 launcher requires an .ico file with the following 7 images (in any order). 1. 48x48, 32 bit (RGB / Alpha Channel) 2. 32x32, 32 bit (RGB / Alpha Channel) 3. 16x16, 32 bit (RGB / Alpha Channel) 4. 48x48, 8 bit (256 colors) 5. 32x32, 8 bit (256 colors) 6. 24x24, 8 bit (256 colors) 7. 16x16, 8 bit (256 colors) A user icon matching exactly the width/height/depth of an executable icon will be written to the executable and will replace that executable icon. If an executable icon does not match a user icon, it is silently left as is. Note 3. This function modifies the content of the executable program and may cause its corruption.

Throws:
java.lang.Exception


Copyright © 2008-2011. All Rights Reserved.