ReactOS 0.4.17-dev-51-g1dc2e6d
ntldropts.h
Go to the documentation of this file.
1/*
2 * PROJECT: FreeLoader
3 * LICENSE: Dual-licensed:
4 * GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
5 * MIT (https://spdx.org/licenses/MIT)
6 * PURPOSE: NT Kernel Load Options Support Functions
7 * COPYRIGHT: Copyright 2020-2026 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
8 */
9
10#pragma once
11
15 _Out_opt_ PULONG OptionLength);
16
20 _In_reads_(OptNameLength) PCCH OptionName,
21 _In_ ULONG OptNameLength,
22 _Out_opt_ PULONG OptionLength);
23
27 _In_ PCSTR OptionName,
28 _Out_opt_ PULONG OptionLength);
29
33 _In_ PCSTR OptionName);
34
35VOID
39 _In_ BOOLEAN Append,
40 _In_opt_ PCSTR NewOptions);
41
42VOID
46 _In_ BOOLEAN Append,
47 _In_opt_ PCSTR OptionsToAdd[],
48 _In_opt_ PCSTR OptionsToRemove[]);
unsigned char BOOLEAN
Definition: actypes.h:127
#define _In_reads_(s)
Definition: no_sal2.h:168
#define _Out_opt_
Definition: no_sal2.h:214
#define _Inout_
Definition: no_sal2.h:162
#define _Inout_updates_z_(s)
Definition: no_sal2.h:186
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
CONST CHAR * PCCH
Definition: ntbasedef.h:404
PCSTR NtLdrGetOptionEx(_In_ PCSTR Options, _In_ PCSTR OptionName, _Out_opt_ PULONG OptionLength)
Definition: ntldropts.c:117
PCSTR NtLdrGetNextOption(_Inout_ PCSTR *Options, _Out_opt_ PULONG OptionLength)
Definition: ntldropts.c:18
VOID NtLdrUpdateOptions(_Inout_updates_z_(BufferSize) PSTR LoadOptions, _In_ ULONG BufferSize, _In_ BOOLEAN Append, _In_opt_ PCSTR OptionsToAdd[], _In_opt_ PCSTR OptionsToRemove[])
Updates the options in the buffer pointed by LoadOptions, of maximum size BufferSize,...
Definition: ntldropts.c:244
VOID NtLdrAddOptions(_Inout_updates_z_(BufferSize) PSTR Options, _In_ ULONG BufferSize, _In_ BOOLEAN Append, _In_opt_ PCSTR NewOptions)
Appends or prepends new options to the ones originally contained in the buffer pointed by Options,...
Definition: ntldropts.c:141
PCSTR NtLdrGetOptionExN(_In_ PCSTR Options, _In_reads_(OptNameLength) PCCH OptionName, _In_ ULONG OptNameLength, _Out_opt_ PULONG OptionLength)
Definition: ntldropts.c:73
PCSTR NtLdrGetOption(_In_ PCSTR Options, _In_ PCSTR OptionName)
Definition: ntldropts.c:128
uint32_t * PULONG
Definition: typedefs.h:59
char * PSTR
Definition: typedefs.h:51
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG
Definition: typedefs.h:59
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3540
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254