共用方式為


安全整數函式Kernel-Mode摘要

下表摘要說明核心模式驅動程式可用的安全整數函式。

函式 目的

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

轉換成 Char

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

RtlULongLongToLongLong
RtlULongPtrToLongLong
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
RtlLongLongToUInt
RtlIntPtrToUInt
RtlShortToUInt
RtlLongPtrToUInt
RtlLongToUInt
RtlUIntPtrToUInt
RtlIntToUInt
RtlULongLongToUInt
RtlULongPtrToUInt

轉換成 Uint

RtlUShortToUInt8
RtlInt8ToUInt8
RtlLongLongToUInt8
RtlIntToUInt8
RtlIntPtrToUInt8
RtlLongPtrToUInt8
RtlShortToUInt8
RtlLongToUInt8
RtlUIntPtrToUInt8
RtlUIntToUInt8
RtlULongLongToUInt8
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

RtlShortToULongLong
RtlInt8ToULongLong
RtlIntToULongLong
RtlLongLongToULongLong
RtlIntPtrToULongLong
RtlLongPtrToULongLong
RtlLongToULongLong

轉換成 ULongLong

RtlULongLongToULongPtr
RtlIntPtrToULongPtr
RtlLongPtrToULongPtr
RtlInt8ToULongPtr
RtlLongToULongPtr
RtlShortToULongPtr

轉換成 ULongPtr