reactos/sdk/include/ndk/inbvfuncs.h
Timo Kreuzer 71fefa32db
[NDK][NTOS] Add global definition of INIT_FUNCTION/INIT_SECTION (#779)
* Add an NDK header to define INIT_FUNCTION/INIT_SECTION globally
* Use _declspec(allocate(x)) and _declspec(code_seg(x)) on MSVC versions that support it
* Use INIT_FUNCTION on functions only and INIT_SECTION on data only (required by MSVC)
* Place INIT_FUNCTION before the return type (required by MSVC)
* Make sure declarations and implementations share the same modifiers (required by MSVC)
* Add a global linker option to suppress warnings about defined but unused INIT section
* Merge INIT section into .text in freeldr
2018-12-30 12:19:11 +01:00

128 lines
1.5 KiB
C

/*++ NDK Version: 0098
Copyright (c) Alex Ionescu. All rights reserved.
Header Name:
inbvfuncs.h
Abstract:
Function definitions for the Boot Video Driver.
Author:
Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
--*/
#ifndef _INBVFUNCS_H
#define _INBVFUNCS_H
//
// Dependencies
//
#include <umtypes.h>
#include <inbvtypes.h>
#include <section_attribs.h>
#ifndef NTOS_MODE_USER
//
// Ownership Functions
//
VOID
NTAPI
InbvAcquireDisplayOwnership(
VOID
);
BOOLEAN
NTAPI
InbvCheckDisplayOwnership(
VOID
);
VOID
NTAPI
InbvNotifyDisplayOwnershipLost(
_In_ INBV_RESET_DISPLAY_PARAMETERS Callback
);
//
// Installation Functions
//
INIT_FUNCTION
VOID
NTAPI
InbvEnableBootDriver(
_In_ BOOLEAN Enable
);
VOID
NTAPI
InbvInstallDisplayStringFilter(
_In_ INBV_DISPLAY_STRING_FILTER DisplayFilter
);
BOOLEAN
NTAPI
InbvIsBootDriverInstalled(
VOID
);
//
// Display Functions
//
BOOLEAN
NTAPI
InbvDisplayString(
_In_ PCHAR String
);
BOOLEAN
NTAPI
InbvEnableDisplayString(
_In_ BOOLEAN Enable
);
BOOLEAN
NTAPI
InbvResetDisplay(
VOID
);
VOID
NTAPI
InbvSetScrollRegion(
_In_ ULONG Left,
_In_ ULONG Top,
_In_ ULONG Right,
_In_ ULONG Bottom
);
VOID
NTAPI
InbvSetTextColor(
_In_ ULONG Color
);
VOID
NTAPI
InbvSolidColorFill(
_In_ ULONG Left,
_In_ ULONG Top,
_In_ ULONG Right,
_In_ ULONG Bottom,
_In_ ULONG Color
);
VOID
NTAPI
InbvSetProgressBarSubset(
_In_ ULONG Floor,
_In_ ULONG Ceiling
);
#endif
#endif