Export (0) Print
Expand All

Safe String Functions for UNICODE_STRING Structures

Use the functions in this section to manipulate strings within UNICODE_STRING structures in kernel-mode drivers.

If you use the safe string functions instead of the string manipulation functions that C-language run-time libraries provide, you protect your code from buffer overrun errors that can make code untrustworthy. For more information about safe string functions, see Using Safe String Functions.

In this section

TopicDescription

RtlStringCbCopyUnicodeString

The RtlStringCbCopyUnicodeString function copies the contents of a UNICODE_STRING structure to a specified destination.

RtlStringCbCopyUnicodeStringEx

The RtlStringCbCopyUnicodeStringEx function copies the contents of a UNICODE_STRING structure to a specified destination.

RtlStringCchCopyUnicodeString

The RtlStringCchCopyUnicodeString function copies the contents of a UNICODE_STRING structure to a specified destination.

RtlStringCchCopyUnicodeStringEx

The RtlStringCchCopyUnicodeStringEx function copies the contents of a UNICODE_STRING structure to a specified destination.

RtlUnicodeStringCat

The RtlUnicodeStringCat function concatenates two strings that are contained in UNICODE_STRING structures.

RtlUnicodeStringCatEx

The RtlUnicodeStringCatEx function concatenates two strings that are contained in UNICODE_STRING structures.

RtlUnicodeStringCatString

The RtlUnicodeStringCatString function concatenates two strings when the destination string is contained in a UNICODE_STRING structure.

RtlUnicodeStringCatStringEx

The RtlUnicodeStringCatStringEx function concatenates two strings when the destination string is contained in a UNICODE_STRING structure.

RtlUnicodeStringCbCatN

The RtlUnicodeStringCbCatN function concatenates two strings that are contained in UNICODE_STRING structures while limiting the size of the copied string.

RtlUnicodeStringCbCatNEx

The RtlUnicodeStringCbCatNEx function concatenates two strings that are contained in UNICODE_STRING structures while limiting the size of the copied string.

RtlUnicodeStringCbCatStringN

The RtlUnicodeStringCbCatStringN function concatenates two strings when the destination string is contained in a UNICODE_STRING structure, while limiting the size of the appended string.

RtlUnicodeStringCbCatStringNEx

The RtlUnicodeStringCbCatStringNEx function concatenates two strings when the destination string is contained in a UNICODE_STRING structure, while limiting the size of the appended string.

RtlUnicodeStringCbCopyN

The RtlUnicodeStringCbCopyN function copies a string from one UNICODE_STRING structure to another while limiting the size of the copied string.

RtlUnicodeStringCbCopyNEx

The RtlUnicodeStringCbCopyNEx function copies a string from one UNICODE_STRING structure to another while limiting the size of the copied string.

RtlUnicodeStringCbCopyStringN

The RtlUnicodeStringCbCopyStringN function copies a string into a UNICODE_STRING structure while limiting the size of the copied string.

RtlUnicodeStringCbCopyStringNEx

The RtlUnicodeStringCbCopyStringNEx function copies a string into a UNICODE_STRING structure while limiting the size of the copied string.

RtlUnicodeStringCchCatN

The RtlUnicodeStringCchCatN function concatenates two strings that are contained in UNICODE_STRING structures while limiting the size of the copied string.

RtlUnicodeStringCchCatNEx

The RtlUnicodeStringCchCatNEx function concatenates two strings that are contained in UNICODE_STRING structures while limiting the size of the copied string.

RtlUnicodeStringCchCatStringN

The RtlUnicodeStringCchCatStringN function concatenates two strings when the destination string is contained in a UNICODE_STRING structure, while limiting the size of the appended string.

RtlUnicodeStringCchCatStringNEx

The RtlUnicodeStringCchCatStringNEx function concatenates two strings when the destination string is contained in a UNICODE_STRING structure, while limiting the size of the appended string.

RtlUnicodeStringCchCopyN

The RtlUnicodeStringCchCopyN function copies a string from one UNICODE_STRING structure to another while limiting the size of the copied string.

RtlUnicodeStringCchCopyNEx

The RtlUnicodeStringCchCopyNEx function copies a string from one UNICODE_STRING structure to another while limiting the size of the copied string.

RtlUnicodeStringCchCopyStringN

The RtlUnicodeStringCchCopyStringN function copies a string into a UNICODE_STRING structure while limiting the size of the copied string.

RtlUnicodeStringCchCopyStringNEx

The RtlUnicodeStringCchCopyStringNEx function copies a string into a UNICODE_STRING structure while limiting the size of the copied string.

RtlUnicodeStringCopy

The RtlUnicodeStringCopy function copies a string from one UNICODE_STRING structure to another.

RtlUnicodeStringCopyEx

The RtlUnicodeStringCopyEx function copies a string from one UNICODE_STRING structure to another.

RtlUnicodeStringCopyString

The RtlUnicodeStringCopyString function copies a string into a UNICODE_STRING structure.

RtlUnicodeStringCopyStringEx

The RtlUnicodeStringCopyStringEx function copies a string into a UNICODE_STRING structure.

RtlUnicodeStringInit

The RtlUnicodeStringInit function initializes a UNICODE_STRING structure.

RtlUnicodeStringInitEx

The RtlUnicodeStringInitEx function initializes a UNICODE_STRING structure.

RtlUnicodeStringPrintf

The RtlUnicodeStringPrintf function creates a text string, with formatting that is based on supplied formatting information, and stores the string in a UNICODE_STRING structure.

RtlUnicodeStringPrintfEx

The RtlUnicodeStringPrintfEx function creates a text string, with formatting that is based on supplied formatting information, and stores the string in a UNICODE_STRING structure.

RtlUnicodeStringValidate

The RtlUnicodeStringValidate function validates the contents of a UNICODE_STRING structure.

RtlUnicodeStringValidateEx

The RtlUnicodeStringValidateEx function validates the contents of a UNICODE_STRING structure.

RtlUnicodeStringVPrintf

The RtlUnicodeStringVPrintf function creates a text string, with formatting that is based on supplied formatting information, and stores the string in a UNICODE_STRING structure.

RtlUnicodeStringVPrintfEx

The RtlUnicodeStringVPrintfEx function creates a text string, with formatting that is based on supplied formatting information, and stores the string in a UNICODE_STRING structure.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft