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"
|
2003-09-11 04:58:46 +02:00
|
|
|
#include "winreg.h"
|
2007-11-13 09:32:13 +01:00
|
|
|
#include "cfgmgr32.h"
|
2000-11-06 21:24:43 +01:00
|
|
|
#include "setupapi.h"
|
2008-03-01 02:46:58 +01:00
|
|
|
#include "winnls.h"
|
2000-11-06 21:24:43 +01:00
|
|
|
|
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
|
|
|
|
2008-12-29 18:43:00 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CM_Connect_MachineA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
CONFIGRET WINAPI CM_Connect_MachineA(PCSTR name, PHMACHINE machine)
|
|
|
|
{
|
|
|
|
FIXME("(%s %p) stub\n", name, machine);
|
|
|
|
return CR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
2002-10-29 22:31:26 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CM_Connect_MachineW (SETUPAPI.@)
|
|
|
|
*/
|
2007-11-13 09:32:13 +01:00
|
|
|
CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR name, PHMACHINE machine)
|
2002-10-10 21:23:57 +02:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
return CR_ACCESS_DENIED;
|
|
|
|
}
|
2002-10-29 22:31:26 +01:00
|
|
|
|
2008-12-29 18:43:12 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CM_Create_DevNodeA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, DEVINST dnParent, ULONG ulFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, pDeviceID, dnParent, ulFlags);
|
|
|
|
return CR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CM_Create_DevNodeW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, DEVINST dnParent, ULONG ulFlags)
|
|
|
|
{
|
|
|
|
FIXME("(%p %s 0x%08x 0x%08x) stub\n", pdnDevInst, debugstr_w(pDeviceID), dnParent, ulFlags);
|
|
|
|
return CR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2002-10-29 22:31:26 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CM_Disconnect_Machine (SETUPAPI.@)
|
|
|
|
*/
|
2007-11-13 09:32:13 +01:00
|
|
|
CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
|
2002-10-10 21:23:57 +02:00
|
|
|
{
|
|
|
|
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.@)
|
|
|
|
*/
|
|
|
|
|
2007-11-13 09:32:13 +01:00
|
|
|
CONFIGRET WINAPI CM_Get_Device_ID_ListA(
|
2004-05-07 02:40:44 +02:00
|
|
|
PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
|
|
|
|
{
|
2006-10-13 23:32:50 +02:00
|
|
|
FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
|
2004-05-07 02:40:44 +02:00
|
|
|
memset(Buffer,0,2);
|
|
|
|
return CR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2007-11-07 19:38:16 +01:00
|
|
|
/***********************************************************************
|
2008-03-01 02:46:58 +01:00
|
|
|
* CM_Get_Parent (SETUPAPI.@)
|
2007-11-07 19:38:16 +01:00
|
|
|
*/
|
2008-03-01 02:46:58 +01:00
|
|
|
DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
|
2007-11-07 19:38:16 +01:00
|
|
|
{
|
2008-03-01 02:46:58 +01:00
|
|
|
FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
|
|
|
|
*pdnDevInst = dnDevInst;
|
2007-11-07 19:38:16 +01:00
|
|
|
return CR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2004-03-16 20:13:18 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupInitializeFileLogW(SETUPAPI.@)
|
|
|
|
*/
|
2007-09-18 22:33:15 +02:00
|
|
|
HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
|
2004-03-16 20:13:18 +01:00
|
|
|
{
|
2006-10-13 23:32:50 +02:00
|
|
|
FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
|
2004-03-16 20:13:18 +01:00
|
|
|
return INVALID_HANDLE_VALUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupInitializeFileLogA(SETUPAPI.@)
|
|
|
|
*/
|
2007-09-18 22:33:15 +02:00
|
|
|
HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
|
2004-03-16 20:13:18 +01:00
|
|
|
{
|
2006-10-13 23:32:50 +02:00
|
|
|
FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
|
2004-03-16 20:13:18 +01:00
|
|
|
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)
|
|
|
|
{
|
2006-10-13 23:32:50 +02:00
|
|
|
FIXME("%08x %08x: stub\n", x, y);
|
2006-04-04 14:04:32 +02:00
|
|
|
return FALSE;
|
|
|
|
}
|
2006-09-14 02:18:23 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupCloseLog(SETUPAPI.@)
|
|
|
|
*/
|
2007-08-29 21:42:28 +02:00
|
|
|
void WINAPI SetupCloseLog(void)
|
2006-09-14 02:18:23 +02:00
|
|
|
{
|
|
|
|
FIXME("() stub\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupLogErrorW(SETUPAPI.@)
|
|
|
|
*/
|
2007-08-29 21:42:40 +02:00
|
|
|
BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
|
2006-09-14 02:18:23 +02:00
|
|
|
{
|
2006-10-13 23:32:50 +02:00
|
|
|
FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
|
2006-09-14 02:18:23 +02:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupOpenLog(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupOpenLog(BOOL Reserved)
|
|
|
|
{
|
|
|
|
FIXME("(%d) stub\n", Reserved);
|
|
|
|
return TRUE;
|
|
|
|
}
|
2006-12-15 10:02:00 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupPromptReboot(SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
INT WINAPI SetupPromptReboot( HSPFILEQ file_queue, HWND owner, BOOL scan_only )
|
|
|
|
{
|
|
|
|
FIXME("%p, %p, %d\n", file_queue, owner, scan_only);
|
|
|
|
return 0;
|
|
|
|
}
|
2007-02-18 19:37:51 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupSetSourceListA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupSetSourceListA(DWORD flags, PCSTR *list, UINT count)
|
|
|
|
{
|
|
|
|
FIXME("0x%08x %p %d\n", flags, list, count);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupSetSourceListW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupSetSourceListW(DWORD flags, PCWSTR *list, UINT count)
|
|
|
|
{
|
|
|
|
FIXME("0x%08x %p %d\n", flags, list, count);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupDiGetINFClassA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupDiGetINFClassA(PCSTR inf, LPGUID class_guid, PSTR class_name,
|
|
|
|
DWORD size, PDWORD required_size)
|
|
|
|
{
|
|
|
|
FIXME("%s %p %p %d %p\n", debugstr_a(inf), class_guid, class_name, size, required_size);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupDiGetINFClassW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name,
|
|
|
|
DWORD size, PDWORD required_size)
|
|
|
|
{
|
|
|
|
FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2008-12-05 16:39:59 +01:00
|
|
|
|
2008-12-29 18:43:08 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupDiDestroyClassImageList (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA ClassListImageData)
|
|
|
|
{
|
|
|
|
FIXME("(%p) stub\n", ClassListImageData);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2009-01-24 15:52:51 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupDiGetClassImageList (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA ClassImageListData)
|
|
|
|
{
|
|
|
|
FIXME("(%p) stub\n", ClassImageListData);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2008-12-05 16:39:59 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* SetupPromptForDiskA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
UINT WINAPI SetupPromptForDiskA(HWND hwndParent, PCSTR DialogTitle, PCSTR DiskName,
|
|
|
|
PCSTR PathToSource, PCSTR FileSought, PCSTR TagFile, DWORD DiskPromptStyle,
|
|
|
|
PSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
|
|
|
|
{
|
|
|
|
FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_a(DialogTitle),
|
|
|
|
debugstr_a(DiskName), debugstr_a(PathToSource), debugstr_a(FileSought),
|
|
|
|
debugstr_a(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
|
|
|
|
PathRequiredSize);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetupPromptForDiskW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
UINT WINAPI SetupPromptForDiskW(HWND hwndParent, PCWSTR DialogTitle, PCWSTR DiskName,
|
|
|
|
PCWSTR PathToSource, PCWSTR FileSought, PCWSTR TagFile, DWORD DiskPromptStyle,
|
|
|
|
PWSTR PathBuffer, DWORD PathBufferSize, PDWORD PathRequiredSize)
|
|
|
|
{
|
|
|
|
FIXME("%p %s %s %s %s %s %d %p %d %p: stub\n", hwndParent, debugstr_w(DialogTitle),
|
|
|
|
debugstr_w(DiskName), debugstr_w(PathToSource), debugstr_w(FileSought),
|
|
|
|
debugstr_w(TagFile), DiskPromptStyle, PathBuffer, PathBufferSize,
|
|
|
|
PathRequiredSize);
|
|
|
|
return 0;
|
|
|
|
}
|
2008-12-24 21:28:31 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CM_Locate_DevNodeA (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
|
|
|
|
{
|
|
|
|
FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
|
|
|
|
|
|
|
|
return CR_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CM_Locate_DevNodeW (SETUPAPI.@)
|
|
|
|
*/
|
|
|
|
CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
|
|
|
|
{
|
|
|
|
FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
|
|
|
|
|
|
|
|
return CR_FAILURE;
|
|
|
|
}
|