mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[STREAMCI]
- minor changes svn path=/trunk/; revision=66492
This commit is contained in:
parent
dd6ea04003
commit
02e6218232
1 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Configuration of network devices
|
||||
* FILE: dll/win32/streamci/streamci.c
|
||||
* PURPOSE: Streaming device class installer
|
||||
*
|
||||
* PROGRAMMERS: Johannes Anderwald (janderwald@reactos.org)
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
DWORD
|
||||
|
@ -56,7 +65,7 @@ InstallSoftwareDeviceInterface(IN LPGUID DeviceId,
|
|||
PSWENUM_INSTALL_INTERFACE InstallInterface;
|
||||
DWORD dwResult;
|
||||
|
||||
hDevInfo = SetupDiGetClassDevsW(&GUID_DEVCLASS_SYSTEM, NULL, NULL, DIGCF_DEVICEINTERFACE| DIGCF_PRESENT);
|
||||
hDevInfo = SetupDiGetClassDevsW(&SWBusGuid, NULL, NULL, DIGCF_DEVICEINTERFACE| DIGCF_PRESENT);
|
||||
if (!hDevInfo)
|
||||
{
|
||||
// failed
|
||||
|
@ -79,6 +88,7 @@ InstallSoftwareDeviceInterface(IN LPGUID DeviceId,
|
|||
return GetLastError();
|
||||
}
|
||||
|
||||
DeviceInterfaceDetailData->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W);
|
||||
if (!SetupDiGetDeviceInterfaceDetailW(hDevInfo, &DeviceInterfaceData, DeviceInterfaceDetailData,MAX_PATH * sizeof(WCHAR) + sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W), NULL, NULL))
|
||||
{
|
||||
// failed
|
||||
|
@ -87,7 +97,6 @@ InstallSoftwareDeviceInterface(IN LPGUID DeviceId,
|
|||
return GetLastError();
|
||||
}
|
||||
|
||||
|
||||
hDevice = CreateFileW(DeviceInterfaceDetailData->DevicePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED|FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (hDevice == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue