Ignore:
Timestamp:
May 15, 2002, 2:39:57 PM (23 years ago)
Author:
sandervl
Message:

wine resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/setupapi/stubs.c

    r8226 r8421  
    1 /* -*- tab-width: 8; c-basic-offset: 8 -*- */
    21/*
    32 * SetupAPI stubs
    43 *
     4 * Copyright 2000 James Hatheway
     5 *
     6 * This library is free software; you can redistribute it and/or
     7 * modify it under the terms of the GNU Lesser General Public
     8 * License as published by the Free Software Foundation; either
     9 * version 2.1 of the License, or (at your option) any later version.
     10 *
     11 * This library is distributed in the hope that it will be useful,
     12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14 * Lesser General Public License for more details.
     15 *
     16 * You should have received a copy of the GNU Lesser General Public
     17 * License along with this library; if not, write to the Free Software
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    519 */
    620
    7 #include "debugtools.h"
     21#include "wine/debug.h"
    822#include "windef.h"
    9 #ifdef __WIN32OS2__
    10 #include "ole2.h"
    11 #endif
    1223#include "setupapi.h"
    1324
    14 DEFAULT_DEBUG_CHANNEL(setupapi);
     25WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
    1526
    1627
    1728/***********************************************************************
    18  *              SetupCloseFileQueue
    19  */
    20 BOOL WINAPI SetupCloseFileQueue(HSPFILEQ QueueHandle)
    21 {
    22         FIXME("not implemented (setupapi.dll) \n");
    23 }
    24 
    25 /***********************************************************************
    26  *              SetupCommitFileQueueA
    27  */
    28 BOOL WINAPI SetupCommitFileQueueA(HWND Owner, HSPFILEQ QueueHandle,
    29                                   PSP_FILE_CALLBACK_A MsgHandler,
    30                                   PVOID Context)
    31 {
    32         FIXME("not implemented (setupapi.dll) \n");
    33         return FALSE;
    34 }
    35 
    36 /***********************************************************************
    37  *              SetupIterateCabinetA
     29 *              SetupIterateCabinetA (SETUPAPI.@)
    3830 */
    3931BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved,
     
    4537
    4638/***********************************************************************
    47  *              SetupIterateCabinetW
     39 *              SetupIterateCabinetW (SETUPAPI.@)
    4840 */
    4941BOOL WINAPI SetupIterateCabinetW(PWSTR CabinetFile, DWORD Reserved,
     
    5648
    5749/***********************************************************************
    58  *              SetupGetLineTextA
     50 *              TPWriteProfileString (SETUPX.62)
    5951 */
    60 BOOL WINAPI SetupGetLineTextA (const INFCONTEXT *Context, HINF InfHandle,
    61                         PCSTR Section, PCSTR Key, LPSTR ReturnBuffer,
    62                         DWORD ReturnBufferSize, PDWORD RequiredSize)
     52BOOL WINAPI TPWriteProfileString16( LPCSTR section, LPCSTR entry, LPCSTR string )
    6353{
    64         FIXME("not implemented (setupapi.dll) \n");
    65         return 0;
    66 }
    67 
    68 /***********************************************************************
    69  *              SetupGetStringFieldA
    70  */
    71 BOOL WINAPI SetupGetStringFieldA(const INFCONTEXT *Context, DWORD FieldIndex,
    72                                  LPSTR ReturnBuffer, DWORD ReturnBufferSize,
    73                                  PDWORD RequiredSize)
    74 {
    75         FIXME("not implemented (setupapi.dll) \n");
    76         return 0;
     54    FIXME( "%s %s %s: stub\n", debugstr_a(section), debugstr_a(entry), debugstr_a(string) );
     55    return TRUE;
    7756}
    7857
    7958
    8059/***********************************************************************
    81  *              SetupFindNextLine
     60 *              suErrorToIds  (SETUPX.61)
    8261 */
    83 BOOL WINAPI SetupFindNextLine (const INFCONTEXT *ContextIn, PINFCONTEXT ContextOut)
     62DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
    8463{
    85         FIXME("not implemented (setupapi.dll) \n");
    86         return 0;
     64    FIXME( "%x %x: stub\n", w1, w2 );
     65    return 0;
    8766}
    88 
    89 
    90 /***********************************************************************
    91  *              SetupInitDefaultQueueCallback
    92  */
    93 PVOID WINAPI SetupInitDefaultQueueCallback(HWND OwnerWindow)
    94 {
    95         FIXME("not implemented (setupapi.dll) \n");
    96         return 0;
    97 }
    98 
    99 /***********************************************************************
    100  *              SetupInitDefaultQueueCallbackEx
    101  */
    102 PVOID WINAPI SetupInitDefaultQueueCallbackEx(HWND OwnerWindow,
    103                                              HWND AlternativeProgressWindow,
    104                                              UINT ProgressMessage,
    105                                              DWORD res1,
    106                                              PVOID res2)
    107 {
    108         FIXME("not implemented (setupapi.dll) \n");
    109         return 0;
    110 }
    111 
    112 /***********************************************************************
    113  *              SetupCloseInfFile
    114  */
    115 VOID WINAPI SetupCloseInfFile (HINF InfHandle)
    116 {
    117         FIXME("not implemented (setupapi.dll) \n");
    118 }
    119 
    120 
    121 /***********************************************************************
    122  *              SetupDefaultQueueCallbackA
    123  */
    124 UINT WINAPI SetupDefaultQueueCallbackA (PVOID Context, UINT Notification,
    125                                         UINT_PTR Param1, UINT_PTR Param2)
    126 {
    127         FIXME("not implemented (setupapi.dll) \n");
    128         return 0;
    129 }
    130 
    131 
    132 /***********************************************************************
    133  *              SetupFindFirstLineA
    134  */
    135 BOOL WINAPI SetupFindFirstLineA (HINF InfHandle, PCSTR Section, PCSTR Key,
    136                                  PINFCONTEXT Context)
    137 {
    138         FIXME("not implemented (setupapi.dll) \n");
    139         return 0;
    140 }
    141 
    142 /***********************************************************************
    143  *              SetupGetLineByIndexA
    144  */
    145 BOOL WINAPI SetupGetLineByIndexA (HINF InfHandle, PCSTR Section, DWORD Index,
    146                                  PINFCONTEXT Context)
    147 {
    148         FIXME("not implemented (setupapi.dll) \n");
    149         return FALSE;
    150 }
    151 
    152 
    153 /***********************************************************************
    154  *              SetupInstallFromInfSectionA
    155  */
    156 BOOL WINAPI SetupInstallFromInfSectionA (HWND Owner, HINF InfHandle, PCSTR SectionName,
    157                                          UINT Flags, HKEY RelativeKeyRoot, PCSTR SourceRootPath,
    158                                          UINT CopyFlags, PSP_FILE_CALLBACK_A MsgHandler,
    159                                          PVOID Context, HDEVINFO DeviceInfoSet,
    160                                          PSP_DEVINFO_DATA DeviceInfoData)
    161 {
    162         FIXME("not implemented (setupapi.dll) \n");
    163         return 0;
    164 }
    165 
    166 /***********************************************************************
    167  *              SetupOpenAppendInfFileA
    168  */
    169 BOOL WINAPI SetupOpenAppendInfFileA (PCSTR FileName, HINF InfHandle,
    170                                     PUINT ErrorLine)
    171 {
    172         FIXME("not implemented (setupapi.dll) \n");
    173         return FALSE;
    174 }
    175 
    176 /***********************************************************************
    177  *              SetupOpenFileQueue
    178  */
    179 HSPFILEQ WINAPI SetupOpenFileQueue (VOID)
    180 {
    181         FIXME("not implemented (setupapi.dll) \n");
    182         return (HSPFILEQ) INVALID_HANDLE_VALUE;
    183 }
    184 
    185 /***********************************************************************
    186  *              SetupOpenInfFileA
    187  */
    188 HINF WINAPI SetupOpenInfFileA (PCSTR FileName, PCSTR InfClass, DWORD InfStyle,
    189                                PUINT ErrorLine)
    190 {
    191         FIXME("not implemented (setupapi.dll) \n");
    192         return 0;
    193 }
    194 
    195 /***********************************************************************
    196  *              SetupQueueCopyA
    197  */
    198 BOOL WINAPI SetupQueueCopyA (HSPFILEQ QueueHandle, PCSTR SourceRootPath, PCSTR SourcePath,
    199                              PCSTR SourceFileName, PCSTR SourceDescription, PCSTR SourceTagFile,
    200                              PCSTR TargetDirectory, PCSTR TargetFileName, DWORD CopyStyle)
    201 {
    202         FIXME("not implemented (setupapi.dll) \n");
    203         return FALSE;
    204 }
    205 
    206 /***********************************************************************
    207  *              SetupSetDirectoryIdA
    208  */
    209 BOOL WINAPI SetupSetDirectoryIdA (HINF InfHandle,
    210                                   DWORD Id,
    211                                   PCSTR Directory)
    212 {
    213         FIXME("not implemented (setupapi.dll) \n");
    214         return FALSE;
    215 }
    216 
    217 
    218 /***********************************************************************
    219  *              SetupTermDefaultQueueCallback
    220  */
    221 VOID WINAPI SetupTermDefaultQueueCallback (PVOID Callback)
    222 {
    223         FIXME("not implemented (setupapi.dll) \n");
    224 }
    225 
Note: See TracChangeset for help on using the changeset viewer.