stubs.c 5.76 KB
Newer Older
1 2 3
/*
 * SetupAPI stubs
 *
4 5 6 7 8 9 10 11 12 13 14 15 16 17
 * 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
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 20
 */

21 22
#include <stdarg.h>

23
#include "wine/debug.h"
24
#include "windef.h"
25 26 27
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
Steven Edwards's avatar
Steven Edwards committed
28
#include "winreg.h"
29
#include "cfgmgr32.h"
30
#include "setupapi.h"
31
#include "winnls.h"
32

33
WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
34

35
/***********************************************************************
36
 *		TPWriteProfileString (SETUPX.62)
37
 */
38
BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
39
{
40 41
    FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
    return TRUE;
42 43 44 45
}


/***********************************************************************
46
 *		suErrorToIds  (SETUPX.61)
47
 */
48
DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
49
{
50 51
    FIXME( "%x %x: stub\n", w1, w2 );
    return 0;
52
}
Uwe Bonnes's avatar
Uwe Bonnes committed
53

54 55 56
/***********************************************************************
 *		CM_Connect_MachineW  (SETUPAPI.@)
 */
57
CONFIGRET WINAPI CM_Connect_MachineW(PCWSTR name, PHMACHINE machine)
Uwe Bonnes's avatar
Uwe Bonnes committed
58 59 60 61
{
  FIXME("\n");
  return  CR_ACCESS_DENIED;
}
62 63 64 65

/***********************************************************************
 *		CM_Disconnect_Machine  (SETUPAPI.@)
 */
66
CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
Uwe Bonnes's avatar
Uwe Bonnes committed
67 68 69 70 71
{
  FIXME("\n");
  return  CR_SUCCESS;

}
Uwe Bonnes's avatar
Uwe Bonnes committed
72

Matthew Davison's avatar
Matthew Davison committed
73 74 75 76
/***********************************************************************
 *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
 */

77
CONFIGRET WINAPI CM_Get_Device_ID_ListA(
Matthew Davison's avatar
Matthew Davison committed
78 79
    PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
{
80
    FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags );
Matthew Davison's avatar
Matthew Davison committed
81 82 83 84
    memset(Buffer,0,2);
    return CR_SUCCESS;
}

85
/***********************************************************************
86
 *              CM_Get_Parent (SETUPAPI.@)
87
 */
88
DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
89
{
90 91
    FIXME("%p 0x%08x 0x%08x stub\n", pdnDevInst, dnDevInst, ulFlags);
    *pdnDevInst = dnDevInst;
92 93 94
    return CR_SUCCESS;
}

95 96 97
/***********************************************************************
 *		SetupInitializeFileLogW(SETUPAPI.@)
 */
98
HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)
99
{
100
    FIXME("Stub %s, 0x%x\n",debugstr_w(LogFileName),Flags);
101 102 103 104 105 106
    return INVALID_HANDLE_VALUE;
}

/***********************************************************************
 *		SetupInitializeFileLogA(SETUPAPI.@)
 */
107
HSPFILELOG WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
108
{
109
    FIXME("Stub %s, 0x%x\n",debugstr_a(LogFileName),Flags);
110 111 112 113 114 115 116 117 118 119 120
    return INVALID_HANDLE_VALUE;
}

/***********************************************************************
 *		SetupTerminateFileLog(SETUPAPI.@)
 */
BOOL WINAPI SetupTerminateFileLog(HANDLE FileLogHandle)
{
    FIXME ("Stub %p\n",FileLogHandle);
    return TRUE;
}
121 122 123 124 125 126

/***********************************************************************
 *		RegistryDelnode(SETUPAPI.@)
 */
BOOL WINAPI RegistryDelnode(DWORD x, DWORD y)
{
127
    FIXME("%08x %08x: stub\n", x, y);
128 129
    return FALSE;
}
130 131 132 133

/***********************************************************************
 *      SetupCloseLog(SETUPAPI.@)
 */
134
void WINAPI SetupCloseLog(void)
135 136 137 138 139 140 141
{
    FIXME("() stub\n");
}

/***********************************************************************
 *      SetupLogErrorW(SETUPAPI.@)
 */
142
BOOL WINAPI SetupLogErrorW(LPCWSTR MessageString, LogSeverity Severity)
143
{
144
    FIXME("(%s, %d) stub\n", debugstr_w(MessageString), Severity);
145 146 147 148 149 150 151 152 153 154 155
    return TRUE;
}

/***********************************************************************
 *      SetupOpenLog(SETUPAPI.@)
 */
BOOL WINAPI SetupOpenLog(BOOL Reserved)
{
    FIXME("(%d) stub\n", Reserved);
    return TRUE;
}
156 157 158 159 160 161 162 163 164

/***********************************************************************
 *      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;
}
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202

/***********************************************************************
 *      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;
}