2005-07-01 23:26:01 +00:00
|
|
|
|
/*
|
|
|
|
|
* Copyright 2001 Andreas Mohr
|
2006-08-02 20:45:13 +00:00
|
|
|
|
* Copyright 2005-2006 Herv<EFBFBD> Poussineau
|
2005-07-01 23:26:01 +00:00
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-28 19:20:19 +00:00
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-07-01 23:26:01 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __SETUPAPI_PRIVATE_H
|
|
|
|
|
#define __SETUPAPI_PRIVATE_H
|
|
|
|
|
|
2005-11-26 10:38:42 +00:00
|
|
|
|
#include <wchar.h>
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
2005-11-18 23:19:48 +00:00
|
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
|
#define COM_NO_WINDOWS_H
|
2014-02-07 18:02:02 +00:00
|
|
|
|
|
2007-10-17 13:43:40 +00:00
|
|
|
|
#define COBJMACROS
|
2013-12-27 11:32:40 +00:00
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
|
#include <windef.h>
|
|
|
|
|
#include <winbase.h>
|
2016-07-27 00:48:41 +00:00
|
|
|
|
#include <winuser.h>
|
2014-05-27 20:33:21 +00:00
|
|
|
|
#include <wingdi.h>
|
2016-07-27 00:48:41 +00:00
|
|
|
|
#include <winreg.h>
|
2014-05-27 20:33:21 +00:00
|
|
|
|
#include <winspool.h>
|
2013-05-04 20:43:16 +00:00
|
|
|
|
#include <wincon.h>
|
2016-07-27 00:48:41 +00:00
|
|
|
|
|
|
|
|
|
#include <commdlg.h>
|
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
|
#include <objbase.h>
|
2005-11-06 23:23:45 +00:00
|
|
|
|
#include <cfgmgr32.h>
|
2005-12-15 21:21:38 +00:00
|
|
|
|
#include <regstr.h>
|
2006-10-12 09:01:16 +00:00
|
|
|
|
#include <sddl.h>
|
2005-11-06 23:23:45 +00:00
|
|
|
|
#include <setupapi.h>
|
2014-05-11 19:44:50 +00:00
|
|
|
|
#include <softpub.h>
|
|
|
|
|
#include <mscat.h>
|
2015-08-10 10:52:21 +00:00
|
|
|
|
#include <lzexpand.h>
|
2005-11-06 23:23:45 +00:00
|
|
|
|
#include <shlobj.h>
|
|
|
|
|
#include <wine/unicode.h>
|
|
|
|
|
#define NTOS_MODE_USER
|
2011-08-14 17:31:30 +00:00
|
|
|
|
#include <ndk/rtlfuncs.h>
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
2013-12-27 11:32:40 +00:00
|
|
|
|
#include <wine/debug.h>
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
2006-04-23 11:41:59 +00:00
|
|
|
|
#ifdef __REACTOS__
|
|
|
|
|
#undef __WINESRC__
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-07-27 00:48:41 +00:00
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
#define SETUP_DEVICE_INFO_SET_MAGIC 0xd00ff057
|
2005-12-11 08:11:21 +00:00
|
|
|
|
#define SETUP_CLASS_IMAGE_LIST_MAGIC 0xd00ff058
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
2010-03-29 02:03:41 +00:00
|
|
|
|
#define CMP_MAGIC 0x01234567
|
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
struct DeviceInterface /* Element of DeviceInfo.InterfaceListHead */
|
2005-11-06 23:23:45 +00:00
|
|
|
|
{
|
|
|
|
|
LIST_ENTRY ListEntry;
|
|
|
|
|
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* Link to is parent device */
|
2007-11-10 14:04:55 +00:00
|
|
|
|
struct DeviceInfo *DeviceInfo;
|
2005-11-06 23:23:45 +00:00
|
|
|
|
GUID InterfaceClassGuid;
|
|
|
|
|
|
2007-10-19 23:21:45 +00:00
|
|
|
|
|
2005-11-06 23:23:45 +00:00
|
|
|
|
/* SPINT_ACTIVE : the interface is active/enabled
|
2006-04-13 08:06:45 +00:00
|
|
|
|
* SPINT_DEFAULT: the interface is the default interface for the device class
|
2005-11-06 23:23:45 +00:00
|
|
|
|
* SPINT_REMOVED: the interface is removed
|
|
|
|
|
*/
|
|
|
|
|
DWORD Flags;
|
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
/* Contains the symbolic link of this interface, for example
|
|
|
|
|
* \\?\ACPI#PNP0501#4&2658d0a0&0#{GUID} */
|
2006-08-02 20:45:13 +00:00
|
|
|
|
WCHAR SymbolicLink[ANYSIZE_ARRAY];
|
2005-11-06 23:23:45 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* We don't want to open the .inf file to read only one information in it, so keep a handle to it once it
|
|
|
|
|
* has been already loaded once. Keep also a reference counter */
|
|
|
|
|
struct InfFileDetails
|
|
|
|
|
{
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* Handle to the .inf file */
|
2005-11-06 23:23:45 +00:00
|
|
|
|
HINF hInf;
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* Reference count to this object. Once it raises 0, the .inf file is
|
|
|
|
|
* automatically closed and this memory structure is deleted */
|
2005-11-06 23:23:45 +00:00
|
|
|
|
LONG References;
|
2005-11-09 11:23:19 +00:00
|
|
|
|
|
2006-05-30 16:05:27 +00:00
|
|
|
|
/* Contains the directory name of the .inf file.
|
2006-05-28 12:35:20 +00:00
|
|
|
|
* Points into szData at then end of the structure */
|
|
|
|
|
PCWSTR DirectoryName;
|
2006-05-29 13:32:51 +00:00
|
|
|
|
/* Contains the .inf file name (without directory name).
|
2006-05-28 12:35:20 +00:00
|
|
|
|
* Points into szData at then end of the structure */
|
2006-05-29 13:32:51 +00:00
|
|
|
|
PCWSTR FileName;
|
2006-05-28 12:35:20 +00:00
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
/* Variable size array (contains data for DirectoryName and FileName) */
|
2006-05-28 12:35:20 +00:00
|
|
|
|
WCHAR szData[ANYSIZE_ARRAY];
|
2005-11-06 23:23:45 +00:00
|
|
|
|
};
|
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
struct DriverInfoElement /* Element of DeviceInfoSet.DriverListHead and DeviceInfo.DriverListHead */
|
2005-11-06 23:23:45 +00:00
|
|
|
|
{
|
|
|
|
|
LIST_ENTRY ListEntry;
|
|
|
|
|
|
2006-09-30 20:42:47 +00:00
|
|
|
|
SP_DRVINSTALL_PARAMS Params;
|
2005-12-11 11:27:08 +00:00
|
|
|
|
ULARGE_INTEGER DriverDate;
|
2005-11-06 23:23:45 +00:00
|
|
|
|
SP_DRVINFO_DATA_V2_W Info;
|
|
|
|
|
SP_DRVINFO_DETAIL_DATA_W Details;
|
|
|
|
|
GUID ClassGuid;
|
|
|
|
|
LPWSTR MatchingId;
|
|
|
|
|
struct InfFileDetails *InfFileDetails;
|
|
|
|
|
};
|
|
|
|
|
|
2005-12-15 16:35:15 +00:00
|
|
|
|
struct ClassInstallParams
|
|
|
|
|
{
|
2007-03-14 12:29:18 +00:00
|
|
|
|
PSP_PROPCHANGE_PARAMS PropChangeParams;
|
|
|
|
|
PSP_ADDPROPERTYPAGE_DATA AddPropertyPageData;
|
2005-12-15 16:35:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
struct DeviceInfo /* Element of DeviceInfoSet.ListHead */
|
2005-11-06 23:23:45 +00:00
|
|
|
|
{
|
|
|
|
|
LIST_ENTRY ListEntry;
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* Used when dealing with CM_* functions */
|
|
|
|
|
DEVINST dnDevInst;
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
/* Link to parent DeviceInfoSet */
|
|
|
|
|
struct DeviceInfoSet *set;
|
|
|
|
|
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* Reserved Field of SP_DEVINSTALL_PARAMS_W structure
|
|
|
|
|
* points to a struct DriverInfoElement */
|
2005-11-06 23:23:45 +00:00
|
|
|
|
SP_DEVINSTALL_PARAMS_W InstallParams;
|
|
|
|
|
|
|
|
|
|
/* Information about devnode:
|
2008-01-18 11:51:01 +00:00
|
|
|
|
* - instanceId:
|
2005-11-06 23:23:45 +00:00
|
|
|
|
* "Root\*PNP0501" for example.
|
|
|
|
|
* It doesn't contain the unique ID for the device
|
|
|
|
|
* (points into the Data field at the end of the structure)
|
2008-01-18 11:51:01 +00:00
|
|
|
|
* WARNING: no NULL char exist between instanceId and UniqueId
|
2005-11-06 23:23:45 +00:00
|
|
|
|
* in Data field!
|
|
|
|
|
* - UniqueId
|
|
|
|
|
* "5&1be2108e&0" or "0000"
|
|
|
|
|
* If DICD_GENERATE_ID is specified in creation flags,
|
|
|
|
|
* this unique ID is autogenerated using 4 digits, base 10
|
|
|
|
|
* (points into the Data field at the end of the structure)
|
|
|
|
|
* - DeviceDescription
|
|
|
|
|
* String which identifies the device. Can be NULL. If not NULL,
|
|
|
|
|
* points into the Data field at the end of the structure
|
|
|
|
|
* - ClassGuid
|
2005-11-15 14:29:46 +00:00
|
|
|
|
* Identifies the class of this device. It is GUID_NULL if the
|
|
|
|
|
* device has not been installed
|
2005-11-06 23:23:45 +00:00
|
|
|
|
* - CreationFlags
|
|
|
|
|
* Is a combination of:
|
|
|
|
|
* - DICD_GENERATE_ID
|
|
|
|
|
* the unique ID needs to be generated
|
|
|
|
|
* - DICD_INHERIT_CLASSDRVS
|
|
|
|
|
* inherit driver of the device info set (== same pointer)
|
|
|
|
|
*/
|
2008-01-18 11:51:01 +00:00
|
|
|
|
PCWSTR instanceId;
|
2005-11-06 23:23:45 +00:00
|
|
|
|
PCWSTR UniqueId;
|
|
|
|
|
PCWSTR DeviceDescription;
|
|
|
|
|
GUID ClassGuid;
|
|
|
|
|
DWORD CreationFlags;
|
|
|
|
|
|
|
|
|
|
/* If CreationFlags contains DICD_INHERIT_CLASSDRVS, this list is invalid */
|
|
|
|
|
/* If the driver is not searched/detected, this list is empty */
|
|
|
|
|
LIST_ENTRY DriverListHead; /* List of struct DriverInfoElement */
|
|
|
|
|
|
|
|
|
|
/* List of interfaces implemented by this device */
|
|
|
|
|
LIST_ENTRY InterfaceListHead; /* List of struct DeviceInterface */
|
|
|
|
|
|
2005-12-15 16:35:15 +00:00
|
|
|
|
/* Used by SetupDiGetClassInstallParamsW/SetupDiSetClassInstallParamsW */
|
|
|
|
|
struct ClassInstallParams ClassInstallParams;
|
|
|
|
|
|
2014-10-12 17:13:36 +00:00
|
|
|
|
/* Device property page provider data */
|
|
|
|
|
HMODULE hmodDevicePropPageProvider;
|
|
|
|
|
PVOID pDevicePropPageProvider;
|
|
|
|
|
|
2008-01-18 11:51:01 +00:00
|
|
|
|
/* Variable size array (contains data for instanceId, UniqueId, DeviceDescription) */
|
2005-12-11 11:27:08 +00:00
|
|
|
|
WCHAR Data[ANYSIZE_ARRAY];
|
2005-11-06 23:23:45 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct DeviceInfoSet /* HDEVINFO */
|
|
|
|
|
{
|
2007-11-10 14:04:55 +00:00
|
|
|
|
DWORD magic; /* SETUP_DEVICE_INFO_SET_MAGIC */
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* If != GUID_NULL, only devices of this class can be in the device info set */
|
|
|
|
|
GUID ClassGuid;
|
|
|
|
|
/* Local or distant HKEY_LOCAL_MACHINE registry key */
|
|
|
|
|
HKEY HKLM;
|
|
|
|
|
/* Used when dealing with CM_* functions */
|
|
|
|
|
HMACHINE hMachine;
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
|
|
|
|
/* Reserved Field points to a struct DriverInfoElement */
|
|
|
|
|
SP_DEVINSTALL_PARAMS_W InstallParams;
|
|
|
|
|
|
2006-08-02 20:45:13 +00:00
|
|
|
|
/* List of struct DriverInfoElement (if no driver has been
|
|
|
|
|
* searched/detected, this list is empty) */
|
|
|
|
|
LIST_ENTRY DriverListHead;
|
2005-11-06 23:23:45 +00:00
|
|
|
|
|
2007-11-10 14:04:55 +00:00
|
|
|
|
/* List of struct DeviceInfo */
|
2006-08-02 20:45:13 +00:00
|
|
|
|
LIST_ENTRY ListHead;
|
2007-11-10 14:04:55 +00:00
|
|
|
|
struct DeviceInfo *SelectedDevice;
|
2005-11-27 22:13:00 +00:00
|
|
|
|
|
2005-12-15 16:35:15 +00:00
|
|
|
|
/* Used by SetupDiGetClassInstallParamsW/SetupDiSetClassInstallParamsW */
|
|
|
|
|
struct ClassInstallParams ClassInstallParams;
|
|
|
|
|
|
2014-10-12 17:13:36 +00:00
|
|
|
|
/* Class property page provider data */
|
|
|
|
|
HMODULE hmodClassPropPageProvider;
|
|
|
|
|
PVOID pClassPropPageProvider;
|
|
|
|
|
|
2005-11-27 22:13:00 +00:00
|
|
|
|
/* Contains the name of the remote computer ('\\COMPUTERNAME' for example),
|
|
|
|
|
* or NULL if related to local machine. Points into szData field at the
|
|
|
|
|
* end of the structure */
|
|
|
|
|
PCWSTR MachineName;
|
2006-08-02 20:45:13 +00:00
|
|
|
|
|
|
|
|
|
/* Variable size array (contains data for MachineName) */
|
2005-12-11 11:27:08 +00:00
|
|
|
|
WCHAR szData[ANYSIZE_ARRAY];
|
2005-11-06 23:23:45 +00:00
|
|
|
|
};
|
|
|
|
|
|
2005-12-11 08:11:21 +00:00
|
|
|
|
struct ClassImageList
|
|
|
|
|
{
|
|
|
|
|
DWORD magic; /* SETUP_CLASS_IMAGE_LIST_MAGIC */
|
|
|
|
|
|
2006-10-01 09:05:19 +00:00
|
|
|
|
/* Number of GUIDs contained in Guids and IconIndexes arrays */
|
|
|
|
|
DWORD NumberOfGuids;
|
|
|
|
|
/* Array of GUIDs associated to icons of the image list. Its size
|
|
|
|
|
* is NumberOfGuids and is pointing after the end this structure */
|
|
|
|
|
GUID* Guids;
|
|
|
|
|
/* Array of corresponding icons index in the image list. Its size
|
|
|
|
|
* is NumberOfGuids and is pointing after the end this structure */
|
|
|
|
|
INT* IconIndexes;
|
2005-12-11 08:11:21 +00:00
|
|
|
|
};
|
|
|
|
|
|
2010-01-01 23:44:41 +00:00
|
|
|
|
struct FileLog /* HSPFILELOG */
|
|
|
|
|
{
|
|
|
|
|
DWORD ReadOnly;
|
|
|
|
|
DWORD SystemLog;
|
|
|
|
|
LPWSTR LogName;
|
|
|
|
|
};
|
|
|
|
|
|
2005-11-06 23:23:45 +00:00
|
|
|
|
extern HINSTANCE hInstance;
|
2016-07-27 00:48:41 +00:00
|
|
|
|
extern OSVERSIONINFOEXW OsVersionInfo;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* See: https://msdn.microsoft.com/en-us/library/bb432397(v=vs.85).aspx
|
|
|
|
|
* for more information.
|
|
|
|
|
*/
|
|
|
|
|
extern DWORD GlobalSetupFlags;
|
|
|
|
|
#define PSPGF_NO_BACKUP 0x0002
|
|
|
|
|
#define PSPGF_NONINTERACTIVE 0x0004
|
|
|
|
|
|
2005-11-06 23:23:45 +00:00
|
|
|
|
#define RC_STRING_MAX_SIZE 256
|
2005-07-01 23:26:01 +00:00
|
|
|
|
|
|
|
|
|
#define REG_INSTALLEDFILES "System\\CurrentControlSet\\Control\\InstalledFiles"
|
|
|
|
|
#define REGPART_RENAME "\\Rename"
|
|
|
|
|
#define REG_VERSIONCONFLICT "Software\\Microsoft\\VersionConflictManager"
|
|
|
|
|
|
2007-07-27 09:02:18 +00:00
|
|
|
|
inline static WCHAR *strdupAtoW( const char *str )
|
|
|
|
|
{
|
|
|
|
|
WCHAR *ret = NULL;
|
|
|
|
|
if (str)
|
|
|
|
|
{
|
|
|
|
|
DWORD len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
|
|
|
|
|
if ((ret = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) )))
|
|
|
|
|
MultiByteToWideChar( CP_ACP, 0, str, -1, ret, len );
|
|
|
|
|
}
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
2005-07-01 23:26:01 +00:00
|
|
|
|
/* string substitutions */
|
|
|
|
|
|
|
|
|
|
struct inf_file;
|
2006-04-13 12:16:50 +00:00
|
|
|
|
extern const WCHAR *DIRID_get_string( int dirid );
|
2015-03-20 10:37:55 +00:00
|
|
|
|
extern const WCHAR *PARSER_get_inf_filename( HINF hinf ) DECLSPEC_HIDDEN;
|
|
|
|
|
extern WCHAR *PARSER_get_src_root( HINF hinf ) DECLSPEC_HIDDEN;
|
|
|
|
|
extern WCHAR *PARSER_get_dest_dir( INFCONTEXT *context ) DECLSPEC_HIDDEN;
|
2005-07-01 23:26:01 +00:00
|
|
|
|
|
|
|
|
|
/* support for Ascii queue callback functions */
|
|
|
|
|
|
|
|
|
|
struct callback_WtoA_context
|
|
|
|
|
{
|
|
|
|
|
void *orig_context;
|
|
|
|
|
PSP_FILE_CALLBACK_A orig_handler;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, UINT_PTR, UINT_PTR );
|
|
|
|
|
|
|
|
|
|
/* from msvcrt/sys/stat.h */
|
|
|
|
|
#define _S_IWRITE 0x0080
|
|
|
|
|
#define _S_IREAD 0x0100
|
|
|
|
|
|
2006-06-02 09:06:05 +00:00
|
|
|
|
/* devinst.c */
|
|
|
|
|
|
|
|
|
|
BOOL
|
2007-11-10 14:04:55 +00:00
|
|
|
|
CreateDeviceInfo(
|
2006-06-02 09:06:05 +00:00
|
|
|
|
IN struct DeviceInfoSet *list,
|
|
|
|
|
IN LPCWSTR InstancePath,
|
|
|
|
|
IN LPCGUID pClassGuid,
|
2007-11-10 14:04:55 +00:00
|
|
|
|
OUT struct DeviceInfo **pDeviceInfo);
|
2006-06-02 09:06:05 +00:00
|
|
|
|
|
2009-05-01 07:44:13 +00:00
|
|
|
|
LONG
|
|
|
|
|
SETUP_CreateDevicesList(
|
|
|
|
|
IN OUT struct DeviceInfoSet *list,
|
|
|
|
|
IN PCWSTR MachineName OPTIONAL,
|
|
|
|
|
IN CONST GUID *Class OPTIONAL,
|
|
|
|
|
IN PCWSTR Enumerator OPTIONAL);
|
|
|
|
|
|
2006-06-02 09:06:05 +00:00
|
|
|
|
/* driver.c */
|
|
|
|
|
|
|
|
|
|
struct InfFileDetails *
|
|
|
|
|
CreateInfFileDetails(
|
|
|
|
|
IN LPCWSTR FullInfFileName);
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
|
DereferenceInfFile(struct InfFileDetails* infFile);
|
|
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
|
DestroyDriverInfoElement(struct DriverInfoElement* driverInfo);
|
|
|
|
|
|
|
|
|
|
/* install.c */
|
|
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
|
GetStringField( PINFCONTEXT context, DWORD index, PWSTR *value);
|
|
|
|
|
|
|
|
|
|
/* interface.c */
|
|
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
|
DestroyDeviceInterface(
|
|
|
|
|
struct DeviceInterface* deviceInterface);
|
|
|
|
|
|
|
|
|
|
LONG
|
|
|
|
|
SETUP_CreateInterfaceList(
|
|
|
|
|
struct DeviceInfoSet *list,
|
|
|
|
|
PCWSTR MachineName,
|
|
|
|
|
CONST GUID *InterfaceGuid,
|
|
|
|
|
PCWSTR DeviceInstanceW /* OPTIONAL */,
|
|
|
|
|
BOOL OnlyPresentInterfaces);
|
|
|
|
|
|
|
|
|
|
/* misc.c */
|
|
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
|
GetFunctionPointer(
|
|
|
|
|
IN PWSTR InstallerName,
|
|
|
|
|
OUT HMODULE* ModulePointer,
|
|
|
|
|
OUT PVOID* FunctionPointer);
|
|
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
|
FreeFunctionPointer(
|
|
|
|
|
IN HMODULE ModulePointer,
|
|
|
|
|
IN PVOID FunctionPointer);
|
|
|
|
|
|
2009-12-18 04:37:15 +00:00
|
|
|
|
DWORD
|
|
|
|
|
WINAPI
|
|
|
|
|
pSetupStringFromGuid(LPGUID lpGUID, PWSTR pString, DWORD dwStringLen);
|
|
|
|
|
|
2005-07-01 23:26:01 +00:00
|
|
|
|
DWORD WINAPI CaptureAndConvertAnsiArg(LPCSTR pSrc, LPWSTR *pDst);
|
|
|
|
|
|
2007-07-16 15:32:13 +00:00
|
|
|
|
VOID WINAPI MyFree(LPVOID lpMem);
|
|
|
|
|
LPVOID WINAPI MyMalloc(DWORD dwSize);
|
|
|
|
|
LPVOID WINAPI MyRealloc(LPVOID lpSrc, DWORD dwSize);
|
|
|
|
|
LPWSTR WINAPI DuplicateString(LPCWSTR lpSrc);
|
|
|
|
|
BOOL WINAPI IsUserAdmin(VOID);
|
|
|
|
|
LPWSTR WINAPI MultiByteToUnicode(LPCSTR lpMultiByteStr, UINT uCodePage);
|
|
|
|
|
LPSTR WINAPI UnicodeToMultiByte(LPCWSTR lpUnicodeStr, UINT uCodePage);
|
|
|
|
|
|
2006-06-02 09:06:05 +00:00
|
|
|
|
/* parser.c */
|
2005-12-21 14:43:02 +00:00
|
|
|
|
|
2006-05-28 16:44:52 +00:00
|
|
|
|
typedef BOOL (*FIND_CALLBACK)(LPCWSTR SectionName, PVOID Context);
|
|
|
|
|
BOOL EnumerateSectionsStartingWith(HINF hInf, LPCWSTR pStr, FIND_CALLBACK Callback, PVOID Context);
|
|
|
|
|
|
2005-07-01 23:26:01 +00:00
|
|
|
|
#endif /* __SETUPAPI_PRIVATE_H */
|