Calico
|
Redirects the Windows entry point functions to the standard C entry point functions. More...
Classes | |
struct | wmain_args_type |
Type of wmain_args . More... | |
Functions | |
int | main (int argc, char **argv) |
Declaration of the standard C entry point. More... | |
int | show_console (void) |
Displays a console for the program if it does not already exist. More... | |
Variables | |
struct wmain_args_type | wmain_args |
Stores the original arguments provided by the Windows entry points. More... | |
Redirects the Windows entry point functions to the standard C entry point functions.
The nonstandard Windows entry points, wmain
and wWinMain
, are redirected to the standard C entry point main
and the program arguments in argv
are converted to UTF-8.
The winentry.c
file must be compiled and linked with the program for this to work.
If the program is to have a graphic user interface, define the GUI
macro.
Note: Some of the code here have yet to be tested.
int main | ( | int | argc, |
char ** | argv | ||
) |
Declaration of the standard C entry point.
Note that this is not a definition. The library user is expected to supply this function.
int show_console | ( | void | ) |
Displays a console for the program if it does not already exist.
0
if it succeeds; nonzero otherwise. struct wmain_args_type wmain_args |
Stores the original arguments provided by the Windows entry points.
This variable is set before main
is executed.