57 lines
822 B
C
57 lines
822 B
C
/*++
|
|
|
|
Copyright (c) 2024, Quinn Stephens.
|
|
Provided under the BSD 3-Clause license.
|
|
|
|
Module Name:
|
|
|
|
bcd.c
|
|
|
|
Abstract:
|
|
|
|
BCD (Boot Configuration Data, aka Boot Data Store) routines.
|
|
|
|
--*/
|
|
|
|
#include "bootlib.h"
|
|
|
|
NTSTATUS
|
|
BmOpenDataStore (
|
|
IN OUT PHANDLE DataStore
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
Opens the boot configuration data store.
|
|
|
|
Arguments:
|
|
|
|
DataStore - pointer to memory to put the data store handle in.
|
|
|
|
Return Value:
|
|
|
|
STATUS_SUCCESS if successful,
|
|
Other NTSTATUS value on failure.
|
|
|
|
--*/
|
|
|
|
{
|
|
*DataStore = INVALID_HANDLE_VALUE;
|
|
|
|
/*
|
|
NTSTATUS Status;
|
|
PBOOT_DEVICE Device;
|
|
PWSTR FilePath;
|
|
BOOLEAN FilePathSet;
|
|
|
|
Device = NULL;
|
|
FilePath = NULL;
|
|
FilePathSet = FALSE;
|
|
|
|
return BmGetDataStorePath(&Device, &FilePath, &FilePathSet);
|
|
*/
|
|
return STATUS_SUCCESS;
|
|
}
|