Changeset 58197 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Oct 12, 2015 3:20:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h
r58196 r58197 29 29 30 30 #include <VBox/VBoxGuestLib.h> 31 #if 0 /* aparently no longer needed (see below) */32 #ifndef _NTIFS_33 # ifdef RT_OS_WINDOWS34 # undef PAGE_SIZE35 # undef PAGE_SHIFT36 # if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)37 # include <iprt/asm.h>38 # define _InterlockedExchange _InterlockedExchange_StupidDDKvsCompilerCrap39 # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKvsCompilerCrap40 # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKvsCompilerCrap41 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKvsCompilerCrap42 # pragma warning(disable : 4163)43 RT_C_DECLS_BEGIN44 # include <ntddk.h>45 RT_C_DECLS_END46 # pragma warning(default : 4163)47 # undef _InterlockedExchange48 # undef _InterlockedExchangeAdd49 # undef _InterlockedCompareExchange50 # undef _InterlockedAddLargeStatistic51 # else52 RT_C_DECLS_BEGIN53 # include <ntddk.h>54 RT_C_DECLS_END55 # endif56 # endif57 #endif58 #endif59 60 31 #if defined(RT_OS_WINDOWS) 61 32 # include <VBox/log.h> 62 33 #endif 63 64 34 #include <iprt/assert.h> 65 66 35 #include <VBox/shflsvc.h> 67 36 … … 77 46 SHFLROOT root; 78 47 } VBGLSFMAP, *PVBGLSFMAP; 79 80 81 #if 0 /* Apparently unused cruft from old windows shared folder driver? */82 #define VBSF_DRIVE_LETTER_FIRST L'A'83 #define VBSF_DRIVE_LETTER_LAST L'Z'84 85 #define VBSF_MAX_DRIVES (VBSF_DRIVE_LETTER_LAST - VBSF_DRIVE_LETTER_FIRST)86 87 /* Poller thread flags. */88 #define VBSF_TF_NONE (0x0000)89 #define VBSF_TF_STARTED (0x0001)90 #define VBSF_TF_TERMINATE (0x0002)91 #define VBSF_TF_START_PROCESSING (0x0004)92 93 #define DRIVE_FLAG_WORKING (0x1)94 #define DRIVE_FLAG_LOCKED (0x2)95 #define DRIVE_FLAG_WRITE_PROTECTED (0x4)96 97 #ifdef RT_OS_WINDOWS98 /** Device extension structure for each drive letter we created. */99 typedef struct _VBSFDRIVE100 {101 /* A pointer to the Driver object we created for the drive. */102 PDEVICE_OBJECT pDeviceObject;103 104 /** Root handle to access the drive. */105 SHFLROOT root;106 107 /** Informational string - the resource name on host. */108 WCHAR awcNameHost[256];109 110 /** Guest drive letter. */111 WCHAR wcDriveLetter;112 113 /** DRIVE_FLAG_* */114 uint32_t u32DriveFlags;115 116 /** Head of FCB list. */117 LIST_ENTRY FCBHead;118 119 /* Synchronise requests directed to the drive. */120 ERESOURCE DriveResource;121 } VBSFDRIVE;122 typedef VBSFDRIVE *PVBSFDRIVE;123 #endif /* RT_OS_WINDOWS */124 125 /* forward decl */126 struct _MRX_VBOX_DEVICE_EXTENSION;127 typedef struct _MRX_VBOX_DEVICE_EXTENSION *PMRX_VBOX_DEVICE_EXTENSION;128 #endif129 48 130 49 DECLVBGL(int) VbglR0SfInit(void);
Note:
See TracChangeset
for help on using the changeset viewer.