VirtualBox

Changeset 42003 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 3, 2012 2:57:45 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78883
Message:

VBoxMMR: Switch to using Windows TSMF API hooking for redirection

Location:
trunk/src/VBox/Additions/WINNT
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsVista.nsh

    r41014 r42003  
    7777
    7878!ifdef VBOX_WITH_MMR
    79   FILE "$%PATH_OUT%\bin\additions\VBoxMMR.dll"
     79  FILE "$%PATH_OUT%\bin\additions\VBoxMMRHook.dll"
    8080!endif
    8181
     
    9090
    9191!ifdef VBOX_WITH_MMR
    92   DetailPrint "Registering VBoxMMR.dll ..."
    93   nsExec::ExecToLog '"$g_strSystemDir\regsvr32.exe" -s "$INSTDIR\VBoxMMR.dll"'
     92  !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxMMRHook.dll" "$g_strSystemDir\VBoxMMRHook.dll" "$INSTDIR"
     93  AccessControl::GrantOnFile "$g_strSystemDir\VBoxMMRHook.dll" "(BU)" "GenericRead"
    9494!endif
    9595
     
    135135
    136136!ifdef VBOX_WITH_MMR
    137    DetailPrint "Unregistering VBoxMMR.dll ..."
    138    nsExec::ExecToLog '"$g_strSystemDir\regsvr32.exe" -s -u "$INSTDIR\VBoxMMR.dll"'
    139 
    140    Delete /REBOOTOK "$INSTDIR\VBoxMMR.dll"
     137   Delete /REBOOTOK "$g_strSystemDir\VBoxMMRHook.dll"
     138   Delete /REBOOTOK "$INSTDIR\VBoxMMRHook.dll"
    141139!endif
    142140
  • trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk

    r41477 r42003  
    5151        mpr.lib
    5252endif
     53ifdef VBOX_WITH_MMR
     54 VBoxTray_DEFS     += VBOX_WITH_MMR
     55 VBoxTray_SOURCES  += \
     56        VBoxMMR.cpp
     57endif
    5358
    5459VBoxTray_LIBS     = \
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r40498 r42003  
    3232#include "VBoxIPC.h"
    3333#include "VBoxLA.h"
     34#include "VBoxMMR.h"
    3435#include <VBoxHook.h>
    3536#include "resource.h"
     
    114115        VBoxLADestroy
    115116    },
     117#ifdef VBOX_WITH_MMR
     118    {
     119        "Multimedia Redirection",
     120        VBoxMMRInit,
     121        VBoxMMRThread,
     122        VBoxMMRDestroy
     123    },
     124#endif
    116125    {
    117126        NULL
Note: See TracChangeset for help on using the changeset viewer.

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