Made some more spec file entries optional or unnecessary.
[wine] / dlls / setupapi / setupapi_private.h
1 /*
2  * Copyright 2001 Andreas Mohr
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_PRIVATE_H
20 #define __SETUPAPI_PRIVATE_H
21
22 #include "wine/windef16.h"
23 #include "setupx16.h"
24
25 #define COPYFILEDLGORD  1000
26 #define SOURCESTRORD    500
27 #define DESTSTRORD      501
28 #define PROGRESSORD     502
29
30
31 #define REG_INSTALLEDFILES "System\\CurrentControlSet\\Control\\InstalledFiles"
32 #define REGPART_RENAME "\\Rename"
33 #define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
34
35 typedef struct tagLDD_LIST {
36         LPLOGDISKDESC pldd;
37         struct tagLDD_LIST *next;
38 } LDD_LIST;
39
40 #define INIT_LDD(ldd, LDID) \
41   do { \
42     memset(&(ldd), 0, sizeof(LOGDISKDESC_S)); \
43    (ldd).cbSize = sizeof(LOGDISKDESC_S); \
44    ldd.ldid = LDID; \
45   } while(0)
46
47 typedef struct {
48     HINF16 hInf;
49     HFILE hInfFile;
50     LPSTR lpInfFileName;
51 } INF_FILE;
52
53 extern INF_FILE *InfList;
54 extern WORD InfNumEntries;
55
56 extern LPCSTR IP_GetFileName(HINF16 hInf);
57
58 /* string substitutions */
59
60 struct inf_file;
61 extern const WCHAR *DIRID_get_string( HINF hinf, int dirid );
62 extern unsigned int PARSER_string_substA( struct inf_file *file, const WCHAR *text,
63                                           char *buffer, unsigned int size );
64 extern unsigned int PARSER_string_substW( struct inf_file *file, const WCHAR *text,
65                                           WCHAR *buffer, unsigned int size );
66 extern const WCHAR *PARSER_get_src_root( HINF hinf );
67
68 /* support for Ascii queue callback functions */
69
70 struct callback_WtoA_context
71 {
72     void               *orig_context;
73     PSP_FILE_CALLBACK_A orig_handler;
74 };
75
76 UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR );
77
78 #endif /* __SETUPAPI_PRIVATE_H */