Re: Executable enty points incorrectly documented
- From: Jeroen Mostert <jmostert@xxxxxxxxx>
- Date: Thu, 15 Jan 2009 19:53:19 +0100
Kornél Pál wrote:
The first problem in Windows SDK is that WinMain (http://msdn.microsoft.com/en-us/library/ms633559.aspx) is documented if it were an operating system interface while it is merely a C language construct so it has nothing to do with the operating system.[snip]
First of all, this is the documentation for the Win32 API, not the OS internals. A conventional Win32 framework supports a WinMain entry point, just as it supports (say) MAKELPARAM, which is nowhere to be found in any Windows OS.
Second, WinMain isn't language-specific -- there are Pascal environments that use it too, for starters. You cannot avoid having to have some C knowledge to read and understand the API documentation, but this in itself does not make the things described "C language constructs". Even so, the Win32 API does describe things that are C specific -- the aforementioned MAKELPARAM won't be present in other languages, at least not in that form. Again, the documentation targets conventional Win32 frameworks.
Lastly, people who are interested in how their Win32 framework interacts with the OS to get things done are free to look into it themselves (or read a book like Windows Internals) but these details are generally not contained in the MSDN unless they're important for common development scenarios (which having your own entry point is not). The WinMain documentation clearly states:
"The name WinMain is used by convention by many programming frameworks. Depending on the programming framework, the call to the WinMain function can be preceded and followed by additional activities specific to that framework."
--
J.
.
- Follow-Ups:
- Re: Executable enty points incorrectly documented
- From: "Jialiang Ge [MSFT]"
- Re: Executable enty points incorrectly documented
- References:
- Executable enty points incorrectly documented
- From: Kornél Pál
- Executable enty points incorrectly documented
- Prev by Date: Executable enty points incorrectly documented
- Next by Date: Sorry If Wrong Group - PostThreadMessage and WM_COPYDATA.
- Previous by thread: Executable enty points incorrectly documented
- Next by thread: Re: Executable enty points incorrectly documented
- Index(es):
Relevant Pages
|
Loading