1 /*
2  * @(#)jawt_md.h	1.8 05/11/17
3  *
4  * This C header file is derived from Sun Microsystem's Java SDK provided C header file
5  * with the following copyright notice:
6  *
7  *   Copyright 2006 Sun Microsystems, Inc. All rights reserved.
8  *   SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9  *
10  * This version has complex comments removed and does not contain inlined algorithms etc, if any existed.
11  *
12  * The original C header file was included to JOGL on Sat Jun 21 02:10:30 2008
13  * (commit cbc45e816f4ee81031bffce19a99550681462a24) by Sun Microsystem's staff and were approved.
14  *
15  * This C header file is included due to ensure compatibility with - and invocation of the JAWT protocol.
16  * They are processed by GlueGen to create a Java binding for JAWT invocation only.
17  *
18  * http://ftp.resource.org/courts.gov/c/F3/387/387.F3d.522.03-5400.html (36)
19  * "Atari Games Corp. v. Nintendo of Am., Inc., Nos. 88-4805 & 89-0027, 1993 WL 207548, at *1 (N.D.Cal. May 18, 1993) ("Atari III")
20  * ("Program code that is strictly necessary to achieve current compatibility presents a merger problem, almost by definition,
21  * and is thus excluded from the scope of any copyright.")."
22  *
23  * http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2009:111:0016:0022:EN:PDF
24  * L 111/17 (10) and (15)
25  */
26 
27 #ifndef _JAVASOFT_JAWT_MD_H_
28 #define _JAVASOFT_JAWT_MD_H_
29 
30 #include <windows.h>
31 #include "jawt.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 typedef struct jawt_Win32DrawingSurfaceInfo {
38     /**
39     union {
40         HWND hwnd;
41         HBITMAP hbitmap;
42         void* pbits;
43     }; */
44     HWND handle;
45 
46     HDC hdc;
47     HPALETTE hpalette;
48 } JAWT_Win32DrawingSurfaceInfo;
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* !_JAVASOFT_JAWT_MD_H_ */
55