Added stubs and setupapi.h.

This commit is contained in:
James Hatheway 2000-11-06 20:24:43 +00:00 committed by Alexandre Julliard
parent 643fcffaac
commit cb655b0aae
4 changed files with 146 additions and 9 deletions

View File

@ -21,7 +21,7 @@ debug_channels (setupapi setupx)
# 54 stdcall SetupAdjustDiskSpaceListW() SetupAdjustDiskSpaceListW # 54 stdcall SetupAdjustDiskSpaceListW() SetupAdjustDiskSpaceListW
# 55 stdcall SetupCancelTemporarySourceList() SetupCancelTemporarySourceList # 55 stdcall SetupCancelTemporarySourceList() SetupCancelTemporarySourceList
# 56 stdcall SetupCloseFileQueue() SetupCloseFileQueue # 56 stdcall SetupCloseFileQueue() SetupCloseFileQueue
# 57 stdcall SetupCloseInfFile() SetupCloseInfFile 57 stdcall SetupCloseInfFile(long) SetupCloseInfFile
# 58 stdcall SetupCommitFileQueue() SetupCommitFileQueue # 58 stdcall SetupCommitFileQueue() SetupCommitFileQueue
# 59 stdcall SetupCommitFileQueueA() SetupCommitFileQueueA # 59 stdcall SetupCommitFileQueueA() SetupCommitFileQueueA
# 60 stdcall SetupCommitFileQueueW() SetupCommitFileQueueW # 60 stdcall SetupCommitFileQueueW() SetupCommitFileQueueW
@ -32,7 +32,7 @@ debug_channels (setupapi setupx)
# 65 stdcall SetupDecompressOrCopyFileA() SetupDecompressOrCopyFileA # 65 stdcall SetupDecompressOrCopyFileA() SetupDecompressOrCopyFileA
# 66 stdcall SetupDecompressOrCopyFileW() SetupDecompressOrCopyFileW # 66 stdcall SetupDecompressOrCopyFileW() SetupDecompressOrCopyFileW
# 67 stdcall SetupDefaultQueueCallback() SetupDefaultQueueCallback # 67 stdcall SetupDefaultQueueCallback() SetupDefaultQueueCallback
# 68 stdcall SetupDefaultQueueCallbackA() SetupDefaultQueueCallbackA 68 stdcall SetupDefaultQueueCallbackA(ptr long long long) SetupDefaultQueueCallbackA
# 69 stdcall SetupDefaultQueueCallbackW() SetupDefaultQueueCallbackW # 69 stdcall SetupDefaultQueueCallbackW() SetupDefaultQueueCallbackW
# 70 stdcall SetupDeleteErrorA() SetupDeleteErrorA # 70 stdcall SetupDeleteErrorA() SetupDeleteErrorA
# 71 stdcall SetupDeleteErrorW() SetupDeleteErrorW # 71 stdcall SetupDeleteErrorW() SetupDeleteErrorW
@ -121,9 +121,9 @@ debug_channels (setupapi setupx)
#154 stdcall SetupDiSetSelectedDriverW() SetupDiSetSelectedDriverW #154 stdcall SetupDiSetSelectedDriverW() SetupDiSetSelectedDriverW
#155 stdcall SetupDuplicateDiskSpaceListA() SetupDuplicateDiskSpaceListA #155 stdcall SetupDuplicateDiskSpaceListA() SetupDuplicateDiskSpaceListA
#156 stdcall SetupDuplicateDiskSpaceListW() SetupDuplicateDiskSpaceListW #156 stdcall SetupDuplicateDiskSpaceListW() SetupDuplicateDiskSpaceListW
#157 stdcall SetupFindFirstLineA() SetupFindFirstLineA 157 stdcall SetupFindFirstLineA(long str str ptr) SetupFindFirstLineA
#158 stdcall SetupFindFirstLineW() SetupFindFirstLineW #158 stdcall SetupFindFirstLineW() SetupFindFirstLineW
#159 stdcall SetupFindNextLine() SetupFindNextLine 159 stdcall SetupFindNextLine(long) SetupFindNextLine
#160 stdcall SetupFindNextMatchLineA() SetupFindNextMatchLineA #160 stdcall SetupFindNextMatchLineA() SetupFindNextMatchLineA
#161 stdcall SetupFindNextMatchLineW() SetupFindNextMatchLineW #161 stdcall SetupFindNextMatchLineW() SetupFindNextMatchLineW
#162 stdcall SetupFreeSourceListA() SetupFreeSourceListA #162 stdcall SetupFreeSourceListA() SetupFreeSourceListA
@ -141,7 +141,7 @@ debug_channels (setupapi setupx)
#174 stdcall SetupGetLineByIndexW() SetupGetLineByIndexW #174 stdcall SetupGetLineByIndexW() SetupGetLineByIndexW
#175 stdcall SetupGetLineCountA() SetupGetLineCountA #175 stdcall SetupGetLineCountA() SetupGetLineCountA
#176 stdcall SetupGetLineCountW() SetupGetLineCountW #176 stdcall SetupGetLineCountW() SetupGetLineCountW
#177 stdcall SetupGetLineTextA() SetupGetLineTextA 177 stdcall SetupGetLineTextA(ptr long str str ptr long ptr) SetupGetLineTextA
#178 stdcall SetupGetLineTextW() SetupGetLineTextW #178 stdcall SetupGetLineTextW() SetupGetLineTextW
#179 stdcall SetupGetMultiSzFieldA() SetupGetMultiSzFieldA #179 stdcall SetupGetMultiSzFieldA() SetupGetMultiSzFieldA
#180 stdcall SetupGetMultiSzFieldW() SetupGetMultiSzFieldW #180 stdcall SetupGetMultiSzFieldW() SetupGetMultiSzFieldW
@ -151,11 +151,11 @@ debug_channels (setupapi setupx)
#184 stdcall SetupGetSourceFileSizeW() SetupGetSourceFileSizeW #184 stdcall SetupGetSourceFileSizeW() SetupGetSourceFileSizeW
#185 stdcall SetupGetSourceInfoA() SetupGetSourceInfoA #185 stdcall SetupGetSourceInfoA() SetupGetSourceInfoA
#186 stdcall SetupGetSourceInfoW() SetupGetSourceInfoW #186 stdcall SetupGetSourceInfoW() SetupGetSourceInfoW
#187 stdcall SetupGetStringFieldA() SetupGetStringFieldA 187 stdcall SetupGetStringFieldA(ptr long str long ptr) SetupGetStringFieldA
#188 stdcall SetupGetStringFieldW() SetupGetStringFieldW #188 stdcall SetupGetStringFieldW() SetupGetStringFieldW
#189 stdcall SetupGetTargetPathA() SetupGetTargetPathA #189 stdcall SetupGetTargetPathA() SetupGetTargetPathA
#190 stdcall SetupGetTargetPathW() SetupGetTargetPathW #190 stdcall SetupGetTargetPathW() SetupGetTargetPathW
#191 stdcall SetupInitDefaultQueueCallback() SetupInitDefaultQueueCallback 191 stdcall SetupInitDefaultQueueCallback(long) SetupInitDefaultQueueCallback
#192 stdcall SetupInitDefaultQueueCallbackEx() SetupInitDefaultQueueCallbackEx #192 stdcall SetupInitDefaultQueueCallbackEx() SetupInitDefaultQueueCallbackEx
#193 stdcall SetupInitializeFileLogA() SetupInitializeFileLogA #193 stdcall SetupInitializeFileLogA() SetupInitializeFileLogA
#194 stdcall SetupInitializeFileLogW() SetupInitializeFileLogW #194 stdcall SetupInitializeFileLogW() SetupInitializeFileLogW
@ -165,7 +165,7 @@ debug_channels (setupapi setupx)
#198 stdcall SetupInstallFileW() SetupInstallFileW #198 stdcall SetupInstallFileW() SetupInstallFileW
#199 stdcall SetupInstallFilesFromInfSectionA() SetupInstallFilesFromInfSectionA #199 stdcall SetupInstallFilesFromInfSectionA() SetupInstallFilesFromInfSectionA
#200 stdcall SetupInstallFilesFromInfSectionW() SetupInstallFilesFromInfSectionW #200 stdcall SetupInstallFilesFromInfSectionW() SetupInstallFilesFromInfSectionW
#201 stdcall SetupInstallFromInfSectionA() SetupInstallFromInfSectionA 201 stdcall SetupInstallFromInfSectionA(long long str long long str long ptr ptr long ptr) SetupInstallFromInfSectionA
#202 stdcall SetupInstallFromInfSectionW() SetupInstallFromInfSectionW #202 stdcall SetupInstallFromInfSectionW() SetupInstallFromInfSectionW
#203 stdcall SetupInstallServicesFromInfSectionA() SetupInstallServicesFromInfSectionA #203 stdcall SetupInstallServicesFromInfSectionA() SetupInstallServicesFromInfSectionA
#204 stdcall SetupInstallServicesFromInfSectionW() SetupInstallServicesFromInfSectionW #204 stdcall SetupInstallServicesFromInfSectionW() SetupInstallServicesFromInfSectionW
@ -176,7 +176,7 @@ debug_channels (setupapi setupx)
#209 stdcall SetupOpenAppendInfFileA() SetupOpenAppendInfFileA #209 stdcall SetupOpenAppendInfFileA() SetupOpenAppendInfFileA
#210 stdcall SetupOpenAppendInfFileW() SetupOpenAppendInfFileW #210 stdcall SetupOpenAppendInfFileW() SetupOpenAppendInfFileW
#211 stdcall SetupOpenFileQueue() SetupOpenFileQueue #211 stdcall SetupOpenFileQueue() SetupOpenFileQueue
#212 stdcall SetupOpenInfFileA() SetupOpenInfFileA 212 stdcall SetupOpenInfFileA(ptr ptr long ptr) SetupOpenInfFileA
#213 stdcall SetupOpenInfFileW() SetupOpenInfFileW #213 stdcall SetupOpenInfFileW() SetupOpenInfFileW
#214 stdcall SetupOpenMasterInf() SetupOpenMasterInf #214 stdcall SetupOpenMasterInf() SetupOpenMasterInf
#215 stdcall SetupPromptForDiskA() SetupPromptForDiskA #215 stdcall SetupPromptForDiskA() SetupPromptForDiskA

View File

@ -5,6 +5,8 @@
#include "debugtools.h" #include "debugtools.h"
#include "windef.h" #include "windef.h"
#include "setupapi.h"
DEFAULT_DEBUG_CHANNEL(setupapi); DEFAULT_DEBUG_CHANNEL(setupapi);
@ -34,3 +36,103 @@ BOOL WINAPI SetupIterateCabinetW(PWSTR CabinetFile, DWORD Reserved,
FIXME("not implemented (setupapi.dll) \n"); FIXME("not implemented (setupapi.dll) \n");
return 0; return 0;
} }
/***********************************************************************
* SetupGetStringFieldA
*/
BOOL WINAPI SetupGetStringFieldA(PINFCONTEXT Context, DWORD FieldIndex,
LPSTR ReturnBuffer, DWORD ReturnBufferSize,
PDWORD RequiredSize)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupFindNextLine
*/
BOOL WINAPI SetupFindNextLine (PINFCONTEXT ContextIn, PINFCONTEXT ContextOut)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupInitDefaultQueueCallback
*/
PVOID WINAPI SetupInitDefaultQueueCallback(HWND OwnerWindow)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupGetLineTextA
*/
BOOL WINAPI SetupGetLineTextA (PINFCONTEXT Context, HINF InfHandle,
PCSTR Section, PCSTR Key, LPSTR ReturnBuffer,
DWORD ReturnBufferSize, PDWORD RequiredSize)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupCloseInfFile
*/
VOID WINAPI SetupCloseInfFile (HINF InfHandle)
{
FIXME("not implemented (setupapi.dll) \n");
}
/***********************************************************************
* SetupDefaultQueueCallbackA
*/
UINT WINAPI SetupDefaultQueueCallbackA (PVOID Context, UINT Notification,
UINT Param1, UINT Param2)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupFindFirstLineA
*/
BOOL WINAPI SetupFindFirstLineA (HINF InfHandle, PCSTR Section, PCSTR Key,
PINFCONTEXT Context)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupInstallFromInfSectionA
*/
BOOL WINAPI SetupInstallFromInfSectionA (HWND Owner, HINF InfHandle, PCSTR SectionName,
UINT Flags, HKEY RelativeKeyRoot, PCSTR SourceRootPath,
UINT CopyFlags, PSP_FILE_CALLBACK_A MsgHandler,
PVOID Context, HDEVINFO DeviceInfoSet,
PSP_DEVINFO_DATA DeviceInfoData)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}
/***********************************************************************
* SetupOpenInfFileA
*/
HINF WINAPI SetupOpenInfFileA (PCSTR FileName, PCSTR InfClass, DWORD InfStyle,
PUINT ErrorLine)
{
FIXME("not implemented (setupapi.dll) \n");
return 0;
}

View File

@ -61,6 +61,7 @@ INSTALLED_INCLUDES = \
richedit.h \ richedit.h \
rpc.h \ rpc.h \
servprov.h \ servprov.h \
setupapi.h \
shellapi.h \ shellapi.h \
shlguid.h \ shlguid.h \
shlobj.h \ shlobj.h \

34
include/setupapi.h Normal file
View File

@ -0,0 +1,34 @@
/* Initial setupapi.h.
FIXME: Missing A LOT of definitions / declarations!
*/
#ifndef __SETUPAPI__
#define __SETUPAPI__
/* Define type for handle to a loaded inf file */
typedef PVOID HINF;
/* Define type for handle to a device information set */
typedef PVOID HDEVINFO;
/* inf structure. */
typedef struct _INFCONTEXT
{
PVOID Inf;
PVOID CurrentInf;
UINT Section;
UINT Line;
} INFCONTEXT, *PINFCONTEXT;
/* Device Information structure (references a device instance that is a member
of a device information set) */
typedef struct _SP_DEVINFO_DATA
{
DWORD cbSize;
GUID ClassGuid;
DWORD DevInst; /* DEVINST handle */
DWORD Reserved;
} SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
#endif