Changeset 62666 in vbox for trunk/src/VBox/HostDrivers/Support/win
- Timestamp:
- Jul 28, 2016 11:45:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r62490 r62666 313 313 *********************************************************************************************************************************/ 314 314 RT_C_DECLS_BEGIN 315 ULONG_stdcall DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath);315 NTSTATUS _stdcall DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath); 316 316 RT_C_DECLS_END 317 317 … … 484 484 g_pDevObjUsr = NULL; 485 485 } 486 #endif487 486 IoDeleteDevice(g_pDevObjUsr); 488 487 g_pDevObjUsr = NULL; 488 #endif 489 489 } 490 490 IoDeleteDevice(g_pDevObjSys); … … 537 537 * @param pRegPath Registry base path. 538 538 */ 539 ULONG _stdcall DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath) 540 { 539 NTSTATUS _stdcall DriverEntry(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath) 540 { 541 RT_NOREF1(pRegPath); 542 541 543 /* 542 544 * Sanity checks. … … 1013 1015 PIO_STATUS_BLOCK pIoStatus, PDEVICE_OBJECT pDevObj) 1014 1016 { 1017 RT_NOREF1(fWait); 1018 1015 1019 /* 1016 1020 * Only the normal devices, not the stub or error info ones. … … 1097 1101 { 1098 1102 rcNt = GetExceptionCode(); 1103 Hdr.cbIn = Hdr.cbOut = 0; /* shut up MSC */ 1099 1104 } 1100 1105 } 1101 1106 else 1107 { 1108 Hdr.cbIn = Hdr.cbOut = 0; /* shut up MSC */ 1102 1109 rcNt = STATUS_INVALID_PARAMETER; 1110 } 1103 1111 if (NT_SUCCESS(rcNt)) 1104 1112 { … … 1450 1458 { 1451 1459 Log(("VBoxDrvNtRead\n")); 1460 RT_NOREF1(pDevObj); 1452 1461 1453 1462 NTSTATUS rcNt; … … 1579 1588 * 1580 1589 * @param pCallbackContext User supplied parameter (pDevObj) 1581 * @param pArgument1 First argument 1582 * @param pArgument2 Second argument 1583 */ 1584 VOID _stdcall VBoxPowerDispatchCallback(PVOID pCallbackContext, PVOID pArgument1, PVOID pArgument2) 1585 { 1586 PDEVICE_OBJECT pDevObj = (PDEVICE_OBJECT)pCallbackContext; 1587 1588 Log(("VBoxPowerDispatchCallback: %x %x\n", pArgument1, pArgument2)); 1590 * @param pvArgument1 First argument 1591 * @param pvArgument2 Second argument 1592 */ 1593 VOID _stdcall VBoxPowerDispatchCallback(PVOID pCallbackContext, PVOID pvArgument1, PVOID pvArgument2) 1594 { 1595 /*PDEVICE_OBJECT pDevObj = (PDEVICE_OBJECT)pCallbackContext;*/ RT_NOREF1(pCallbackContext); 1596 Log(("VBoxPowerDispatchCallback: %x %x\n", pvArgument1, pvArgument2)); 1589 1597 1590 1598 /* Power change imminent? */ 1591 if ((u nsigned)pArgument1 == PO_CB_SYSTEM_STATE_LOCK)1592 { 1593 if ( (unsigned)pArgument2 == 0)1599 if ((uintptr_t)pvArgument1 == PO_CB_SYSTEM_STATE_LOCK) 1600 { 1601 if (pvArgument2 == NULL) 1594 1602 Log(("VBoxPowerDispatchCallback: about to go into suspend mode!\n")); 1595 1603 else … … 1597 1605 1598 1606 /* Inform any clients that have registered themselves with IPRT. */ 1599 RTPowerSignalEvent( ((unsigned)pArgument2 == 0)? RTPOWEREVENT_SUSPEND : RTPOWEREVENT_RESUME);1607 RTPowerSignalEvent(pvArgument2 == NULL ? RTPOWEREVENT_SUSPEND : RTPOWEREVENT_RESUME); 1600 1608 } 1601 1609 } … … 1616 1624 pSession->pNtProtect = NULL; 1617 1625 } 1626 #else 1627 RT_NOREF2(pDevExt, pSession); 1618 1628 #endif 1619 1629 } … … 1668 1678 bool VBOXCALL supdrvOSGetForcedAsyncTscMode(PSUPDRVDEVEXT pDevExt) 1669 1679 { 1680 RT_NOREF1(pDevExt); 1670 1681 return false; 1671 1682 } … … 2131 2142 2132 2143 if (idCpu == NIL_RTCPUID) 2133 supdrvNtMsProber ReadOnCpu(idCpu, &Args, NULL);2144 supdrvNtMsProberWriteOnCpu(idCpu, &Args, NULL); 2134 2145 else 2135 2146 { 2136 int rc = RTMpOnSpecific(idCpu, supdrvNtMsProber ReadOnCpu, &Args, NULL);2147 int rc = RTMpOnSpecific(idCpu, supdrvNtMsProberWriteOnCpu, &Args, NULL); 2137 2148 if (RT_FAILURE(rc)) 2138 2149 return rc; … … 2158 2169 bool fRestoreGp = true; 2159 2170 RTCCUINTREG fOldFlags; 2171 RT_NOREF2(idCpu, pvUser2); 2160 2172 2161 2173 /*
Note:
See TracChangeset
for help on using the changeset viewer.