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 | #ifdef __WIN32OS2__
|
---|
26 | //#include <string.h>
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | #define COPYFILEDLGORD 1000
|
---|
30 | #define SOURCESTRORD 500
|
---|
31 | #define DESTSTRORD 501
|
---|
32 | #define PROGRESSORD 502
|
---|
33 |
|
---|
34 |
|
---|
35 | #define REG_INSTALLEDFILES "System\\CurrentControlSet\\Control\\InstalledFiles"
|
---|
36 | #define REGPART_RENAME "\\Rename"
|
---|
37 | #define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
|
---|
38 |
|
---|
39 | typedef struct tagLDD_LIST {
|
---|
40 | LPLOGDISKDESC pldd;
|
---|
41 | struct tagLDD_LIST *next;
|
---|
42 | } LDD_LIST;
|
---|
43 |
|
---|
44 | #define INIT_LDD(ldd, LDID) \
|
---|
45 | do { \
|
---|
46 | memset(&(ldd), 0, sizeof(LOGDISKDESC_S)); \
|
---|
47 | (ldd).cbSize = sizeof(LOGDISKDESC_S); \
|
---|
48 | ldd.ldid = LDID; \
|
---|
49 | } while(0)
|
---|
50 |
|
---|
51 | /* string substitutions */
|
---|
52 |
|
---|
53 | struct inf_file;
|
---|
54 | extern const WCHAR *DIRID_get_string( HINF hinf, int dirid );
|
---|
55 | extern unsigned int PARSER_string_substA( struct inf_file *file, const WCHAR *text,
|
---|
56 | char *buffer, unsigned int size );
|
---|
57 | extern unsigned int PARSER_string_substW( struct inf_file *file, const WCHAR *text,
|
---|
58 | WCHAR *buffer, unsigned int size );
|
---|
59 | extern const WCHAR *PARSER_get_src_root( HINF hinf );
|
---|
60 |
|
---|
61 | /* support for Ascii queue callback functions */
|
---|
62 |
|
---|
63 | struct callback_WtoA_context
|
---|
64 | {
|
---|
65 | void *orig_context;
|
---|
66 | PSP_FILE_CALLBACK_A orig_handler;
|
---|
67 | };
|
---|
68 |
|
---|
69 | UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR );
|
---|
70 |
|
---|
71 | #endif /* __SETUPAPI_PRIVATE_H */
|
---|