1. A method of invoking a portable executable (PE) through a platform-independent interface, comprising: processing an export table in the PE to obtain the function names used in the PE; processing a resources table in the PE to obtain a user interface used in the PE; generating a platform-independent user interface based on the user interface used in the PE; and invoking at least one of the functions used in the PE through the platform-independent user interface.