VirtualBox

Changeset 64248 in vbox


Ignore:
Timestamp:
Oct 13, 2016 1:12:36 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111257
Message:

Windows build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase-win.cpp

    r64246 r64248  
    2121#define _interlockedbittestandset64    they_messed_it_up_in_winnt_h_this_time_sigh__interlockedbittestandset64
    2222#define _interlockedbittestandreset64  they_messed_it_up_in_winnt_h_this_time_sigh__interlockedbittestandreset64
     23
     24#define WIN32_NO_STATUS
    2325#include <iprt/win/windows.h>
     26#include <dbt.h>
     27#undef WIN32_NO_STATUS
     28
    2429#include <winioctl.h>
    2530#include <ntddscsi.h>
     
    2934#undef _interlockedbittestandset64
    3035#undef _interlockedbittestandreset64
     36#include <ntstatus.h>
     37
     38/* from ntdef.h */
     39typedef LONG NTSTATUS;
     40
     41/* from ntddk.h */
     42typedef struct _IO_STATUS_BLOCK {
     43    union {
     44        NTSTATUS Status;
     45        PVOID Pointer;
     46    };
     47    ULONG_PTR Information;
     48} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
     49
     50
     51/* from ntinternals.com */
     52typedef enum _FS_INFORMATION_CLASS {
     53    FileFsVolumeInformation=1,
     54    FileFsLabelInformation,
     55    FileFsSizeInformation,
     56    FileFsDeviceInformation,
     57    FileFsAttributeInformation,
     58    FileFsControlInformation,
     59    FileFsFullSizeInformation,
     60    FileFsObjectIdInformation,
     61    FileFsMaximumInformation
     62} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
     63
     64typedef struct _FILE_FS_SIZE_INFORMATION {
     65    LARGE_INTEGER   TotalAllocationUnits;
     66    LARGE_INTEGER   AvailableAllocationUnits;
     67    ULONG           SectorsPerAllocationUnit;
     68    ULONG           BytesPerSector;
     69} FILE_FS_SIZE_INFORMATION, *PFILE_FS_SIZE_INFORMATION;
     70
     71extern "C"
     72NTSTATUS __stdcall NtQueryVolumeInformationFile(
     73        /*IN*/ HANDLE               FileHandle,
     74        /*OUT*/ PIO_STATUS_BLOCK    IoStatusBlock,
     75        /*OUT*/ PVOID               FileSystemInformation,
     76        /*IN*/ ULONG                Length,
     77        /*IN*/ FS_INFORMATION_CLASS FileSystemInformationClass );
    3178
    3279#include <iprt/file.h>
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