ntstrsafe.h ヘッダー

C 言語ランタイム ライブラリによって提供される文字列操作関数の代わりに安全な文字列関数を使用する場合は、コードが信頼できないバッファー オーバーラン エラーからコードを保護します。 このヘッダーは、バッファー オーバーラン エラーを防ぐ方法で文字列をコピー、連結、および書式設定する関数を宣言します。

Unicode 文字列と ANSI 文字列を操作するために、各関数は次の 2 つのバージョンで使用できます。

  • 2 バイト Unicode 文字をサポートする W サフィックス付きバージョン。
  • 1 バイトの ANSI 文字をサポートする A サフィックス付きバージョン。

Unicode 文字列は、カーネル モード ドライバー のUNICODE_STRING 構造体内で指定されます。

詳細については、次を参照してください。

ntstrsafe.h には、次のプログラミング インターフェイスが含まれています。

関数

 
RtlStringCbCatA

RtlStringCbCatW 関数と RtlStringCbCatA 関数は、2 つのバイトカウント文字列を連結します。
RtlStringCbCatExA

RtlStringCbCatExW 関数と RtlStringCbCatExA 関数は、2 つのバイトカウント文字列を連結します。
RtlStringCbCatExW

RtlStringCbCatExW 関数と RtlStringCbCatExA 関数が 2 つのバイトカウント文字列を連結する方法について説明します。
RtlStringCbCatNA

RtlStringCbCatNW 関数と RtlStringCbCatNA 関数は、追加された文字列のサイズを制限しながら、2 つのバイトカウント文字列を連結します。
RtlStringCbCatNExA

RtlStringCbCatNExW 関数と RtlStringCbCatNExA 関数は、追加された文字列のサイズを制限しながら、2 つのバイトカウント文字列を連結します。
RtlStringCbCatNExW

RtlStringCbCatNExW 関数と RtlStringCbCatNExA 関数が、追加された文字列のサイズを制限しながら、2 つのバイトカウント文字列を連結する方法について説明します。
RtlStringCbCatNW

RtlStringCbCatNW 関数と RtlStringCbCatNA 関数が、追加された文字列のサイズを制限しながら、2 つのバイトカウント文字列を連結する方法について説明します。
RtlStringCbCatW

RtlStringCbCatW 関数と RtlStringCbCatA 関数が 2 つのバイトカウント文字列を連結する方法について説明します。
RtlStringCbCopyA

RtlStringCbCopyW 関数と RtlStringCbCopyA 関数は、バイトカウント文字列をバッファーにコピーします。
RtlStringCbCopyExA

RtlStringCbCopyExW 関数と RtlStringCbCopyExA 関数は、バイトカウント文字列をバッファーにコピーします。
RtlStringCbCopyExW

RtlStringCbCopyExW 関数と RtlStringCbCopyExA 関数がバイトカウント文字列をバッファーにコピーする方法について説明します。
RtlStringCbCopyNA

RtlStringCbCopyNW 関数と RtlStringCbCopyNA 関数は、コピーした文字列のサイズを制限しながら、バイトカウント文字列をバッファーにコピーします。
RtlStringCbCopyNExA

RtlStringCbCopyNExW 関数と RtlStringCbCopyNExA 関数は、コピーした文字列のサイズを制限しながら、バイトカウント文字列をバッファーにコピーします。
RtlStringCbCopyNExW

RtlStringCbCopyNExW 関数と RtlStringCbCopyNExA 関数が、コピーした文字列のサイズを制限しながら、バイトカウント文字列をバッファーにコピーする方法について説明します。
RtlStringCbCopyNW

RtlStringCbCopyNW 関数と RtlStringCbCopyNA 関数がバイトカウント文字列をバッファーにコピーし、コピーした文字列のサイズを制限する方法について説明します。
RtlStringCbCopyUnicodeString

RtlStringCbCopyUnicodeString 関数は、UNICODE_STRING構造体の内容を指定したコピー先にコピーします。
RtlStringCbCopyUnicodeStringEx

RtlStringCbCopyUnicodeStringEx 関数は、UNICODE_STRING構造体の内容を指定したコピー先にコピーします。
RtlStringCbCopyW

RtlStringCbCopyW 関数と RtlStringCbCopyA 関数がバイトカウント文字列をバッファーにコピーする方法について説明します。
RtlStringCbLengthA

RtlStringCbLengthW 関数と RtlStringCbLengthA 関数は、指定された文字列の長さをバイト単位で決定します。
RtlStringCbLengthW

RtlStringCbLengthW 関数と RtlStringCbLengthA 関数が、指定された文字列の長さをバイト単位で決定する方法について説明します。
RtlStringCbPrintfA

RtlStringCbPrintfW 関数と RtlStringCbPrintfA 関数は、指定された書式設定情報に基づく書式設定を使用して、バイトカウントテキスト文字列を作成します。
RtlStringCbPrintfExA

RtlStringCbPrintfExW 関数と RtlStringCbPrintfExA 関数は、指定された書式設定情報に基づく書式設定を使用して、バイトカウントテキスト文字列を作成します。
RtlStringCbPrintfExW

RtlStringCbPrintfExW 関数と RtlStringCbPrintfExA 関数が、指定された書式設定情報に基づく書式設定を使用してバイトカウントテキスト文字列を作成する方法について説明します。
RtlStringCbPrintfW

RtlStringCbPrintfW 関数と RtlStringCbPrintfA 関数が、指定された書式設定情報に基づく書式設定を使用してバイトカウントテキスト文字列を作成する方法について説明します。
RtlStringCbVPrintfA

RtlStringCbVPrintfW 関数と RtlStringCbVPrintfA 関数は、指定された書式設定情報に基づく書式設定を使用して、バイトカウントテキスト文字列を作成します。
RtlStringCbVPrintfExA

RtlStringCbVPrintfExW 関数と RtlStringCbVPrintfExA 関数は、指定された書式設定情報に基づく書式設定を使用して、バイトカウントテキスト文字列を作成します。
RtlStringCbVPrintfExW

RtlStringCbVPrintfExW 関数と RtlStringCbVPrintfExA 関数が、指定された書式設定情報に基づく書式設定を使用してバイトカウントテキスト文字列を作成する方法について説明します。
RtlStringCbVPrintfW

RtlStringCbVPrintfW 関数と RtlStringCbVPrintfA 関数が、指定された書式設定情報に基づく書式設定を使用してバイトカウントテキスト文字列を作成する方法について説明します。
RtlStringCchCatA

RtlStringCchCatW 関数と RtlStringCchCatA 関数は、2 つの文字カウント文字列を連結します。
RtlStringCchCatExA

RtlStringCchCatExW 関数と RtlStringCchCatExA 関数は、2 つの文字カウント文字列を連結します。
RtlStringCchCatExW

RtlStringCchCatExW 関数と RtlStringCchCatExA 関数が 2 つの文字カウント文字列を連結する方法について説明します。
RtlStringCchCatNA

RtlStringCchCatNW 関数と RtlStringCchCatNA 関数は、追加された文字列のサイズを制限しながら、2 つの文字カウント文字列を連結します。
RtlStringCchCatNExA

RtlStringCchCatNExW 関数と RtlStringCchCatNExA 関数は、追加された文字列のサイズを制限しながら、2 つの文字カウント文字列を連結します。
RtlStringCchCatNExW

RtlStringCchCatNExW 関数と RtlStringCchCatNExA 関数が、追加された文字列のサイズを制限しながら、2 つの文字カウント文字列を連結する方法について説明します。
RtlStringCchCatNW

RtlStringCchCatNW 関数と RtlStringCchCatNA 関数が、追加された文字列のサイズを制限しながら、2 つの文字カウント文字列を連結する方法について説明します。
RtlStringCchCatW

RtlStringCchCatW 関数と RtlStringCchCatA 関数が 2 つの文字カウント文字列を連結する方法について説明します。
RtlStringCchCopyA

RtlStringCchCopyW 関数と RtlStringCchCopyA 関数は、null で終わるソース文字列を、指定した長さの宛先バッファーにコピーします。
RtlStringCchCopyExA

RtlStringCchCopyExW 関数と RtlStringCchCopyExA 関数は、文字数カウントされた文字列をバッファーにコピーします。
RtlStringCchCopyExW

RtlStringCchCopyExW 関数と RtlStringCchCopyExA 関数が文字カウント文字列をバッファーにコピーする方法について説明します。
RtlStringCchCopyNA

RtlStringCchCopyNW 関数と RtlStringCchCopyNA 関数は、コピーした文字列のサイズを制限しながら、文字数をカウントした文字列をバッファーにコピーします。
RtlStringCchCopyNExA

RtlStringCchCopyNExW 関数と RtlStringCchCopyNExA 関数は、コピーした文字列のサイズを制限しながら、文字数をカウントした文字列をバッファーにコピーします。
RtlStringCchCopyNExW

RtlStringCchCopyNExW 関数と RtlStringCchCopyNExA 関数が、コピーした文字列のサイズを制限しながら、文字数をカウントした文字列をバッファーにコピーする方法について説明します。
RtlStringCchCopyNW

RtlStringCchCopyNW 関数と RtlStringCchCopyNA 関数が、コピーした文字列のサイズを制限しながら、文字数をカウントした文字列をバッファーにコピーする方法について説明します。
RtlStringCchCopyUnicodeString

RtlStringCchCopyUnicodeString 関数は、UNICODE_STRING構造体の内容を指定したコピー先にコピーします。
RtlStringCchCopyUnicodeStringEx

RtlStringCchCopyUnicodeStringEx 関数は、UNICODE_STRING構造体の内容を指定したコピー先にコピーします。
RtlStringCchCopyW

RtlStringCchCopyW 関数と RtlStringCchCopyA 関数が、null で終わるソース文字列を、指定した長さの宛先バッファーにコピーする方法について説明します。
RtlStringCchLengthA

RtlStringCchLengthW 関数と RtlStringCchLengthA 関数は、指定された文字列の長さを文字数で決定します。
RtlStringCchLengthW

RtlStringCchLengthW 関数と RtlStringCchLengthA 関数が、指定された文字列の長さを文字数で決定する方法について説明します。
RtlStringCchPrintfA

RtlStringCchPrintfW 関数と RtlStringCchPrintfA 関数は、指定された書式設定情報に基づく書式設定を使用して、文字数カウントされたテキスト文字列を作成します。
RtlStringCchPrintfExA

RtlStringCchPrintfExW 関数と RtlStringCchPrintfExA 関数は、指定された書式設定情報に基づく書式設定を使用して、文字カウントされたテキスト文字列を作成します。
RtlStringCchPrintfExW

RtlStringCchPrintfExW 関数と RtlStringCchPrintfExA 関数が、指定された書式設定情報に基づく書式設定を使用して文字カウントテキスト文字列を作成する方法について説明します。
RtlStringCchPrintfW

RtlStringCchPrintfW 関数と RtlStringCchPrintfA 関数が、指定された書式設定情報に基づく書式設定を使用して文字カウントテキスト文字列を作成する方法について説明します。
RtlStringCchVPrintfA

RtlStringCchVPrintfW 関数と RtlStringCchVPrintfA 関数は、指定された書式設定情報に基づく書式設定を使用して、文字カウントされたテキスト文字列を作成します。
RtlStringCchVPrintfExA

RtlStringCchVPrintfExW 関数と RtlStringCchVPrintfExA 関数は、指定された書式設定情報に基づく書式設定を使用して、文字カウントされたテキスト文字列を作成します。
RtlStringCchVPrintfExW

RtlStringCchVPrintfExW 関数と RtlStringCchVPrintfExA 関数が、指定された書式設定情報に基づく書式設定を使用して文字カウントテキスト文字列を作成する方法について説明します。
RtlStringCchVPrintfW

RtlStringCchVPrintfW 関数と RtlStringCchVPrintfA 関数が、指定された書式設定情報に基づく書式設定を使用して文字カウントテキスト文字列を作成する方法について説明します。
RtlUnalignedStringCbLengthW

RtlUnalignedStringCbLengthW 関数は、Unicode 文字の文字列への整列されていないポインターを受け取る RtlStringCbLength 関数のバージョンです。
RtlUnalignedStringCchLengthW

RtlUnalignedStringCchLengthW 関数は、Unicode 文字の文字列への整列されていないポインターを受け取る RtlStringCchLength 関数のバージョンです。
RtlUnicodeStringCat

RtlUnicodeStringCat 関数は、UNICODE_STRING構造体に含まれる 2 つの文字列を連結します。
RtlUnicodeStringCatEx

RtlUnicodeStringCatEx 関数は、UNICODE_STRING構造体に含まれる 2 つの文字列を連結します。
RtlUnicodeStringCatString

RtlUnicodeStringCatString 関数は、変換先の文字列がUNICODE_STRING構造体に含まれている場合に、2 つの文字列を連結します。
RtlUnicodeStringCatStringEx

RtlUnicodeStringCatStringEx 関数は、変換先の文字列がUNICODE_STRING構造体に含まれている場合に、2 つの文字列を連結します。
RtlUnicodeStringCbCatN

RtlUnicodeStringCbCatN 関数は、コピーした文字列のサイズを制限しながら、UNICODE_STRING構造体に含まれる 2 つの文字列を連結します。
RtlUnicodeStringCbCatNEx

RtlUnicodeStringCbCatNEx 関数は、コピーした文字列のサイズを制限しながら、UNICODE_STRING構造体に含まれる 2 つの文字列を連結します。
RtlUnicodeStringCbCatStringN

RtlUnicodeStringCbCatStringN 関数は、コピー先の文字列がUNICODE_STRING構造体に含まれている場合に 2 つの文字列を連結し、追加される文字列のサイズを制限します。
RtlUnicodeStringCbCatStringNEx

RtlUnicodeStringCbCatStringNEx 関数は、追加された文字列のサイズを制限しながら、変換先の文字列がUNICODE_STRING構造体に含まれている場合に、2 つの文字列を連結します。
RtlUnicodeStringCbCopyN

RtlUnicodeStringCbCopyN 関数は、コピーした文字列のサイズを制限しながら、1 つのUNICODE_STRING構造体から別の構造体に文字列をコピーします。
RtlUnicodeStringCbCopyNEx

RtlUnicodeStringCbCopyNEx 関数は、コピーした文字列のサイズを制限しながら、1 つのUNICODE_STRING構造体から別の構造体に文字列をコピーします。
RtlUnicodeStringCbCopyStringN

RtlUnicodeStringCbCopyStringN 関数は、コピーした文字列のサイズを制限しながら、文字列をUNICODE_STRING構造体にコピーします。
RtlUnicodeStringCbCopyStringNEx

RtlUnicodeStringCbCopyStringNEx 関数は、コピーした文字列のサイズを制限しながら、文字列をUNICODE_STRING構造体にコピーします。
RtlUnicodeStringCchCatN

RtlUnicodeStringCchCatN 関数は、コピーした文字列のサイズを制限しながら、UNICODE_STRING構造体に含まれる 2 つの文字列を連結します。
RtlUnicodeStringCchCatNEx

RtlUnicodeStringCchCatNEx 関数は、コピーした文字列のサイズを制限しながら、UNICODE_STRING構造体に含まれる 2 つの文字列を連結します。
RtlUnicodeStringCchCatStringN

RtlUnicodeStringCchCatStringN 関数は、追加された文字列のサイズを制限しながら、変換先の文字列がUNICODE_STRING構造体に含まれている場合に、2 つの文字列を連結します。
RtlUnicodeStringCchCatStringNEx

RtlUnicodeStringCchCatStringNEx 関数は、追加された文字列のサイズを制限しながら、変換先の文字列がUNICODE_STRING構造体に含まれている場合に 2 つの文字列を連結します。
RtlUnicodeStringCchCopyN

RtlUnicodeStringCchCopyN 関数は、コピーした文字列のサイズを制限しながら、1 つのUNICODE_STRING構造体から別の構造体に文字列をコピーします。
RtlUnicodeStringCchCopyNEx

RtlUnicodeStringCchCopyNEx 関数は、コピーした文字列のサイズを制限しながら、1 つのUNICODE_STRING構造体から別の構造体に文字列をコピーします。
RtlUnicodeStringCchCopyStringN

RtlUnicodeStringCchCopyStringN 関数は、コピーした文字列のサイズを制限しながら、文字列をUNICODE_STRING構造体にコピーします。
RtlUnicodeStringCchCopyStringNEx

RtlUnicodeStringCchCopyStringNEx 関数は、コピーした文字列のサイズを制限しながら、文字列をUNICODE_STRING構造体にコピーします。
RtlUnicodeStringCopy

RtlUnicodeStringCopy 関数は、あるUNICODE_STRING構造体から別の構造体に文字列をコピーします。
RtlUnicodeStringCopyEx

RtlUnicodeStringCopyEx 関数は、あるUNICODE_STRING構造体から別の構造体に文字列をコピーします。
RtlUnicodeStringCopyString

RtlUnicodeStringCopyString 関数は、文字列をUNICODE_STRING構造体にコピーします。
RtlUnicodeStringCopyStringEx

RtlUnicodeStringCopyStringEx 関数は、文字列をUNICODE_STRING構造体にコピーします。
RtlUnicodeStringInit

RtlUnicodeStringInit 関数は、UNICODE_STRING構造体を初期化します。
RtlUnicodeStringInitEx

RtlUnicodeStringInitEx 関数は、UNICODE_STRING構造体を初期化します。
RtlUnicodeStringPrintf

RtlUnicodeStringPrintf 関数は、指定された書式設定情報に基づいて書式設定されたテキスト文字列を作成し、その文字列をUNICODE_STRING構造体に格納します。
RtlUnicodeStringPrintfEx

RtlUnicodeStringPrintfEx 関数は、指定された書式設定情報に基づいて書式設定されたテキスト文字列を作成し、その文字列をUNICODE_STRING構造体に格納します。
RtlUnicodeStringValidate

RtlUnicodeStringValidate 関数は、UNICODE_STRING構造体の内容を検証します。
RtlUnicodeStringValidateEx

RtlUnicodeStringValidateEx 関数は、UNICODE_STRING構造体の内容を検証します。
RtlUnicodeStringVPrintf

RtlUnicodeStringVPrintf 関数は、指定された書式設定情報に基づく書式設定を使用してテキスト文字列を作成し、その文字列をUNICODE_STRING構造体に格納します。
RtlUnicodeStringVPrintfEx

RtlUnicodeStringVPrintfEx 関数は、指定された書式設定情報に基づいて書式設定されたテキスト文字列を作成し、その文字列をUNICODE_STRING構造体に格納します。