1 module directx.d2derr;
2 /*=========================================================================*\
3 
4     Copyright (c) Microsoft Corporation.  All rights reserved.
5 
6 \*=========================================================================*/
7 
8 version(Windows):
9 
10 import directx.com;
11 
12 /*=========================================================================*\
13     D2D Status Codes
14 \*=========================================================================*/
15 
16 enum FACILITY_D2D = 0x899;
17 
18 HRESULT MAKE_D2DHR(alias sev, T)(T code) {
19 	return MAKE_HRESULT(sev, FACILITY_D2D, code);
20 }
21 
22 HRESULT MAKE_D2DHR_ERR(T)(T code) {
23 	return MAKE_D2DHR(1, code);
24 }
25 
26 //+----------------------------------------------------------------------------
27 //
28 // D2D error codes
29 //
30 //------------------------------------------------------------------------------
31 
32 //
33 //  Error codes shared with WINCODECS
34 //
35 
36 //
37 // The pixel format is not supported.
38 //
39 //alias D2DERR_UNSUPPORTED_PIXEL_FORMAT = WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT;
40 
41 //
42 // Error codes that were already returned in prior versions and were part of the
43 // MIL facility.
44 
45 //
46 // Error codes mapped from WIN32 where there isn't already another HRESULT based
47 // define
48 //
49 
50 //
51 // The supplied buffer was too small to accommodate the data.
52 //
53 //alias D2DERR_INSUFFICIENT_BUFFER =         HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
54 
55 //
56 // The file specified was not found.
57 //
58 //alias D2DERR_FILE_NOT_FOUND =              HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
59 
60 //
61 // D2D specific codes now live in winerror.h
62 //
63 
64 // some stuff from winerror.h
65 
66 enum D2DERR_RECREATE_TARGET           = 0x8899000CL;