~jterrell/nunitv2/nunitv2

« back to all changes in this revision

Viewing changes to tools/WiX/sdk/inc/gdiputil.h

  • Committer: Charlie Poole
  • Date: 2012-02-02 01:55:11 UTC
  • mfrom: (3368.1.11 work)
  • Revision ID: charlie@nunit.org-20120202015511-0sspxs5miu16uzse
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-------------------------------------------------------------------------------------------------
 
2
// <copyright file="gdiputil.h" company="Microsoft">
 
3
//    Copyright (c) Microsoft Corporation.  All rights reserved.
 
4
//    
 
5
//    The use and distribution terms for this software are covered by the
 
6
//    Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
 
7
//    which can be found in the file CPL.TXT at the root of this distribution.
 
8
//    By using this software in any fashion, you are agreeing to be bound by
 
9
//    the terms of this license.
 
10
//    
 
11
//    You must not remove this notice, or any other, from this software.
 
12
// </copyright>
 
13
// 
 
14
// <summary>
 
15
//    GDI+ helper functions.
 
16
// </summary>
 
17
//-------------------------------------------------------------------------------------------------
 
18
 
 
19
#pragma once
 
20
 
 
21
#define ExitOnGdipFailure(g, x, s) { x = GdipHresultFromStatus(g); if (FAILED(x)) { Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace(x, s); goto LExit; } }
 
22
#define ExitOnGdipFailure1(g, x, f, s) { x = GdipHresultFromStatus(g); if (FAILED(x)) { Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace1(x, f, s); goto LExit; } }
 
23
#define ExitOnGdipFailure2(g, x, f, s, t) { x = GdipHresultFromStatus(g); if (FAILED(x)) { Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace2(x, f, s, t); goto LExit; } }
 
24
 
 
25
#ifdef __cplusplus
 
26
extern "C" {
 
27
#endif
 
28
 
 
29
HRESULT DAPI GdipBitmapFromResource(
 
30
    __in_opt HINSTANCE hinst,
 
31
    __in_z LPCSTR szId,
 
32
    __out Gdiplus::Bitmap **ppBitmap
 
33
    );
 
34
 
 
35
HRESULT DAPI GdipBitmapFromFile(
 
36
    __in_z LPCWSTR wzFileName,
 
37
    __out Gdiplus::Bitmap **ppBitmap
 
38
    );
 
39
 
 
40
HRESULT DAPI GdipHresultFromStatus(
 
41
    __in Gdiplus::Status gs
 
42
    );
 
43
 
 
44
#ifdef __cplusplus
 
45
}
 
46
#endif