VirtualBox

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

最後變更 在這個檔案從47533是 47533,由 vboxsync 提交於 12 年 前

Rewrote fs-win.cpp into a pure native NT version, this fixes the symbolic-link-in-path-not-followed issues that caused by having to guess the volume root in order to make the win32 (wrapper) API happy.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 4.7 KB
 
1/* $Id: ntdll-mini-implib.c 47533 2013-08-03 22:31:16Z 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.alldomusa.eu.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;
39typedef PVOID POBJECT_ATTRIBUTES;
40
41
42/* Error/status conversion: */
43
44NTSYSAPI ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
45{
46 return 1;
47}
48
49
50/* Queries: */
51
52NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MaximumResolution,
53 OUT PULONG MinimumResolution,
54 OUT PULONG CurrentResolution)
55{
56 return -1;
57}
58
59NTSYSAPI NTSTATUS WINAPI NtQueryInformationFile(IN HANDLE h,
60 OUT PIO_STATUS_BLOCK b,
61 OUT PVOID pvBuf,
62 IN LONG cbBuf,
63 IN FILE_INFORMATION_CLASS e)
64{
65 return -1;
66}
67
68NTSYSAPI NTSTATUS NTAPI NtQueryInformationProcess(IN HANDLE hProcess,
69 IN PROCESSINFOCLASS enmProcInfo,
70 OUT PVOID pvBuf,
71 IN SIZE_T cbBuf,
72 OUT PSIZE_T pcbReturned OPTIONAL)
73{
74 return -1;
75}
76
77NTSYSAPI NTSTATUS NTAPI NtQueryVolumeInformationFile(IN HANDLE hFile,
78 OUT PIO_STATUS_BLOCK IoStatusBlock,
79 OUT PVOID pvBuf,
80 IN ULONG cbBuf,
81 IN FS_INFORMATION_CLASS FsInformationClass)
82{
83 return -1;
84}
85
86NTSYSAPI NTSTATUS NTAPI NtQueryVirtualMemory(IN HANDLE hProcess,
87 IN LPCVOID pvWhere,
88 IN MEMORY_INFORMATION_CLASS MemoryInfo,
89 OUT PVOID pvBuf,
90 IN SIZE_T cbBuf,
91 OUT PSIZE_T pcbReturned OPTIONAL)
92{
93 return -1;
94}
95
96
97/* Setters: */
98
99NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE FileHandle,
100 OUT PIO_STATUS_BLOCK IoStatusBlock,
101 IN PVOID FileInformation,
102 IN ULONG Length,
103 IN FILE_INFORMATION_CLASS FileInformationClass)
104{
105 return -1;
106}
107
108NTSYSAPI LONG NTAPI NtSetTimerResolution(IN ULONG DesiredResolution,
109 IN BOOLEAN SetResolution,
110 OUT PULONG CurrentResolution)
111{
112 return -1;
113}
114
115
116
117/* Handles: */
118
119NTSYSAPI NTSTATUS NTAPI NtCreateFile(OUT PHANDLE FileHandle,
120 IN ACCESS_MASK DesiredAccess,
121 IN POBJECT_ATTRIBUTES ObjectAttributes,
122 OUT PIO_STATUS_BLOCK IoStatusBlock,
123 IN PLARGE_INTEGER AllocationSize OPTIONAL,
124 IN ULONG FileAttributes,
125 IN ULONG ShareAccess,
126 IN ULONG CreateDisposition,
127 IN ULONG CreateOptions,
128 IN PVOID EaBuffer,
129 IN ULONG EaLength)
130{
131 return -1;
132}
133
134NTSYSAPI NTSTATUS NTAPI NtClose(IN HANDLE Handle)
135{
136 return -1;
137}
138
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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