Windows2003-3790/windows/advcore/gdiplus/test/gpinit.h

39 lines
746 B
C
Raw Permalink Normal View History

2001-01-01 00:00:00 +01:00
/**************************************************************************
*
* Copyright (c) 2000 Microsoft Corporation
*
* Module Name:
*
* Helper for GDI+ initialization
*
* Notes:
*
* An app should check gGdiplusInitHelper.IsValid() in its main function,
* and abort if it returns FALSE.
*
* Created:
*
* 09/25/2000 agodfrey
* Created it.
*
**************************************************************************/
#ifndef _GPINIT_H
#define _GPINIT_H
class GdiplusInitHelper
{
public:
GdiplusInitHelper();
~GdiplusInitHelper();
BOOL IsValid() { return Valid; }
private:
ULONG_PTR gpToken;
BOOL Valid;
};
extern GdiplusInitHelper gGdiplusInitHelper;
#endif