RtlStringCchLengthW
NTSTATUS __stdcall RtlStringCchLengthW(STRSAFE_PCNZWCH psz, SIZE_T cchMax, SIZE_T *pcchLength){
SIZE_T i;
NTSTATUS result;
if( psz && cchMax <= 0x7FFFFFFF )
{
for( i = cchMax; i; --i )
{
if( !*psz )
break;
++psz;
}
result = i == 0 ? 0xC000000D : 0;
if( pcchLength )
{
if( i )
*pcchLength = cchMax - i;
else
*pcchLength = 0i64;
}
}
else
{
result = -1073741811;
}
if( result < 0 )
{
if( pcchLength )
*pcchLength = 0i64;
}
return result;
}Referenced by:
AslPathCombine
AslStringDuplicate
DbgkWerCaptureLiveKernelDump
IoCreateDriver
PiCMCreateDevice
PiCMGenerateDeviceInstance
PiUEventCopyEventData
PiUEventHandleRegistration
PiUEventProcessBroadcastNotifications
PnpAllocatePWSTR
PnpConcatPWSTR
PnpGetDeviceDependencyList
PnpGetMultiSzLength
PnpValidateMultiSz
PopPlInitWString
PpmEventTraceProfiles
PpmRegisterProfiles
RtlpIdnToUnicodeWorker
RtlpNameprepAsciiRealWorker
RtlpValidAttribute
SepParseElamCertResources
TtmNotifyDeviceArrival
WmipMangleInstanceName