VirtualBox

Changeset 58197 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Oct 12, 2015 3:20:00 PM (9 years ago)
Author:
vboxsync
Message:

VBoxGuestR0LibSharedFolders.h: Removed unused windows cruft.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h

    r58196 r58197  
    2929
    3030#include <VBox/VBoxGuestLib.h>
    31 #if 0 /* aparently no longer needed (see below) */
    32 #ifndef _NTIFS_
    33 # ifdef RT_OS_WINDOWS
    34 #  undef PAGE_SIZE
    35 #  undef PAGE_SHIFT
    36 #  if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
    37 #   include <iprt/asm.h>
    38 #   define _InterlockedExchange           _InterlockedExchange_StupidDDKvsCompilerCrap
    39 #   define _InterlockedExchangeAdd        _InterlockedExchangeAdd_StupidDDKvsCompilerCrap
    40 #   define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKvsCompilerCrap
    41 #   define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKvsCompilerCrap
    42 #   pragma warning(disable : 4163)
    43     RT_C_DECLS_BEGIN
    44 #   include <ntddk.h>
    45     RT_C_DECLS_END
    46 #   pragma warning(default : 4163)
    47 #   undef  _InterlockedExchange
    48 #   undef  _InterlockedExchangeAdd
    49 #   undef  _InterlockedCompareExchange
    50 #   undef  _InterlockedAddLargeStatistic
    51 #  else
    52     RT_C_DECLS_BEGIN
    53 #   include <ntddk.h>
    54     RT_C_DECLS_END
    55 #  endif
    56 # endif
    57 #endif
    58 #endif
    59 
    6031#if defined(RT_OS_WINDOWS)
    6132# include <VBox/log.h>
    6233#endif
    63 
    6434#include <iprt/assert.h>
    65 
    6635#include <VBox/shflsvc.h>
    6736
     
    7746    SHFLROOT root;
    7847} 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_WINDOWS
    98 /** Device extension structure for each drive letter we created. */
    99 typedef struct _VBSFDRIVE
    100 {
    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 #endif
    12948
    13049DECLVBGL(int)  VbglR0SfInit(void);
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