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

  1. /**************************************************************************
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * Helper for GDI+ initialization
  8. *
  9. * Notes:
  10. *
  11. * An app should check gGdiplusInitHelper.IsValid() in its main function,
  12. * and abort if it returns FALSE.
  13. *
  14. * Created:
  15. *
  16. * 09/25/2000 agodfrey
  17. * Created it.
  18. *
  19. **************************************************************************/
  20. #ifndef _GPINIT_H
  21. #define _GPINIT_H
  22. class GdiplusInitHelper
  23. {
  24. public:
  25. GdiplusInitHelper();
  26. ~GdiplusInitHelper();
  27. BOOL IsValid() { return Valid; }
  28. private:
  29. ULONG_PTR gpToken;
  30. BOOL Valid;
  31. };
  32. extern GdiplusInitHelper gGdiplusInitHelper;
  33. #endif