Added LGPL standard comment, and copyright notices where necessary.
[wine] / include / setupapi.h
1 /*
2  * Copyright (C) 2000 James Hatheway
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __SETUPAPI__
20 #define __SETUPAPI__
21
22 #include "commctrl.h"
23
24 /* Define type for handle to a loaded inf file */
25 typedef PVOID HINF;
26
27 /* Define type for handle to a device information set */
28 typedef PVOID HDEVINFO;
29
30 /* Define type for setup file queue */
31 typedef PVOID HSPFILEQ;
32
33 /* inf structure. */
34 typedef struct _INFCONTEXT
35 {
36    PVOID Inf;
37    PVOID CurrentInf;
38    UINT  Section;
39    UINT  Line;
40 } INFCONTEXT, *PINFCONTEXT;
41
42 typedef UINT (CALLBACK *PSP_FILE_CALLBACK_A)( PVOID Context, UINT Notification,
43                                               UINT Param1, UINT Param2 );
44 typedef UINT (CALLBACK *PSP_FILE_CALLBACK_W)( PVOID Context, UINT Notification,
45                                               UINT Param1, UINT Param2 );
46 #define PSP_FILE_CALLBACK WINELIB_NAME_AW(PSP_FILE_CALLBACK_)
47
48
49 /* Device Information structure (references a device instance that is a member
50    of a device information set) */
51 typedef struct _SP_DEVINFO_DATA
52 {
53    DWORD cbSize;
54    GUID  ClassGuid;
55    DWORD DevInst;   /* DEVINST handle */
56    DWORD Reserved;
57 } SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
58
59 #endif /* __SETUPAPI__ */