Lines Matching defs:rc
50 int rc = DosCreateEventSem(NULL, &mhev, 0, FALSE);
51 rc = RTErrConvertFromOS2(rc);
52 if (RT_SUCCESS(rc))
54 rc = DosLoadModule(NULL, 0, (PCSZ)"usbcalls", &mhmod);
55 rc = RTErrConvertFromOS2(rc);
56 if (RT_SUCCESS(rc))
58 if ( (rc = DosQueryProcAddr(mhmod, 0, (PCSZ)"UsbQueryNumberDevices", (PPFN)&mpfnUsbQueryNumberDevices)) == NO_ERROR
59 && (rc = DosQueryProcAddr(mhmod, 0, (PCSZ)"UsbQueryDeviceReport", (PPFN)&mpfnUsbQueryDeviceReport)) == NO_ERROR
60 && (rc = DosQueryProcAddr(mhmod, 0, (PCSZ)"UsbRegisterChangeNotification", (PPFN)&mpfnUsbRegisterChangeNotification)) == NO_ERROR
61 && (rc = DosQueryProcAddr(mhmod, 0, (PCSZ)"UsbDeregisterNotification", (PPFN)&mpfnUsbDeregisterNotification)) == NO_ERROR
64 rc = mpfnUsbRegisterChangeNotification(&mNotifyId, mhev, mhev);
65 if (!rc)
70 rc = start();
71 if (RT_SUCCESS(rc))
79 LogRel(("USBProxyServiceOs2: failed to register change notification, rc=%d\n", rc));
87 LogRel(("USBProxyServiceOs2: failed to load usbcalls, rc=%d\n", rc));
93 mLastError = rc;
94 LogFlowThisFunc(("returns failure!!! (rc=%Rrc)\n", rc));
180 int rc = DosWaitEventSem(mhev, aMillies);
181 return RTErrConvertFromOS2(rc);
187 int rc = DosPostEventSem(mhev);
188 return rc == NO_ERROR || rc == ERROR_ALREADY_POSTED
190 : RTErrConvertFromOS2(rc);
201 int rc = mpfnUsbQueryNumberDevices((PULONG)&cDevices); /* Thanks to com/xpcom, PULONG and ULONG * aren't the same. */
202 if (rc)
217 rc = mpfnUsbQueryDeviceReport(i + 1, (PULONG)&cb, &abBuf[0]); /* see above (PULONG) */
218 if (rc)