VirtualBox

Ignore:
Timestamp:
Oct 17, 2024 1:45:57 PM (3 months ago)
Author:
vboxsync
Message:

Additions/VBoxTray: Kicked it to make it build with VBOX_WITH_WDDM=. That code area needs a major cleanup for better separation and interfacing later. Untested. bugref:10792

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp

    r106061 r106452  
    306306}
    307307
    308 HRESULT vboxDispKmtOpenAdapter(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter)
     308HRESULT VBoxWddmKmtOpenAdapter(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter)
    309309{
    310310    HRESULT hr = vboxDispKmtOpenAdapterViaHdc(pCallbacks, pAdapter);
     
    319319}
    320320
    321 HRESULT vboxDispKmtCloseAdapter(PVBOXDISPKMT_ADAPTER pAdapter)
     321HRESULT VBoxWddmKmtCloseAdapter(PVBOXDISPKMT_ADAPTER pAdapter)
    322322{
    323323    D3DKMT_CLOSEADAPTER ClosaAdapterData = {0};
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.h

    r106061 r106452  
    148148HRESULT vboxDispKmtCallbacksTerm(PVBOXDISPKMT_CALLBACKS pCallbacks);
    149149
    150 HRESULT vboxDispKmtOpenAdapter(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter);
    151 HRESULT vboxDispKmtCloseAdapter(PVBOXDISPKMT_ADAPTER pAdapter);
     150HRESULT VBoxWddmKmtOpenAdapter(const VBOXDISPKMT_CALLBACKS *pCallbacks, PVBOXDISPKMT_ADAPTER pAdapter);
     151HRESULT VBoxWddmKmtCloseAdapter(PVBOXDISPKMT_ADAPTER pAdapter);
    152152HRESULT vboxDispKmtCreateDevice(PVBOXDISPKMT_ADAPTER pAdapter, PVBOXDISPKMT_DEVICE pDevice);
    153153HRESULT vboxDispKmtDestroyDevice(PVBOXDISPKMT_DEVICE pDevice);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispMpLogger.cpp

    r106061 r106452  
    7878             * check if we can Open Adapter, i.e. WDDM driver is installed */
    7979            VBOXDISPKMT_ADAPTER Adapter;
    80             hr = vboxDispKmtOpenAdapter(&g_VBoxDispMpLogger.KmtCallbacks, &Adapter);
     80            hr = VBoxWddmKmtOpenAdapter(&g_VBoxDispMpLogger.KmtCallbacks, &Adapter);
    8181            if (hr == S_OK)
    8282            {
    8383                ASMAtomicWriteU32((volatile uint32_t *)&g_VBoxDispMpLogger.enmState, VBOXDISPMPLOGGER_STATE_INITIALIZED);
    84                 vboxDispKmtCloseAdapter(&Adapter);
     84                VBoxWddmKmtCloseAdapter(&Adapter);
    8585                return &g_VBoxDispMpLogger;
    8686            }
     
    125125
    126126    VBOXDISPKMT_ADAPTER Adapter;
    127     HRESULT hr = vboxDispKmtOpenAdapter(&pLogger->KmtCallbacks, &Adapter);
     127    HRESULT hr = VBoxWddmKmtOpenAdapter(&pLogger->KmtCallbacks, &Adapter);
    128128    if (hr == S_OK)
    129129    {
     
    157157            BP_WARN();
    158158        }
    159         hr = vboxDispKmtCloseAdapter(&Adapter);
     159        hr = VBoxWddmKmtCloseAdapter(&Adapter);
    160160        if(hr != S_OK)
    161161        {
     
    193193
    194194    VBOXDISPKMT_ADAPTER Adapter;
    195     HRESULT hr = vboxDispKmtOpenAdapter(&pLogger->KmtCallbacks, &Adapter);
     195    HRESULT hr = VBoxWddmKmtOpenAdapter(&pLogger->KmtCallbacks, &Adapter);
    196196    if (hr == S_OK)
    197197    {
     
    228228            BP_WARN();
    229229        }
    230         hr = vboxDispKmtCloseAdapter(&Adapter);
     230        hr = VBoxWddmKmtCloseAdapter(&Adapter);
    231231        if(hr != S_OK)
    232232        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette