...
The Win32 SDK headers make use of type definitions for most of the types involved in Win32 APIs, but the following this noncompliant solution code example demonstrates a const
-correctness bug:
...
Note that many structures in the Win32 API are declared with pointer type definitions but not pointer-to-const
type type definitions (LPPOINT
, LPSIZE
, and others). In these cases, it is suggested that you create your own type definition from the base structure type.
...
Noncompliant Code Example
The following In this noncompliant code example, the declaration of the signal()
function is difficult to read and comprehend:
...