Implement SetupInstallServicesFromInfSectionA/W, SetupInstallServicesFromInfSectionExW

Add stub for SetupInstallServicesFromInfSectionExW

svn path=/trunk/; revision=18088
This commit is contained in:
Hervé Poussineau 2005-09-26 11:37:32 +00:00
parent 5513508495
commit 85061235b4
3 changed files with 53 additions and 4 deletions

View file

@ -953,3 +953,43 @@ void WINAPI InstallHinfSectionA( HWND hwnd, HINSTANCE handle, LPCSTR cmdline, IN
RtlFreeUnicodeString( &cmdlineW );
}
}
/***********************************************************************
* SetupInstallServicesFromInfSectionA (SETUPAPI.@)
*/
BOOL WINAPI SetupInstallServicesFromInfSectionA( HINF hinf, PCSTR sectionname, DWORD flags )
{
return SetupInstallServicesFromInfSectionExA( hinf, sectionname, flags,
NULL, NULL, NULL, NULL );
}
/***********************************************************************
* SetupInstallServicesFromInfSectionW (SETUPAPI.@)
*/
BOOL WINAPI SetupInstallServicesFromInfSectionW( HINF hinf, PCWSTR sectionname, DWORD flags )
{
return SetupInstallServicesFromInfSectionExW( hinf, sectionname, flags,
NULL, NULL, NULL, NULL );
}
/***********************************************************************
* SetupInstallServicesFromInfSectionExA (SETUPAPI.@)
*/
BOOL WINAPI SetupInstallServicesFromInfSectionExA( HINF hinf, PCSTR sectionname, DWORD flags, HDEVINFO devinfo, PSP_DEVINFO_DATA devinfo_data, PVOID reserved1, PVOID reserved2 )
{
UNICODE_STRING sectionnameW;
BOOL ret = FALSE;
if (RtlCreateUnicodeStringFromAsciiz( &sectionnameW, sectionname ))
{
ret = SetupInstallServicesFromInfSectionExW( hinf, sectionnameW.Buffer, flags, devinfo, devinfo_data, reserved1, reserved2 );
RtlFreeUnicodeString( &sectionnameW );
}
else
SetLastError( ERROR_NOT_ENOUGH_MEMORY );
return ret;
}

View file

@ -437,10 +437,10 @@
@ stdcall SetupInstallFilesFromInfSectionW(long long long wstr wstr long)
@ stdcall SetupInstallFromInfSectionA(long long str long long str long ptr ptr long ptr)
@ stdcall SetupInstallFromInfSectionW(long long wstr long long wstr long ptr ptr long ptr)
@ stub SetupInstallServicesFromInfSectionA
@ stub SetupInstallServicesFromInfSectionExA
@ stub SetupInstallServicesFromInfSectionExW
@ stub SetupInstallServicesFromInfSectionW
@ stdcall SetupInstallServicesFromInfSectionA(long str long)
@ stdcall SetupInstallServicesFromInfSectionExA(long str long ptr ptr ptr ptr)
@ stdcall SetupInstallServicesFromInfSectionExW(long wstr long ptr ptr ptr ptr)
@ stdcall SetupInstallServicesFromInfSectionW(long wstr long)
@ stdcall SetupIterateCabinetA(str long ptr ptr)
@ stdcall SetupIterateCabinetW(wstr long ptr ptr)
@ stub SetupLogErrorA

View file

@ -124,6 +124,15 @@ HANDLE WINAPI SetupInitializeFileLogA(LPCSTR LogFileName, DWORD Flags)
return INVALID_HANDLE_VALUE;
}
/***********************************************************************
* SetupInstallServicesFromInfSectionExW (SETUPAPI.@)
*/
BOOL WINAPI SetupInstallServicesFromInfSectionExW( HINF hinf, PCWSTR sectionname, DWORD flags, HDEVINFO devinfo, PSP_DEVINFO_DATA devinfo_data, PVOID reserved1, PVOID reserved2 )
{
FIXME("Stub %p, %s, 0x%lx, %p, %p, %p, %p\n", hinf, debugstr_w(sectionname), flags, devinfo, devinfo_data, reserved1, reserved2);
return TRUE;
}
/***********************************************************************
* SetupTerminateFileLog(SETUPAPI.@)
*/