[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
NTAPI
InbvSetProgressBarCoordinates(IN ULONG Left,
@ -860,6 +861,7 @@ InbvSetProgressBarCoordinates(IN ULONG Left,
ShowProgressBar = TRUE;
}
INIT_FUNCTION
VOID
NTAPI
InbvSetProgressBarSubset(IN ULONG Floor,

View file

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

View file

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