~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/setupapi/setupapi_private.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 17  */
 18 
 19 #ifndef __SETUPAPI_PRIVATE_H
 20 #define __SETUPAPI_PRIVATE_H
 21 
 22 #include <windef.h>
 23 #include <winuser.h>
 24 
 25 #define COPYFILEDLGORD  1000
 26 #define SOURCESTRORD    500
 27 #define DESTSTRORD      501
 28 #define PROGRESSORD     502
 29 
 30 #define IDPROMPTFORDISK   1001
 31 #define IDC_FILENEEDED    503
 32 #define IDC_INFO          504
 33 #define IDC_COPYFROM      505
 34 #define IDC_PATH          506
 35 #define IDC_RUNDLG_BROWSE 507
 36 
 37 #define IDS_PROMPTDISK  508
 38 #define IDS_UNKNOWN     509
 39 #define IDS_COPYFROM    510
 40 #define IDS_INFO        511
 41 
 42 #define REG_INSTALLEDFILES "System\\CurrentControlSet\\Control\\InstalledFiles"
 43 #define REGPART_RENAME "\\Rename"
 44 #define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
 45 
 46 extern HINSTANCE SETUPAPI_hInstance;
 47 
 48 static inline WCHAR *strdupW( const WCHAR *str )
 49 {
 50     WCHAR *ret = NULL;
 51     if (str)
 52     {
 53         int len = (lstrlenW(str) + 1) * sizeof(WCHAR);
 54         if ((ret = HeapAlloc( GetProcessHeap(), 0, len ))) memcpy( ret, str, len );
 55     }
 56     return ret;
 57 }
 58 
 59 static inline char *strdupWtoA( const WCHAR *str )
 60 {
 61     char *ret = NULL;
 62     if (str)
 63     {
 64         DWORD len = WideCharToMultiByte( CP_ACP, 0, str, -1, NULL, 0, NULL, NULL );
 65         if ((ret = HeapAlloc( GetProcessHeap(), 0, len )))
 66             WideCharToMultiByte( CP_ACP, 0, str, -1, ret, len, NULL, NULL );
 67     }
 68     return ret;
 69 }
 70 
 71 static inline WCHAR *strdupAtoW( const char *str )
 72 {
 73     WCHAR *ret = NULL;
 74     if (str)
 75     {
 76         DWORD len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
 77         if ((ret = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) )))
 78             MultiByteToWideChar( CP_ACP, 0, str, -1, ret, len );
 79     }
 80     return ret;
 81 }
 82 
 83 /* string substitutions */
 84 
 85 struct inf_file;
 86 extern const WCHAR *DIRID_get_string( int dirid );
 87 extern unsigned int PARSER_string_substA( const struct inf_file *file, const WCHAR *text,
 88                                           char *buffer, unsigned int size );
 89 extern const WCHAR *PARSER_get_inf_filename( HINF hinf );
 90 extern WCHAR *PARSER_get_src_root( HINF hinf );
 91 extern WCHAR *PARSER_get_dest_dir( INFCONTEXT *context );
 92 
 93 /* support for Ascii queue callback functions */
 94 
 95 struct callback_WtoA_context
 96 {
 97     void               *orig_context;
 98     PSP_FILE_CALLBACK_A orig_handler;
 99 };
100 
101 UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR );
102 
103 /* from msvcrt/sys/stat.h */
104 #define _S_IWRITE 0x0080
105 #define _S_IREAD  0x0100
106 
107 extern OSVERSIONINFOW OsVersionInfo;
108 
109 extern BOOL create_fake_dll( const WCHAR *name, const WCHAR *source );
110 
111 #endif /* __SETUPAPI_PRIVATE_H */
112 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.