Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
746 B

/**************************************************************************
*
* 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