Extracting icons from an executable
To extract icons from an executable, you must use ExtractIcon API function. It gets 3 parameters:
Instance - Instance of the application
FileName - Name of the executable. Must be a PChar
NumIcon - Number of the icon to be retreaved. If it's Word(-1), the function returns the number of icons in the executable.
Download an example.
How to Get Dos Environment
To get DOS Environment, you must use GetDosEnvironment API Function.It returns a PChar that can be parsed. Download an example.

0 Comments:
Post a Comment
<< Home