62 if (Option && OptionLength)
88 if (!OptionName || (OptNameLength == 0) || !*OptionName)
99 if ((OptLength >= OptNameLength) &&
100 (
_strnicmp(Option, OptionName, OptNameLength) == 0))
102 if ((OptLength == OptNameLength) ||
103 (OptionName[OptNameLength-1] ==
'=') ||
104 (OptionName[OptNameLength-1] ==
':'))
111 if (Option && OptionLength)
112 *OptionLength = OptLength;
154 if (!NewOptions || !*NewOptions)
163 if (OptionsLength != 0 &&
164 (LoadOptions[OptionsLength-1] !=
' ') &&
165 (LoadOptions[OptionsLength-1] !=
'\t') &&
166 (*NewOptions !=
'\0') &&
167 (*NewOptions !=
' ') &&
168 (*NewOptions !=
'\t'))
183 if (NewOptsLength != 0 &&
184 (NewOptions[NewOptsLength-1] !=
' ') &&
185 (NewOptions[NewOptsLength-1] !=
'\t') &&
186 (*LoadOptions !=
'\0') &&
187 (*LoadOptions !=
' ') &&
188 (*LoadOptions !=
'\t'))
200 OptionsLength =
min(OptionsLength,
BufferSize - NewOptsLength);
203 OptionsLength *
sizeof(
CHAR));
205 (LoadOptions + NewOptsLength)[OptionsLength-1] =
'\0';
210 strncpy(LoadOptions, NewOptions, NewOptsLength);
ACPI_SIZE strlen(const char *String)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
static void AddSeparator(HWND hwndToolBar)
#define _strnicmp(_String1, _String2, _MaxCount)
static char * NextOption(const char *const ostr)
_In_ ULONG _In_ ULONG _In_ ULONG Length
PCSTR NtLdrGetOptionExN(IN PCSTR Options, IN PCCH OptionName, IN ULONG OptNameLength, OUT PULONG OptionLength OPTIONAL)
PCSTR NtLdrGetOption(IN PCSTR Options, IN PCSTR OptionName)
PCSTR NtLdrGetNextOption(IN OUT PCSTR *Options, OUT PULONG OptionLength OPTIONAL)
VOID NtLdrAddOptions(IN OUT PSTR LoadOptions, IN ULONG BufferSize, IN BOOLEAN Append, IN PCSTR NewOptions OPTIONAL)
PCSTR NtLdrGetOptionEx(IN PCSTR Options, IN PCSTR OptionName, OUT PULONG OptionLength OPTIONAL)
NTSTRSAFEAPI RtlStringCbCatA(_Inout_updates_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ NTSTRSAFE_PCSTR pszSrc)
_Check_return_ _CRTIMP size_t __cdecl strspn(_In_z_ const char *_Str, _In_z_ const char *_Control)
_Check_return_ _CRTIMP size_t __cdecl strcspn(_In_z_ const char *_Str, _In_z_ const char *_Control)
PULONG MinorVersion OPTIONAL
#define RtlMoveMemory(Destination, Source, Length)
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize