2000-07-08 18:27:03 +00:00
|
|
|
|
/*
|
|
|
|
|
* SetupAPI stubs
|
|
|
|
|
*
|
2002-03-09 23:29:33 +00:00
|
|
|
|
* Copyright 2000 James Hatheway
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2000-07-08 18:27:03 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
|
#include "wine/debug.h"
|
2000-07-08 18:27:03 +00:00
|
|
|
|
#include "windef.h"
|
2003-09-05 23:08:26 +00:00
|
|
|
|
#include "winbase.h"
|
|
|
|
|
#include "wingdi.h"
|
|
|
|
|
#include "winuser.h"
|
|
|
|
|
#include "winnls.h"
|
2003-09-11 02:58:46 +00:00
|
|
|
|
#include "winreg.h"
|
2000-11-06 20:24:43 +00:00
|
|
|
|
#include "setupapi.h"
|
|
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
|
2000-07-08 18:27:03 +00:00
|
|
|
|
|
2001-01-17 20:17:46 +00:00
|
|
|
|
/***********************************************************************
|
2002-04-03 02:37:09 +00:00
|
|
|
|
* TPWriteProfileString (SETUPX.62)
|
2001-01-17 20:17:46 +00:00
|
|
|
|
*/
|
2002-04-02 02:57:50 +00:00
|
|
|
|
BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
|
2001-01-17 20:17:46 +00:00
|
|
|
|
{
|
2002-04-02 02:57:50 +00:00
|
|
|
|
FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
|
|
|
|
|
return TRUE;
|
2000-11-06 20:24:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2002-04-03 02:37:09 +00:00
|
|
|
|
* suErrorToIds (SETUPX.61)
|
2000-11-06 20:24:43 +00:00
|
|
|
|
*/
|
2002-04-02 02:57:50 +00:00
|
|
|
|
DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
|
2000-11-06 20:24:43 +00:00
|
|
|
|
{
|
2002-04-02 02:57:50 +00:00
|
|
|
|
FIXME( "%x %x: stub\n", w1, w2 );
|
|
|
|
|
return 0;
|
2000-11-06 20:24:43 +00:00
|
|
|
|
}
|
2002-10-10 19:23:57 +00:00
|
|
|
|
|
2002-10-29 21:31:26 +00:00
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiOpenClassRegKeyExW (SETUPAPI.@)
|
|
|
|
|
*
|
|
|
|
|
* WINAPI in description not given
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
HKEY WINAPI SetupDiOpenClassRegKeyExW(LPGUID class, DWORD access, DWORD flags, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return INVALID_HANDLE_VALUE;
|
|
|
|
|
}
|
|
|
|
|
|
2002-10-29 21:31:26 +00:00
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiGetClassDescriptionExW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
BOOL WINAPI SetupDiGetClassDescriptionExW (GUID* class, LPCWSTR desc, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
2002-10-29 21:31:26 +00:00
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiClassNameFromGuidExW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
BOOL WINAPI SetupDiClassNameFromGuidExW (GUID* class, LPCWSTR desc, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
2002-10-29 21:31:26 +00:00
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiBuildClassInfoListExW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
BOOL WINAPI SetupDiBuildClassInfoListExW(DWORD flags, LPGUID list, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
2002-10-29 21:31:26 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiGetDeviceInfoListDetailW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_DATA devinfo_data )
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
2002-10-29 21:31:26 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiCreateDeviceInfoListExW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
HDEVINFO WINAPI SetupDiCreateDeviceInfoListExW(LPGUID class, HWND parend, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
2002-10-29 21:31:26 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* (SETUPAPI.@)
|
|
|
|
|
*
|
|
|
|
|
* NO WINAPI in description given
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
HDEVINFO WINAPI SetupDiGetClassDevsExW(LPGUID class, LPCWSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
2002-10-29 21:31:26 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupDiClassGuidsFromNameExW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
BOOL WINAPI SetupDiClassGuidsFromNameExW(LPCWSTR class, LPGUID list, DWORD size, PDWORD required, LPCWSTR machine, PVOID reserved)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
2002-10-29 21:31:26 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* CM_Connect_MachineW (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
DWORD WINAPI CM_Connect_MachineW(LPCWSTR name, void * machine)
|
|
|
|
|
{
|
|
|
|
|
#define CR_SUCCESS 0x00000000
|
|
|
|
|
#define CR_ACCESS_DENIED 0x00000033
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return CR_ACCESS_DENIED;
|
|
|
|
|
}
|
2002-10-29 21:31:26 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* CM_Disconnect_Machine (SETUPAPI.@)
|
|
|
|
|
*/
|
2002-10-10 19:23:57 +00:00
|
|
|
|
DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
|
|
|
|
|
{
|
|
|
|
|
FIXME("\n");
|
|
|
|
|
return CR_SUCCESS;
|
|
|
|
|
|
|
|
|
|
}
|
2003-04-02 23:19:14 +00:00
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* SetupCopyOEMInfA (SETUPAPI.@)
|
|
|
|
|
*/
|
|
|
|
|
BOOL WINAPI SetupCopyOEMInfA(LPCSTR sourceinffile, LPCSTR sourcemedialoc,
|
|
|
|
|
DWORD mediatype, DWORD copystyle, LPSTR destinfname,
|
|
|
|
|
DWORD destnamesize, PDWORD required,
|
|
|
|
|
LPSTR destinfnamecomponent)
|
|
|
|
|
{
|
|
|
|
|
FIXME("stub: source %s location %s<>...\n",sourceinffile, sourcemedialoc);
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
* InstallHinfSection (SETUPAPI.@)
|
|
|
|
|
*/
|
|
|
|
|
void WINAPI InstallHinfSection(HWND hwnd, HINSTANCE handle, LPCSTR cmdline, INT show)
|
|
|
|
|
{
|
|
|
|
|
FIXME("stub, hwnd %p, handle %p, cmdline %s\n", hwnd, handle, debugstr_a(cmdline));
|
|
|
|
|
}
|