Summary of Kernel-Mode Safe String Functions
The following table summarizes the safe string functions that are available to kernel-mode drivers, and it indicates the C/C++ language runtime library functions that they replace. If a function's name contains Cb, the function treats strings as byte-counted. If a function's name contains Cch, the function treats strings as character-counted.
Functions | Purpose | Replaces |
---|---|---|
Concatenate two strings. |
|
|
Concatenate two byte-counted strings, while limiting the size of the appended string. |
|
|
Copy a string into a buffer. |
|
|
|
Copy a string into a buffer, while limiting the size of the copied string. |
|
Determine the length of a supplied string. |
|
|
Create a formatted text string that is based on a format string and a set of additional function arguments. |
|
|
Create a formatted text string that is based on a format string and one additional function argument. |
|
|
Initialize or validate a UNICODE_STRING structure. |
None |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for