diff options
Diffstat (limited to 'src/dutil/inc/gdiputil.h')
-rw-r--r-- | src/dutil/inc/gdiputil.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/dutil/inc/gdiputil.h b/src/dutil/inc/gdiputil.h new file mode 100644 index 00000000..3708053c --- /dev/null +++ b/src/dutil/inc/gdiputil.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | |||
5 | #define ExitOnGdipFailure(g, x, s, ...) { x = GdipHresultFromStatus(g); if (FAILED(x)) { Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace(x, s, __VA_ARGS__); goto LExit; } } | ||
6 | |||
7 | #ifdef __cplusplus | ||
8 | extern "C" { | ||
9 | #endif | ||
10 | |||
11 | HRESULT DAPI GdipInitialize( | ||
12 | __in const Gdiplus::GdiplusStartupInput* pInput, | ||
13 | __out ULONG_PTR* pToken, | ||
14 | __out_opt Gdiplus::GdiplusStartupOutput *pOutput | ||
15 | ); | ||
16 | |||
17 | void DAPI GdipUninitialize( | ||
18 | __in ULONG_PTR token | ||
19 | ); | ||
20 | |||
21 | HRESULT DAPI GdipBitmapFromResource( | ||
22 | __in_opt HINSTANCE hinst, | ||
23 | __in_z LPCSTR szId, | ||
24 | __out Gdiplus::Bitmap **ppBitmap | ||
25 | ); | ||
26 | |||
27 | HRESULT DAPI GdipBitmapFromFile( | ||
28 | __in_z LPCWSTR wzFileName, | ||
29 | __out Gdiplus::Bitmap **ppBitmap | ||
30 | ); | ||
31 | |||
32 | HRESULT DAPI GdipHresultFromStatus( | ||
33 | __in Gdiplus::Status gs | ||
34 | ); | ||
35 | |||
36 | #ifdef __cplusplus | ||
37 | } | ||
38 | #endif | ||