内核模式安全整数函数摘要

下表总结了可用于内核模式驱动程序的安全整数函数。

函数 目的

RtlDWordPtrAdd
RtlInt8Add
RtlIntAdd
RtlIntPtrAdd
RtlLongLongAdd
RtlLongPtrAdd
RtlPtrdiffTAdd
RtlShortAdd
RtlSizeTAdd
RtlSSIZETAdd
RtlUInt8Add
RtlUIntAdd
RtlUIntPtrAdd
RtlULongAdd
RtlULongLongAdd
RtlULongPtrAdd
RtlUShortAdd

加法函数

RtlDWordPtrMult
RtlInt8Mult
RtlIntMult
RtlIntPtrMult
RtlLongLongMult
RtlLongMult
RtlLongPtrMult
RtlPtrdiffTMult
RtlShortMult
RtlSSIZETMult
RtlUInt8Mult
RtlSizeTMult
RtlULongMult
RtlULongLongMult
RtlUIntPtrMult
RtlUIntMult
RtlULongPtrMult
RtlUShortMult

乘法函数

RtlShortSub
RtlUShortSub
RtlULongPtrSub
RtlULongLongSub
RtlULongSub
RtluInt8Sub
RtlUIntPtrSub
RtlUIntSub
RtlSSIZETSub
RtlSizeTSub
RtlDWordPtrSub
RtlInt8Sub
RtlPtrdiffTSub
RtlLongSub
RtlIntSub
RtlLongLongSub
RtlIntPtrSub
RtlLongPtrSub

减法函数

RtlUShortToShort
RtlLongPtrToShort
RtlLongToShort
RtlLongLongToShort
RtlULongLongToShort
RtlULongToShort
RtlUIntPtrToShort
RtlULongPtrToShort
RtlUIntToShort
RtlIntPtrToShort
RtlIntToShort

转换为 Short

RtlLongPtrToChar
RtlLongLongToChar
RtlUInt8ToChar
RtlULongToChar
RtlLongToChar
RtlULongLongToChar
RtlUIntToChar
RtlIntToChar
RtlIntPtrToChar
RtlULongPtrToChar
RtlShortToChar
RtlUShortToChar
RtlByteToChar
RtlUIntPtrToChar

转换为字符

RtlIntPtrToInt
RtlLongLongToInt
RtlLongPtrToInt
RtlULongLongToInt
RtlULongPtrToInt
RtlLongToInt
RtlULongToInt
RtlUIntToInt
RtlUIntPtrToInt

转换为 Int

RtlUInt8ToInt8
RtlLongLongToInt8
RtlLongPtrToInt8
RtlULongPtrToInt8
RtlLongToInt8
RtlULongLongToInt8
RtlULongToInt8
RtlIntToInt8
RtlIntPtrToInt8
RtlUIntToInt8
RtlByteToInt8
RtlUIntPtrToInt8
RtlUShortToInt8
RtlShortToInt8

转换为 Int8

RtlUIntPtrToInt16

转换为 Int16

RtlLongLongToIntPtr
RtlLongPtrToIntPtr
RtlLongToIntPtr
RtlULongToIntPtr
RtlULongPtrToIntPtr
RtlUIntPtrToIntPtr
RtlUIntToIntPtr

转换为 IntPtr

RtlULongToLong
RtlIntPtrToLong
RtlLongLongToLong
RtlUIntPtrToLong
RtlLongPtrToLong
RtlUIntToLong
RtlULongLongToLong
RtlULongPtrToLong

转换为 Long

RtlIntPtrToLongPtr
RtlULongToLongPtr
RtlLongLongToLongPtr
RtlUIntPtrToLongPtr
RtlULongLongToLongPtr
RtlUIntToLongPtr
RtlULongPtrToLongPtr

转换为 LongPtr

RtlULongLongToLong
RtlULongPtrToLong
RtlUIntPtrToLong

转换为 LongLong

RtlIntPtrToUShort
RtlInt8ToUShort
RtlULongToUShort
RtlIntToUShort
RtlLongLongToUShort
RtlLongPtrToUShort
RtlLongToUShort
RtlShortToUShort
RtlUIntPtrToUShort
RtlUIntToUShort
RtlULongLongToUShort
RtlULongPtrToUShort

转换为 UShort

RtlUShortToUChar
RtlInt8ToUChar
RtlIntPtrToUChar
RtlIntToUChar
RtlLongLongToUChar
RtlLongPtrToUChar
RtlLongToUChar
RtlShortToUChar
RtlUIntPtrToUChar
RtlUIntToUChar
RtlULongLongToUChar
RtlULongPtrToUChar
RtlULongToUChar

转换为 UChar

RtlInt8ToUInt
RtlULongToUInt
RtlLongToUInt
RtlIntPtrToUInt
RtlShortToUInt
RtlLongPtrToUInt
RtlLongToUInt
RtlUIntPtrToUInt
RtlIntToUInt
RtlULongLongToUInt
RtlULongPtrToUInt

转换为 Uint

RtlUShortToUInt8
RtlInt8ToUInt8
RtlLongToUInt8
RtlIntToUInt8
RtlIntPtrToUInt8
RtlLongPtrToUInt8
RtlShortToUInt8
RtlLongToUInt8
RtlUIntPtrToUInt8
RtlUIntToUInt8
RtlULongToUInt8
RtlULongPtrToUInt8
RtlULongToUInt8

转换为 Uint8

RtlUIntPtrToUInt16

转换为 Uint16

RtlULongToUIntPtr
RtlLongToUIntPtr
RtlShortToUIntPtr
RtlInt8ToUIntPtr
RtlIntPtrToUIntPtr
RtlLongPtrToUIntPtr
RtlULongLongToUIntPtr
RtlULongPtrToUIntPtr

转换为 UintPtr

RtlULongPtrToULong
RtlInt8ToULong
RtlIntPtrToULong
RtlIntToULong
RtlLongLongToULong
RtlLongPtrToULong
RtlLongToULong
RtlShortToULong
RtlUIntPtrToULong
RtlULongLongToULong

转换为 ULong

RtlShortToULong
RtlInt8ToULong
RtlIntToULong
RtlLongLongToULong
RtlIntPtrToULong
RtlLongPtrToULong
RtlLongToULongLong

转换为 ULongLong

RtlULongLongToULongPtr
RtlIntPtrToULongPtr
RtlLongPtrToULongPtr
RtlInt8ToULongPtr
RtlLongToULongPtr
RtlShortToULongPtr

转换为 ULongPtr