[NDK][NTOS:INBV] Remove non-exported INBV functions from NDK; do some cleanup in INBV headers; label both InbvSetProgressBarSubset() and InbvSetProgressBarCoordinates() as INIT_FUNCTION since they are used only for the boot splash. And fix MSVC build.

This commit is contained in:
Hermès Bélusca-Maïto 2019-11-25 15:54:45 +01:00
parent 04c8ed493d
commit 28b77a40ca
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 60 additions and 52 deletions

View file

@ -847,6 +847,7 @@ InbvScreenToBufferBlt(IN PUCHAR Buffer,
} }
} }
INIT_FUNCTION
VOID VOID
NTAPI NTAPI
InbvSetProgressBarCoordinates(IN ULONG Left, InbvSetProgressBarCoordinates(IN ULONG Left,
@ -860,6 +861,7 @@ InbvSetProgressBarCoordinates(IN ULONG Left,
ShowProgressBar = TRUE; ShowProgressBar = TRUE;
} }
INIT_FUNCTION
VOID VOID
NTAPI NTAPI
InbvSetProgressBarSubset(IN ULONG Floor, InbvSetProgressBarSubset(IN ULONG Floor,

View file

@ -1,19 +1,8 @@
#pragma once #pragma once
INIT_FUNCTION //
VOID // Driver Initialization
NTAPI //
InbvUpdateProgressBar(
IN ULONG Progress
);
INIT_FUNCTION
VOID
NTAPI
InbvRotBarInit(
VOID
);
INIT_FUNCTION INIT_FUNCTION
BOOLEAN BOOLEAN
NTAPI NTAPI
@ -22,11 +11,55 @@ InbvDriverInitialize(
IN ULONG Count IN ULONG Count
); );
extern BOOLEAN InbvBootDriverInstalled;
PUCHAR
NTAPI
InbvGetResourceAddress(
IN ULONG ResourceNumber
);
VOID
NTAPI
InbvBitBlt(
IN PUCHAR Buffer,
IN ULONG X,
IN ULONG Y
);
//
// Progress-Bar Functions
//
INIT_FUNCTION INIT_FUNCTION
VOID VOID
NTAPI NTAPI
InbvEnableBootDriver( InbvIndicateProgress(
IN BOOLEAN Enable VOID
);
INIT_FUNCTION
VOID
NTAPI
InbvSetProgressBarSubset(
_In_ ULONG Floor,
_In_ ULONG Ceiling
);
INIT_FUNCTION
VOID
NTAPI
InbvUpdateProgressBar(
IN ULONG Progress
);
//
// Boot Splash-Screen Functions
//
INIT_FUNCTION
VOID
NTAPI
InbvRotBarInit(
VOID
); );
INIT_FUNCTION INIT_FUNCTION
@ -50,27 +83,9 @@ FinalizeBootLogo(
VOID VOID
); );
PUCHAR //
NTAPI // Headless Terminal Support Functions
InbvGetResourceAddress( //
IN ULONG ResourceNumber
);
VOID
NTAPI
InbvBitBlt(
IN PUCHAR Buffer,
IN ULONG X,
IN ULONG Y
);
INIT_FUNCTION
VOID
NTAPI
InbvIndicateProgress(
VOID
);
VOID VOID
NTAPI NTAPI
InbvPortEnableFifo( InbvPortEnableFifo(
@ -78,6 +93,12 @@ InbvPortEnableFifo(
IN BOOLEAN Enable IN BOOLEAN Enable
); );
BOOLEAN
NTAPI
InbvPortPollOnly(
IN ULONG PortId
);
BOOLEAN BOOLEAN
NTAPI NTAPI
InbvPortGetByte( InbvPortGetByte(
@ -107,11 +128,3 @@ InbvPortInitialize(
OUT PULONG PortId, OUT PULONG PortId,
IN BOOLEAN IsMMIODevice IN BOOLEAN IsMMIODevice
); );
BOOLEAN
NTAPI
InbvPortPollOnly(
IN ULONG PortId
);
extern BOOLEAN InbvBootDriverInstalled;

View file

@ -115,12 +115,5 @@ InbvSolidColorFill(
_In_ ULONG Color _In_ ULONG Color
); );
VOID
NTAPI
InbvSetProgressBarSubset(
_In_ ULONG Floor,
_In_ ULONG Ceiling
);
#endif #endif
#endif #endif