Changeset 44173 in vbox for trunk/src/VBox/HostDrivers/Support/win
- Timestamp:
- Dec 19, 2012 6:12:31 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82883
- Location:
- trunk/src/VBox/HostDrivers/Support/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r43394 r44173 265 265 pFileObj->FsContext = NULL; 266 266 PSUPDRVSESSION pSession; 267 int rc = supdrvCreateSession(pDevExt, true /*fUser*/, &pSession);267 int rc = supdrvCreateSession(pDevExt, true /*fUser*/, true /*fUnrestricted*/, &pSession); 268 268 if (!rc) 269 269 pFileObj->FsContext = pSession; -
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r37596 r44173 57 57 /** The support service name. */ 58 58 #define SERVICE_NAME "VBoxDrv" 59 /** Win32 Device name. */ 60 #define DEVICE_NAME "\\\\.\\VBoxDrv" 59 /** Win32 Device name - system. */ 60 #define DEVICE_NAME_SYS "\\\\.\\VBoxDrv" 61 /** Win32 Device name - user. */ 62 #define DEVICE_NAME_USR "\\\\.\\VBoxDrvU" 61 63 /** NT Device name. */ 62 64 #define DEVICE_NAME_NT L"\\Device\\VBoxDrv" … … 78 80 79 81 80 int suplibOsInit(PSUPLIBDATA pThis, bool fPreInited )82 int suplibOsInit(PSUPLIBDATA pThis, bool fPreInited, bool fUnrestricted) 81 83 { 82 84 /* … … 89 91 * Try open the device. 90 92 */ 91 HANDLE hDevice = CreateFile( DEVICE_NAME,93 HANDLE hDevice = CreateFile(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, 92 94 GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 93 95 NULL, … … 103 105 suplibOsStartService(); 104 106 105 hDevice = CreateFile( DEVICE_NAME,107 hDevice = CreateFile(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, 106 108 GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 107 109 NULL, … … 139 141 * We're done. 140 142 */ 141 pThis->hDevice = hDevice; 143 pThis->hDevice = hDevice; 144 pThis->fUnrestricted = fUnrestricted; 142 145 return VINF_SUCCESS; 143 146 }
Note:
See TracChangeset
for help on using the changeset viewer.