Release 941107
[wine] / include / class.h
1 /*
2  * Window classes definitions
3  *
4  * Copyright 1993 Alexandre Julliard
5  */
6
7 #ifndef CLASS_H
8 #define CLASS_H
9
10 #include "windows.h"
11
12 #define CLASS_MAGIC   0x4b4e      /* 'NK' */
13
14 #pragma pack(1)
15
16   /* !! Don't change this structure (see GetClassLong()) */
17 typedef struct tagCLASS
18 {
19     HCLASS       hNext;         /* Next class */
20     WORD         wMagic;        /* Magic number (must be CLASS_MAGIC) */
21     ATOM         atomName;      /* Name of the class */
22     HANDLE       hdce;          /* Class DCE (if CS_CLASSDC) */
23     WORD         cWindows;      /* Count of existing windows of this class */
24     WNDCLASS     wc WINE_PACKED;  /* Class information */
25     WORD         wExtra[1];     /* Class extra bytes */
26 } CLASS;
27
28 #pragma pack(4)
29
30
31 HCLASS CLASS_FindClassByName( char * name, WORD hinstance, CLASS **ptr );
32 CLASS * CLASS_FindClassPtr( HCLASS hclass );
33
34
35 #endif  /* CLASS_H */