test: ofsmisc.c File Reference

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# ofsmisc.c File Reference

`#include <nt.h>`
`#include <ntrtl.h>`
`#include <nturtl.h>`
`#include <windows.h>`
`#include <ole2.h>`

Go to the source code of this file.

## Functions

NTSTATUS | SynchronousNtFsControlFile (IN HANDLE h, OUT IO_STATUS_BLOCK *pisb, IN ULONG FsControlCode, IN VOID *pvIn OPTIONAL, IN ULONG cbIn, OUT VOID *pvOut OPTIONAL, IN ULONG cbOut)
VOID __cdecl | _purecall (VOID)

## Function Documentation

VOID __cdecl _purecall | ( | VOID |  | ) |

Definition at line 622 of file ofsmisc.c.

References ASSERTMSG, FALSE, and RtlRaiseStatus().

    00623 {
    00624     ASSERTMSG("_purecall() was called", FALSE);
    00625     RtlRaiseStatus(STATUS_NOT_IMPLEMENTED);
    00626 }

NTSTATUS SynchronousNtFsControlFile | ( | IN HANDLE | h,
|  | OUT IO_STATUS_BLOCK * | pisb,
|  | IN ULONG | FsControlCode,
|  | IN VOID *pvIn | OPTIONAL,
|  | IN ULONG | cbIn,
|  | OUT VOID *pvOut | OPTIONAL,
|  | IN ULONG | cbOut
| ) |

Definition at line 36 of file ofsmisc.c.

References NtFsControlFile(), NTSTATUS(), NtWaitForSingleObject(), NULL, Status, and TRUE.

    00044 {
    00045     NTSTATUS Status;
    00046
    00047     Status = NtFsControlFile(
    00048                     h,
    00049                     NULL,
    00050                     NULL,
    00051                     NULL,
    00052                     pisb,
    00053                     FsControlCode,
    00054                     pvIn,
    00055                     cbIn,
    00056                     pvOut,
    00057                     cbOut);
    00058
    00059     if (Status == STATUS_PENDING)
    00060     {
    00061         Status = NtWaitForSingleObject(h, TRUE, NULL);
    00062     }
    00063     return(Status);
    00064 }