VirtualBox

source: vbox/trunk/src/VBox/Runtime/r3/win/ntdll-mini-implib.c@ 46727

Last change on this file since 46727 was 43386, checked in by vboxsync, 12 years ago

exploring nt.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1/* $Id: ntdll-mini-implib.c 43386 2012-09-21 08:40:12Z vboxsync $ */
2/** @file
3 * IPRT - Minimal NTDLL import library defintion file.
4 */
5
6/*
7 * Copyright (C) 2010-2012 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 */
26
27
28#include <Windows.h>
29
30#undef NTSYSAPI
31#define NTSYSAPI __declspec(dllexport)
32
33typedef LONG NTSTATUS;
34typedef PVOID PIO_STATUS_BLOCK;
35typedef INT FILE_INFORMATION_CLASS;
36typedef INT FS_INFORMATION_CLASS;
37typedef INT MEMORY_INFORMATION_CLASS;
38typedef INT PROCESSINFOCLASS;
39
40
41/* Error/status conversion: */
42
43NTSYSAPI ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
44{
45 return 1;
46}
47
48
49/* Queries: */
50
51NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MaximumResolution,
52 OUT PULONG MinimumResolution,
53 OUT PULONG CurrentResolution)
54{
55 return -1;
56}
57
58NTSYSAPI NTSTATUS WINAPI NtQueryInformationFile(IN HANDLE h,
59 OUT PIO_STATUS_BLOCK b,
60 OUT PVOID pvBuf,
61 IN LONG cbBuf,
62 IN FILE_INFORMATION_CLASS e)
63{
64 return -1;
65}
66
67NTSYSAPI NTSTATUS NTAPI NtQueryInformationProcess(IN HANDLE hProcess,
68 IN PROCESSINFOCLASS enmProcInfo,
69 OUT PVOID pvBuf,
70 IN SIZE_T cbBuf,
71 OUT PSIZE_T pcbReturned OPTIONAL)
72{
73 return -1;
74}
75
76NTSYSAPI NTSTATUS NTAPI NtQueryVolumeInformationFile(IN HANDLE hFile,
77 OUT PIO_STATUS_BLOCK IoStatusBlock,
78 OUT PVOID pvBuf,
79 IN ULONG cbBuf,
80 IN FS_INFORMATION_CLASS FsInformationClass)
81{
82 return -1;
83}
84
85NTSYSAPI NTSTATUS NTAPI NtQueryVirtualMemory(IN HANDLE hProcess,
86 IN LPCVOID pvWhere,
87 IN MEMORY_INFORMATION_CLASS MemoryInfo,
88 OUT PVOID pvBuf,
89 IN SIZE_T cbBuf,
90 OUT PSIZE_T pcbReturned OPTIONAL)
91{
92 return -1;
93}
94
95
96/* Setters: */
97
98NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE FileHandle,
99 OUT PIO_STATUS_BLOCK IoStatusBlock,
100 IN PVOID FileInformation,
101 IN ULONG Length,
102 IN FILE_INFORMATION_CLASS FileInformationClass)
103{
104 return -1;
105}
106
107NTSYSAPI LONG NTAPI NtSetTimerResolution(IN ULONG DesiredResolution,
108 IN BOOLEAN SetResolution,
109 OUT PULONG CurrentResolution)
110{
111 return -1;
112}
113
114
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette