The documentation for a function is broken down into several sections:
Describes what the function is used for. This section will also show information about whether the function is depreciated, or may be unavailable in future versions.
Shows the declaration of the function from the appropriate source header. It is a quick reference to the function's signature.
Explains each of the parameters, whether the parameter is input or output, and other important considerations.
This section explains the result of the function call, including how to detect errors, and what additional information is available. (For example, this section will state explicitly if GetLastError
will provide additional error handling information.)
Covers any additional information required to use the function, such as, information about supporting functions, obtaining appropriate handles, and disposal of resources.
If this section is available, it has an example of the appropriate use of the function to use as a starting point for implementation.
Gives important information about prerequisites for calling the function. This information includes:
CreateWindow
function has been supported since Windows 1.0, but the documentation only shows that it has been supported since Windows 2000. The online version of the MSDN documentation does not indicate that any function was supported in a version of Windows prior to 2000, even though many were. For legacy development, you will need to consult an older version of the SDK documentation, such as might have been shipped on an MSDN CD-ROM. Or, just look in the header files.)#include
that contains the function declaration. If the function isn't available in a header, this will show information about the procedure to call the function (usually calling GetProcAddress
to do run-time dynamic linking).W
or A
suffix (respectively).