VirtualBox

Changeset 54998 in vbox for trunk/include/iprt/nt/nt.h


Ignore:
Timestamp:
Mar 28, 2015 7:57:12 PM (10 years ago)
Author:
vboxsync
Message:

supHardNt: Some more memory replacment hacking - take evasive action on failure; flush log file and if possible log volume as we process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r54997 r54998  
    4646# define NtReadFile                     ZwReadFile
    4747# define NtWriteFile                    ZwWriteFile
     48# define NtFlushBuffersFile             ZwFlushBuffersFile
    4849/** @todo this is very incomplete! */
    4950#endif
     
    226227/** Initializes a IO_STATUS_BLOCK. */
    227228#define RTNT_IO_STATUS_BLOCK_INITIALIZER  { STATUS_FAILED_DRIVER_ENTRY, ~(uintptr_t)42 }
     229/** Reinitializes a IO_STATUS_BLOCK. */
     230#define RTNT_IO_STATUS_BLOCK_REINIT(a_pIos) \
     231    do { (a_pIos)->Status = STATUS_FAILED_DRIVER_ENTRY; (a_pIos)->Information = ~(uintptr_t)42; } while (0)
    228232/** Similar to INVALID_HANDLE_VALUE in the Windows environment. */
    229233#define RTNT_INVALID_HANDLE_VALUE         ( (HANDLE)~(uintptr_t)0 )
     
    16411645NTSYSAPI NTSTATUS NTAPI NtReadFile(HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID, PIO_STATUS_BLOCK, PVOID, ULONG, PLARGE_INTEGER, PULONG);
    16421646NTSYSAPI NTSTATUS NTAPI NtWriteFile(HANDLE, HANDLE, PIO_APC_ROUTINE, void const *, PIO_STATUS_BLOCK, PVOID, ULONG, PLARGE_INTEGER, PULONG);
     1647NTSYSAPI NTSTATUS NTAPI NtFlushBuffersFile(HANDLE, PIO_STATUS_BLOCK);
    16431648
    16441649NTSYSAPI NTSTATUS NTAPI NtReadVirtualMemory(HANDLE, PVOID, PVOID, SIZE_T, PSIZE_T);
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