Lines Matching defs:pVuDev
105 int usbLibVuDeviceValidate(PVBOXUSB_DEV pVuDev)
109 hOut = CreateFile(pVuDev->szName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ, NULL,
115 AssertMsgFailed(("CreateFile FAILED to open %s, winEr (%d)\n", pVuDev->szName, winEr));
151 static int usbLibVuDevicePopulate(PVBOXUSB_DEV pVuDev, HDEVINFO hDevInfo, PSP_DEVICE_INTERFACE_DATA pIfData)
190 strncpy(pVuDev->szName, pIfDetailData->DevicePath, sizeof (pVuDev->szName));
194 (PBYTE)pVuDev->szDriverRegName,
195 sizeof (pVuDev->szDriverRegName),
199 AssertMsgFailed(("SetupDiGetDeviceRegistryPropertyA, cbRequired (%d), was (%d), winEr (%d)\n", cbDbgRequired, sizeof (pVuDev->szDriverRegName), winEr));
204 rc = usbLibVuDeviceValidate(pVuDev);
258 PVBOXUSB_DEV pVuDev = (PVBOXUSB_DEV)RTMemAllocZ(sizeof (*pVuDev));
259 if (!pVuDev)
265 int rc = usbLibVuDevicePopulate(pVuDev, hDevInfo, &IfData);
272 pVuDev->pNext = *ppVuDevs;
273 *ppVuDevs = pVuDev;