Changeset 46896 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Timestamp:
- Jul 2, 2013 8:16:43 AM (11 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r45037 r46896 546 546 } 547 547 548 case IOCTL_VIDEO_QUERY_VBOXVIDEO_INFO: 549 { 550 STARTIO_IN(ULONG, pulInfoLevel); 551 if (*pulInfoLevel == VBOXVIDEO_INFO_LEVEL_REGISTRY_FLAGS) 552 { 553 STARTIO_OUT(ULONG, pulFlags); 554 bResult = VBoxMPQueryRegistryFlags(pExt, pulFlags, pStatus); 555 } 556 else 557 { 558 pStatus->Status = ERROR_INVALID_PARAMETER; 559 bResult = FALSE; 560 } 561 562 break; 563 } 564 548 565 default: 549 566 { -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPIOCTL.cpp
r45037 r46896 617 617 } 618 618 #endif 619 620 BOOLEAN VBoxMPQueryRegistryFlags(PVBOXMP_DEVEXT pExt, ULONG *pulFlags, PSTATUS_BLOCK pStatus) 621 { 622 BOOLEAN bRC = TRUE; 623 LOGF_ENTER(); 624 625 VBOXMPCMNREGISTRY Registry; 626 627 int rc = VBoxMPCmnRegInit(pExt, &Registry); 628 VBOXMP_WARN_VPS_NOBP(rc); 629 630 if (rc == NO_ERROR) 631 { 632 uint32_t u32Flags = 0; 633 rc = VBoxMPCmnRegQueryDword(Registry, L"VBoxVideoFlags", &u32Flags); 634 VBOXMP_WARN_VPS_NOBP(rc); 635 if (rc != NO_ERROR) 636 { 637 u32Flags = 0; 638 } 639 640 LOG(("Registry flags 0x%08X", u32Flags)); 641 *pulFlags = u32Flags; 642 pStatus->Information = sizeof(ULONG); 643 } 644 645 rc = VBoxMPCmnRegFini(Registry); 646 VBOXMP_WARN_VPS_NOBP(rc); 647 648 LOGF_LEAVE(); 649 return bRC; 650 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPInternal.h
r36867 r46896 62 62 BOOLEAN VBoxMPHgsmiHandlerEnable(PVBOXMP_DEVEXT pExt, HGSMIHANDLERENABLE *pChannel, PSTATUS_BLOCK pStatus); 63 63 BOOLEAN VBoxMPVhwaQueryInfo(PVBOXMP_DEVEXT pExt, VHWAQUERYINFO *pInfo, PSTATUS_BLOCK pStatus); 64 BOOLEAN VBoxMPQueryRegistryFlags(PVBOXMP_DEVEXT pExt, ULONG *pulFlags, PSTATUS_BLOCK pStatus); 64 65 65 66 #endif /*VBOXMPINTERNAL_H*/
Note:
See TracChangeset
for help on using the changeset viewer.