Package org.boris.pecoff4j

Examples of org.boris.pecoff4j.ResourceDirectory


            ResourceEntry e = parent.get(i);
            if (id == -1 || id == e.getId()) {
                if (e.getData() != null)
                    entries.add(e);
                else {
                    ResourceDirectory rd = e.getDirectory();
                    if (rd != null) {
                        if (type != -1)
                            type = -1;
                        else if (name != -1)
                            name = -1;
View Full Code Here


public class IconExtractor
{
    public static void extract(File pecoff, File outputDir) throws IOException {
        PE pe = PEParser.parse(pecoff);
        ResourceDirectory rd = pe.getImageData().getResourceTable();
        if (rd == null)
            return;
        ResourceEntry[] entries = ResourceHelper.findResources(rd,
                ResourceType.GROUP_ICON);
        for (int i = 0; i < entries.length; i++) {
View Full Code Here

    }

    private static void setIni(String exe, String ini) throws IOException {
        PE pe = PEParser.parse(exe);
        byte[] inib = IO.toBytes(new File(ini));
        ResourceDirectory rd = pe.getImageData().getResourceTable();
        if (rd != null) {

        }
    }
View Full Code Here

    }

    private static void setSplash(String exe, String splash) throws IOException {
        PE pe = PEParser.parse(exe);
        byte[] spb = IO.toBytes(new File(splash));
        ResourceDirectory rd = pe.getImageData().getResourceTable();

    }
View Full Code Here

TOP

Related Classes of org.boris.pecoff4j.ResourceDirectory

Copyright © 2018 www.massapicom. 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.