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