
Source to Demonstrate the MS memory leak under Win95b:

#include <windows.h>

int colconstants[] = 
{
	COLOR_DESKTOP,
	COLOR_ACTIVECAPTION,
	COLOR_INACTIVECAPTION,
	COLOR_CAPTIONTEXT,
	COLOR_INACTIVECAPTIONTEXT
};

COLORREF cols[5];

int WINAPI WinMain(HINSTANCE a, HINSTANCE b, LPSTR c, int d)
{
	int i;

	for (i = 0; i < 5; i++)
		cols[i] = GetSysColor(colconstants[i]);

	for (i = 0; i < 500; i++)
	{
		SetSysColors(5, (int *) &colconstants, cols);
		Sleep(1000);
	}
	return 0;
}
