529{
536 INT CharacteristicsInt;
537 DWORD Characteristics;
545
548
550
551
554 {
556 ERR(
"SetupDiGetSelectedDriverW() failed with error 0x%lx\n", rc);
558 }
559
563 {
565 ERR(
"SetupDiGetDriverInfoDetailW() failed with error 0x%lx\n", rc);
567 }
568
571 {
573 ERR(
"SetupOpenInfFileW() failed with error 0x%lx\n", rc);
575 }
576
578 {
580 ERR(
"SetupDiGetActualSectionToInstallW() failed with error 0x%lx\n", rc);
582 }
583
584
586 {
588 ERR(
"Unable to find key %S in section %S of file %S (error 0x%lx)\n",
589 L"Characteristics", SectionName, DriverInfoDetail.
InfFileName, rc);
591 }
592
594 {
596 ERR(
"SetupGetIntField() failed with error 0x%lx\n", rc);
598 }
599
600 Characteristics = (
DWORD)CharacteristicsInt;
602 {
604 {
606 {
608 ERR(
"SetupGetStringFieldW() failed with error 0x%lx\n", rc);
610 }
611
614 {
615 ERR(
"HeapAlloc() failed\n");
618 }
619
621 {
623 ERR(
"SetupGetStringFieldW() failed with error 0x%lx\n", rc);
625 }
626 }
627 }
628
629
632 {
633 ERR(
"UuidCreate() failed with RPC status 0x%lx\n", RpcStatus);
636 }
637
640 {
641 ERR(
"UuidToStringW() failed with RPC status 0x%lx\n", RpcStatus);
644 }
645
646
648 if (!UuidString)
649 {
650 ERR(
"HeapAlloc() failed\n");
653 }
654
656 wcscat(UuidString, UuidRpcString);
658
667 else
668 {
669 ERR(
"Invalid class guid\n");
671 }
672
676 if (UuidRpcString !=
NULL)
680
681 TRACE(
"Returning 0x%lx\n", rc);
682 return rc;
683}
#define ERROR_INSUFFICIENT_BUFFER
BOOL WINAPI SetupDiGetActualSectionToInstallW(HINF InfHandle, PCWSTR InfSectionName, PWSTR InfSectionWithExt, DWORD InfSectionWithExtSize, PDWORD RequiredSize, PWSTR *Extension)
BOOL WINAPI SetupDiGetSelectedDriverW(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, OUT PSP_DRVINFO_DATA_W DriverInfoData)
BOOL WINAPI SetupDiGetDriverInfoDetailW(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL, IN PSP_DRVINFO_DATA_W DriverInfoData, IN OUT PSP_DRVINFO_DETAIL_DATA_W DriverInfoDetailData OPTIONAL, IN DWORD DriverInfoDetailDataSize, OUT PDWORD RequiredSize OPTIONAL)
HINF WINAPI SetupOpenInfFileW(PCWSTR name, PCWSTR class, DWORD style, UINT *error)
static DWORD InstallNetDevice(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData, LPCWSTR UuidString, DWORD Characteristics, LPCWSTR BusType)
static DWORD InstallNetService(VOID)
static DWORD InstallNetTransport(VOID)
static DWORD InstallNetClient(VOID)
#define IsEqualIID(riid1, riid2)
RPC_STATUS WINAPI UuidToStringW(UUID *Uuid, RPC_WSTR *StringUuid)
RPC_STATUS WINAPI RpcStringFreeW(RPC_WSTR *String)
RPC_STATUS WINAPI UuidCreate(UUID *Uuid)
struct _SP_DRVINFO_DETAIL_DATA_W SP_DRVINFO_DETAIL_DATA_W
SP_DRVINFO_DATA_V2_W SP_DRVINFO_DATA_W
#define ERROR_DI_DO_DEFAULT
#define DIF_INSTALLDEVICE
WCHAR SectionName[LINE_LEN]
WCHAR InfFileName[MAX_PATH]
BOOL WINAPI SetupGetStringFieldW(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT PWSTR ReturnBuffer, IN ULONG ReturnBufferSize, OUT PULONG RequiredSize)
BOOL WINAPI SetupFindFirstLineW(IN HINF InfHandle, IN PCWSTR Section, IN PCWSTR Key, IN OUT PINFCONTEXT Context)
BOOL WINAPI SetupGetIntField(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT INT *IntegerValue)
VOID WINAPI SetupCloseInfFile(IN HINF InfHandle)
#define RPC_S_UUID_LOCAL_ONLY