source: trunk/src/setupapi/setupapi_private.h@ 8421

Last change on this file since 8421 was 8421, checked in by sandervl, 23 years ago

wine resync

File size: 2.4 KB
Line 
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
39typedef 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
51typedef struct {
52 HINF16 hInf;
53 HFILE hInfFile;
54 LPSTR lpInfFileName;
55} INF_FILE;
56
57extern INF_FILE *InfList;
58extern WORD InfNumEntries;
59
60extern LPCSTR IP_GetFileName(HINF16 hInf);
61
62/* string substitutions */
63
64struct inf_file;
65extern const WCHAR *DIRID_get_string( HINF hinf, int dirid );
66extern unsigned int PARSER_string_substA( struct inf_file *file, const WCHAR *text,
67 char *buffer, unsigned int size );
68extern unsigned int PARSER_string_substW( struct inf_file *file, const WCHAR *text,
69 WCHAR *buffer, unsigned int size );
70extern const WCHAR *PARSER_get_src_root( HINF hinf );
71
72/* support for Ascii queue callback functions */
73
74struct callback_WtoA_context
75{
76 void *orig_context;
77 PSP_FILE_CALLBACK_A orig_handler;
78};
79
80UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR );
81
82#endif /* __SETUPAPI_PRIVATE_H */
Note: See TracBrowser for help on using the repository browser.