Author: ion
Date: Tue Jan 31 02:33:02 2012
New Revision: 55345
URL:
http://svn.reactos.org/svn/reactos?rev=55345&view=rev
Log:
[NDK/RTL]: Fix RtlGetSetBootStatusData prototype and add the BSD Items that can be set
with it.
Modified:
trunk/reactos/include/ndk/rtlfuncs.h
trunk/reactos/include/ndk/rtltypes.h
trunk/reactos/lib/rtl/bootdata.c
Modified: trunk/reactos/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] Tue Jan 31 02:33:02 2012
@@ -3877,12 +3877,12 @@
NTSTATUS
NTAPI
RtlGetSetBootStatusData(
- HANDLE FileHandle,
- BOOLEAN WriteMode,
- DWORD DataClass,
- PVOID Buffer,
- ULONG BufferSize,
- DWORD DataClass2
+ IN HANDLE FileHandle,
+ IN BOOLEAN WriteMode,
+ IN RTL_BSD_ITEM_TYPE DataClass,
+ IN PVOID Buffer,
+ IN ULONG BufferSize,
+ OUT PULONG ReturnLength OPTIONAL
);
NTSYSAPI
Modified: trunk/reactos/include/ndk/rtltypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtltypes.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/rtltypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtltypes.h [iso-8859-1] Tue Jan 31 02:33:02 2012
@@ -366,6 +366,20 @@
#endif /* NTOS_MODE_USER */
#ifdef NTOS_MODE_USER
+
+//
+// Boot Status Data Field Types
+//
+typedef enum _RTL_BSD_ITEM_TYPE
+{
+ RtlBsdItemVersionNumber,
+ RtlBsdItemProductType,
+ RtlBsdItemAabEnabled,
+ RtlBsdItemAabTimeout,
+ RtlBsdItemBootGood,
+ RtlBsdItemBootShutdown,
+ RtlBsdItemMax
+} RTL_BSD_ITEM_TYPE, *PRTL_BSD_ITEM_TYPE;
//
// Table and Compare result types
Modified: trunk/reactos/lib/rtl/bootdata.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/bootdata.c?rev=553…
==============================================================================
--- trunk/reactos/lib/rtl/bootdata.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/bootdata.c [iso-8859-1] Tue Jan 31 02:33:02 2012
@@ -686,12 +686,12 @@
*/
NTSTATUS
NTAPI
-RtlGetSetBootStatusData(HANDLE Filehandle,
- BOOLEAN WriteMode,
- DWORD DataClass,
- PVOID Buffer,
- ULONG BufferSize,
- DWORD DataClass2)
+RtlGetSetBootStatusData(IN HANDLE Filehandle,
+ IN BOOLEAN WriteMode,
+ IN RTL_BSD_ITEM_TYPE DataClass,
+ IN PVOID Buffer,
+ IN ULONG BufferSize,
+ OUT PULONG ReturnLength)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;