UMENTRYABS
Use the UMENTRYABS macro to specify an absolute entry point.
The entry point in your source code does not, in general, match the absolute entry point in your binary. By default, the entry points and absolute entry points used by the Build utility depend on the type of product being built (specified by the UMTYPE macro) and on whether ASCII or Unicode is being used as the character set (specified by the USE_MFCUNICODE macro).
The following table lists the standard values of the entry points and the absolute entry points.
Note The entry points are case-sensitive.
UMTYPE | Entry Point | Absolute Entry Point |
---|---|---|
windows (ASCII) |
winmain |
WinMainCRTStartup |
windows (Unicode) |
wwinmain |
wWinMainCRTStartup |
console (ASCII) |
main |
mainCRTStartup |
console (Unicode) |
wmain |
wmainCRTStartup |
nt |
NtProcessStartup |
|
ntss |
NtProcessStartup |
Use the UMENTRYABS macro to override the absolute entry point. For example, you might want the absolute entry point to be main instead of mainCRTStartup. In this case, you would use the following setting:
UMENTRYABS=main
Send comments about this topic to Microsoft
Build date: 5/3/2011