VirtualBox

source: vbox/trunk/src/VBox/Runtime/r3/win/vcc100-kernel32-fakesA.asm@ 70360

Last change on this file since 70360 was 70345, checked in by vboxsync, 7 years ago

IPRT: More NT 3.1 compatibility tweaking.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1; $Id: vcc100-kernel32-fakesA.asm 70345 2017-12-26 15:51:56Z vboxsync $
2;; @file
3; IPRT - Wrappers for kernel32 APIs missing in NT4 and earlier.
4;
5
6;
7; Copyright (C) 2006-2017 Oracle Corporation
8;
9; This file is part of VirtualBox Open Source Edition (OSE), as
10; available from http://www.215389.xyz. 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 "iprt/asmdefs.mac"
29
30%ifndef RT_ARCH_X86
31 %error "This is x86 only code.
32%endif
33
34
35%macro MAKE_IMPORT_ENTRY 2
36extern _ %+ %1 %+ @ %+ %2
37global __imp__ %+ %1 %+ @ %+ %2
38__imp__ %+ %1 %+ @ %+ %2:
39 dd _ %+ %1 %+ @ %+ %2
40
41%endmacro
42
43
44BEGINDATA
45GLOBALNAME vcc100_kernel32_fakes_asm
46
47; NT 4
48MAKE_IMPORT_ENTRY DecodePointer, 4
49MAKE_IMPORT_ENTRY EncodePointer, 4
50MAKE_IMPORT_ENTRY InitializeCriticalSectionAndSpinCount, 8
51MAKE_IMPORT_ENTRY HeapSetInformation, 16
52MAKE_IMPORT_ENTRY HeapQueryInformation, 20
53MAKE_IMPORT_ENTRY CreateTimerQueue, 0
54MAKE_IMPORT_ENTRY CreateTimerQueueTimer, 28
55MAKE_IMPORT_ENTRY DeleteTimerQueueTimer, 12
56MAKE_IMPORT_ENTRY InitializeSListHead, 4
57MAKE_IMPORT_ENTRY InterlockedFlushSList, 4
58MAKE_IMPORT_ENTRY InterlockedPopEntrySList, 4
59MAKE_IMPORT_ENTRY InterlockedPushEntrySList, 8
60MAKE_IMPORT_ENTRY QueryDepthSList, 4
61MAKE_IMPORT_ENTRY VerifyVersionInfoA, 16
62MAKE_IMPORT_ENTRY VerSetConditionMask, 16
63; NT 3.51
64MAKE_IMPORT_ENTRY IsProcessorFeaturePresent, 4
65MAKE_IMPORT_ENTRY CancelIo, 4
66; NT 3.50
67MAKE_IMPORT_ENTRY IsDebuggerPresent, 0
68MAKE_IMPORT_ENTRY GetSystemTimeAsFileTime, 4
69; NT 3.1
70MAKE_IMPORT_ENTRY GetVersionExA, 4
71MAKE_IMPORT_ENTRY GetVersionExW, 4
72MAKE_IMPORT_ENTRY GetEnvironmentStringsW, 0
73MAKE_IMPORT_ENTRY FreeEnvironmentStringsW, 4
74MAKE_IMPORT_ENTRY GetLocaleInfoA, 16
75MAKE_IMPORT_ENTRY EnumSystemLocalesA, 8
76MAKE_IMPORT_ENTRY IsValidLocale, 8
77MAKE_IMPORT_ENTRY SetThreadAffinityMask, 8
78MAKE_IMPORT_ENTRY GetProcessAffinityMask, 12
79MAKE_IMPORT_ENTRY GetHandleInformation, 8
80MAKE_IMPORT_ENTRY SetHandleInformation, 12
81
Note: See TracBrowser for help on using the repository browser.

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