Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
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
Um ponteiro para o primeiro bloco de memória.
[in] Source2
Um ponteiro para o segundo bloco de memória.
[in] Length
O número de bytes a serem comparados.
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
A rotina começa comparando o primeiro byte no primeiro bloco com o primeiro byte no segundo bloco e continua comparando bytes sucessivos nos dois blocos enquanto os bytes correspondem. 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 (include Wdm.h, Ntddk.h, Ntifs.h) |
| Library | NtosKrnl.lib; OneCoreUAP.lib no Windows 10 |
| DLL | NtDll.dll (modo de usuário); Kernel32.dll (modo de usuário); NtosKrnl.exe (modo kernel) |
| IRQL | Qualquer nível (seção Ver Comentários) |
| regras de conformidade de DDI | BufAfterReqCompletedIntIoctlA(kmdf), BufAfterReqCompletedIoctlA(kmdf), BufAfterReqCompletedReadA(kmdf), BufAfterReqCompletedWriteA(kmdf) |