VirtualBox

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

Last change on this file since 35018 was 35018, checked in by vboxsync, 14 years ago

Replaced ntdll.lib from the WINDDK with a mini version that avoids the CRT poison.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: ntdll-mini-implib.c 35018 2010-12-13 14:46:17Z vboxsync $ */
2/** @file
3 * IPRT - Minimal NTDLL import library defintion file.
4 */
5
6/*
7 * Copyright (C) 2010 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;
37
38
39NTSYSAPI ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
40{
41 return 1;
42}
43
44NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MaximumResolution,
45 OUT PULONG MinimumResolution,
46 OUT PULONG CurrentResolution)
47{
48 return -1;
49}
50
51NTSYSAPI NTSTATUS WINAPI NtQueryInformationFile(HANDLE h,
52 PIO_STATUS_BLOCK b,
53 PVOID c,
54 LONG d,
55 FILE_INFORMATION_CLASS e)
56{
57 return -1;
58}
59
60NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE FileHandle,
61 OUT PIO_STATUS_BLOCK IoStatusBlock,
62 IN PVOID FileInformation,
63 IN ULONG Length,
64 IN FILE_INFORMATION_CLASS FileInformationClass)
65{
66 return -1;
67}
68
69NTSYSAPI LONG NTAPI NtSetTimerResolution(IN ULONG DesiredResolution,
70 IN BOOLEAN SetResolution,
71 OUT PULONG CurrentResolution)
72{
73 return -1;
74}
75
76NTSYSAPI NTSTATUS NTAPI NtQueryVolumeInformationFile(HANDLE h,
77 PIO_STATUS_BLOCK IoStatusBlock,
78 PVOID pvBuf,
79 ULONG cbBuf,
80 FS_INFORMATION_CLASS FsInformationClass)
81{
82 return -1;
83}
84
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