PRWIN9101002: GetSystemPaletteUse Function Parameters Warning

ID Number: Q68228

3.00

WINDOWS

buglist3.00 fixlist3.10

Summary:

PROBLEM ID: WIN9101002

SYMPTOMS

When developing an application that calls GetSystemPaletteUse, the

Microsoft C Compiler prints the following message:

Warning C4021 'GetSystemPaletteUse': too few actual parameters.

CAUSE

The prototype of the GetSystemPaletteUse function in the WINDOWS.H

header file, included in the Windows Software Development Kit (SDK)

version 3.0, is incorrect.

RESOLUTION

Microsoft has confirmed this to be a problem in the Windows SDK

version 3.0. To avoid this problem, modify the prototype in

WINDOWS.H to read as follows:

WORD FAR PASCAL GetSystemPaletteUse(HDC);

The prototypes and descriptions given in the documentation are

correct.

This problem was corrected in the Windows SDK version 3.1.

Additional reference words: 3.00