Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
The RtlCompareMemory routine compares two blocks of memory and returns the number of bytes that match until the first difference.
Syntax
NTSYSAPI SIZE_T RtlCompareMemory(
[in] const VOID *Source1,
[in] const VOID *Source2,
[in] SIZE_T Length
);
Parameters
[in] Source1
Указатель на первый блок памяти.
[in] Source2
Указатель на второй блок памяти.
[in] Length
Число байтов для сравнения.
Return value
RtlCompareMemory returns the number of bytes in the two blocks that match. If all bytes match up to the specified Length value, the Length value is returned.
Remarks
Подпрограмма начинается с сравнения первого байта в первом блоке с первым байтом во втором блоке и продолжает сравнивать последовательные байты в двух блоках во время сопоставления байтов. The routine stops comparing bytes when it encounters the first pair of bytes that are not equal, or when the number of matching bytes equals the Length parameter value, whichever occurs first.
Callers of RtlCompareMemory can be running at any IRQL if both blocks of memory are resident.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | wdm.h (включите Wdm.h, Ntddk.h, Ntifs.h) |
Library | NtosKrnl.lib; OneCoreUAP.lib в Windows 10 |
DLL | NtDll.dll (режим пользователя); Kernel32.dll (режим пользователя); NtosKrnl.exe (режим ядра) |
IRQL | Любой уровень (см. раздел "Примечания") |
правил соответствия DDI | BufAfterReqCompletedIntIoctlA(kmdf), BufAfterReqCompletedIoctlA(kmdf), BufAfterReqCompletedReadA(kmdf), BufAfterReqCompletedWriteA(kmdf) |