2000-07-08 20:27:03 +02:00
|
|
|
/*
|
|
|
|
* SetupAPI stubs
|
|
|
|
*
|
2002-03-10 00:29:33 +01: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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2000-07-08 20:27:03 +02:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2000-07-08 20:27:03 +02:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "winnls.h"
|
2003-09-11 04:58:46 +02:00
|
|
|
#include "winreg.h"
|
2000-11-06 21:24:43 +01:00
|
|
|
#include "setupapi.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
|
2000-07-08 20:27:03 +02:00
|
|
|
|
2001-01-17 21:17:46 +01:00
|
|
|
/***********************************************************************
|
2002-04-03 04:37:09 +02:00
|
|
|
* TPWriteProfileString (SETUPX.62)
|
2001-01-17 21:17:46 +01:00
|
|
|
*/
|
2002-04-02 04:57:50 +02:00
|
|
|
BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
|
2001-01-17 21:17:46 +01:00
|
|
|
{
|
2002-04-02 04:57:50 +02:00
|
|
|
FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
|
|
|
|
return TRUE;
|
2000-11-06 21:24:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2002-04-03 04:37:09 +02:00
|
|
|
* suErrorToIds (SETUPX.61)
|
2000-11-06 21:24:43 +01:00
|
|
|
*/
|
2002-04-02 04:57:50 +02:00
|
|
|
DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
|
2000-11-06 21:24:43 +01:00
|
|
|
{
|
2002-04-02 04:57:50 +02:00
|
|
|
FIXME( "%x %x: stub\n", w1, w2 );
|
|
|
|
return 0;
|
2000-11-06 21:24:43 +01:00
|
|
|
}
|
2002-10-10 21:23:57 +02:00
|
|
|
|
2003-10-27 23:05:33 +01:00
|
|
|
/***********************************************************************
|
2004-01-05 22:12:21 +01:00
|
|
|
* SetupDiGetDeviceInfoListDetailA (SETUPAPI.@)
|
2003-10-27 23:05:33 +01:00
|
|
|
*/
|
2004-01-05 22:12:21 +01:00
|
|
|
BOOL WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data )
|
2003-10-27 23:05:33 +01:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2002-10-29 22:31:26 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupDiGetDeviceInfoListDetailW (SETUPAPI.@)
|
|
|
|
*/
|
2004-01-05 22:12:21 +01:00
|
|
|
BOOL WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data )
|
2002-10-10 21:23:57 +02:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-10-29 22:31:26 +01:00
|
|
|
|
2003-10-27 23:05:33 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* (SETUPAPI.@)
|
|
|
|
*
|
|
|
|
* NO WINAPI in description given
|
|
|
|
*/
|
2004-01-05 22:12:21 +01:00
|
|
|
HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *class, PCSTR filter, HWND parent, DWORD flags, HDEVINFO deviceset, PCSTR machine, PVOID reserved)
|
2003-10-27 23:05:33 +01:00
|
|
|
{
|
|
|
|
FIXME("filter %s machine %s\n",debugstr_a(filter),debugstr_a(machine));
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2002-10-29 22:31:26 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CM_Connect_MachineW (SETUPAPI.@)
|
|
|
|
*/
|
2002-10-10 21:23:57 +02: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 22:31:26 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CM_Disconnect_Machine (SETUPAPI.@)
|
|
|
|
*/
|
2002-10-10 21:23:57 +02:00
|
|
|
DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
|
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
return CR_SUCCESS;
|
|
|
|
|
|
|
|
}
|
2003-04-03 01:19:14 +02:00
|
|
|
|
2004-05-07 02:40:44 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* CM_Get_Device_ID_ListA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
|
|
|
|
DWORD WINAPI CM_Get_Device_ID_ListA(
|
|
|
|
PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
|
|
|
|
{
|
|
|
|
FIXME("%p %p %ld %ld\n", pszFilter, Buffer, BufferLen, ulFlags );
|
|
|
|
memset(Buffer,0,2);
|
|
|
|
return CR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-04-03 01:19:14 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupCopyOEMInfA (SETUPAPI.@)
|
|
|
|
*/
|
2004-01-05 22:12:21 +01:00
|
|
|
BOOL WINAPI SetupCopyOEMInfA(PCSTR sourceinffile, PCSTR sourcemedialoc,
|
|
|
|
DWORD mediatype, DWORD copystyle, PSTR destinfname,
|
2003-04-03 01:19:14 +02:00
|
|
|
DWORD destnamesize, PDWORD required,
|
2004-01-05 22:12:21 +01:00
|
|
|
PSTR *destinfnamecomponent)
|
2003-04-03 01:19:14 +02:00
|
|
|
{
|
2005-05-04 11:47:28 +02:00
|
|
|
FIXME("stub: source %s location %s ...\n", debugstr_a(sourceinffile),
|
|
|
|
debugstr_a(sourcemedialoc));
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupCopyOEMInfW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupCopyOEMInfW(PCWSTR sourceinffile, PCWSTR sourcemedialoc,
|
|
|
|
DWORD mediatype, DWORD copystyle, PWSTR destinfname,
|
|
|
|
DWORD destnamesize, PDWORD required,
|
|
|
|
PWSTR *destinfnamecomponent)
|
|
|
|
{
|
|
|
|
FIXME("stub: source %s location %s ...\n", debugstr_w(sourceinffile),
|
|
|
|
debugstr_w(sourcemedialoc));
|
2003-04-03 01:19:14 +02:00
|
|
|
return FALSE;
|
|
|
|
}
|
2006-07-31 20:48:27 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupGetSourceInfoA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupGetSourceInfoA(HINF InfHandle, UINT SourceId, UINT InfoDesired,
|
|
|
|
PSTR ReturnBuffer, DWORD ReturnBufferSize, LPDWORD RequiredSize)
|
|
|
|
{
|
|
|
|
FIXME("(%p, %d, %d, %p, %ld, %p): stub\n", InfHandle, SourceId, InfoDesired,
|
|
|
|
ReturnBuffer, ReturnBufferSize, RequiredSize);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupGetSourceInfoW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupGetSourceInfoW(HINF InfHandle, UINT SourceId, UINT InfoDesired,
|
|
|
|
PWSTR ReturnBuffer, DWORD ReturnBufferSize, LPDWORD RequiredSize)
|
|
|
|
{
|
|
|
|
FIXME("(%p, %d, %d, %p, %ld, %p): stub\n", InfHandle, SourceId, InfoDesired,
|
|
|
|
ReturnBuffer, ReturnBufferSize, RequiredSize);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2003-04-03 01:19:14 +02:00
|
|
|
|
2004-03-16 20:13:18 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupInitializeFileLogW(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
HANDLE WINAPI SetupInitializeFileLogW(LPWSTR LogFileName, DWORD Flags)
|
|
|
|
{
|
|
|
|
FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName),Flags);
|
|
|
|
return INVALID_HANDLE_VALUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupInitializeFileLogA(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
HANDLE WINAPI SetupInitializeFileLogA(LPSTR LogFileName, DWORD Flags)
|
|
|
|
{
|
|
|
|
FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName),Flags);
|
|
|
|
return INVALID_HANDLE_VALUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupTerminateFileLog(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
|
|
|
|
{
|
|
|
|
FIXME ("Stub %p\n",FileLogHandle);
|
|
|
|
return TRUE;
|
|
|
|
}
|
2006-04-04 14:04:32 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* RegistryDelnode(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
|
|
|
|
{
|
|
|
|
FIXME("%08lx %08lx: stub\n", x, y);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2006-09-14 02:18:23 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupCloseLog(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
void WINAPI SetupCloseLog()
|
|
|
|
{
|
|
|
|
FIXME("() stub\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupLogErrorW(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupLogErrorW(PCWSTR MessageString, LogSeverity Severity)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %ld) stub\n", debugstr_w(MessageString), Severity);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupOpenLog(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupOpenLog(BOOL Reserved)
|
|
|
|
{
|
|
|
|
FIXME("(%d) stub\n", Reserved);
|
|
|
|
return TRUE;
|
|
|
|
}
|