Export Unicode string support functions
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 26s
Builds / ExectOS (i686, release) (push) Successful in 30s
Builds / ExectOS (i686, debug) (push) Successful in 42s
Builds / ExectOS (amd64, debug) (push) Successful in 43s

This commit is contained in:
2026-06-24 09:48:39 +02:00
parent 79c9b2abef
commit c309bd769d

View File

@@ -392,6 +392,29 @@ RtlCopyString(IN PCHAR Destination,
RTL::String::CopyString(Destination, Source, Length);
}
/**
* Copies a source Unicode string to a destination Unicode string.
*
* @param Destination
* Supplies a pointer to the destination string.
*
* @param Source
* Supplies an optional pointer to the source string. If this parameter is not provided,
* the destination string is effectively emptied.
*
* @return This routine does not return any value.
*
* @since NT 3.5
*/
XTCLINK
XTAPI
VOID
RtlCopyUnicodeString(IN OUT PUNICODE_STRING Destination,
IN PCUNICODE_STRING Source)
{
RTL::Unicode::CopyString(Destination, Source);
}
/**
* Copies a wide string from a buffer into another buffer, ensuring that the destination string is NULL-terminated.
*
@@ -628,6 +651,50 @@ RtlInitializeListHead(IN PLIST_ENTRY ListHead)
RTL::LinkedList::InitializeListHead(ListHead);
}
/**
* Initializes a Unicode string.
*
* @param Destination
* Supplies a pointer to the UNICODE_STRING structure to be initialized.
*
* @param Source
* Supplies an optional pointer to a NULL-terminated wide character string.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTCLINK
XTAPI
VOID
RtlInitializeUnicodeString(OUT PUNICODE_STRING Destination,
IN PCWSTR Source)
{
RTL::Unicode::InitializeString(Destination, Source, TRUE);
}
/**
* Initializes a Unicode string.
*
* @param Destination
* Supplies a pointer to the UNICODE_STRING structure to be initialized.
*
* @param Source
* Supplies an optional pointer to a NULL-terminated wide character string.
*
* @return This routine returns a status code indicating the success or failure of the operation.
*
* @since XT 1.0
*/
XTCLINK
XTAPI
XTSTATUS
RtlInitializeUnicodeStringEx(OUT PUNICODE_STRING Destination,
IN PCWSTR Source)
{
return RTL::Unicode::InitializeString(Destination, Source);
}
/**
* This routine inserts an entry at the head of a doubly linked list.
*