543{
550 INT CharacteristicsInt;
551 DWORD Characteristics;
559
562
564
565
568 {
570 ERR(
"SetupDiGetSelectedDriverW() failed with error 0x%lx\n", rc);
572 }
573
577 {
579 ERR(
"SetupDiGetDriverInfoDetailW() failed with error 0x%lx\n", rc);
581 }
582
585 {
587 ERR(
"SetupOpenInfFileW() failed with error 0x%lx\n", rc);
589 }
590
592 {
594 ERR(
"SetupDiGetActualSectionToInstallW() failed with error 0x%lx\n", rc);
596 }
597
598
600 {
602 ERR(
"Unable to find key %S in section %S of file %S (error 0x%lx)\n",
603 L"Characteristics", SectionName, DriverInfoDetail.
InfFileName, rc);
605 }
606
608 {
610 ERR(
"SetupGetIntField() failed with error 0x%lx\n", rc);
612 }
613
614 Characteristics = (
DWORD)CharacteristicsInt;
616 {
618 {
620 {
622 ERR(
"SetupGetStringFieldW() failed with error 0x%lx\n", rc);
624 }
625
628 {
629 ERR(
"HeapAlloc() failed\n");
632 }
633
635 {
637 ERR(
"SetupGetStringFieldW() failed with error 0x%lx\n", rc);
639 }
640 }
641 }
642
643
646 {
647 ERR(
"UuidCreate() failed with RPC status 0x%lx\n", RpcStatus);
650 }
651
654 {
655 ERR(
"UuidToStringW() failed with RPC status 0x%lx\n", RpcStatus);
658 }
659
660
662 if (!UuidString)
663 {
664 ERR(
"HeapAlloc() failed\n");
667 }
668
670 wcscat(UuidString, UuidRpcString);
672
681 else
682 {
683 ERR(
"Invalid class guid\n");
685 }
686
690 if (UuidRpcString !=
NULL)
694
695 TRACE(
"Returning 0x%lx\n", rc);
696 return rc;
697}
#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