RtlIntToULong 函式 (ntintsafe.h)

INT 類型的值轉換為 ULONGLONG 類型的值。

語法

NTSTATUS RtlIntToULongLong(
  [in]  INT       iOperand,
  [out] ULONGLONG *pullResult
);

參數

[in] iOperand

要轉換的值。

[out] pullResult

已轉換值的指標。 在轉換造成原始值的截斷的情況下,函式會傳回STATUS_INTEGER_OVERFLOW,而且此參數無效。

傳回值

如果作業成功,則傳回STATUS_SUCCESS。

如需可能的錯誤傳回值,請參閱 WDK 中 ntintsafe.h 這個協助程式函式的實作。

備註

這是一組內嵌函式,其設計目的是要提供類型轉換和執行有效性檢查,且對效能的影響最小。

這個函式會使用下列替代名稱:

  • RtlIntToDWordLong
  • RtlIntToULong64
  • RtlIntToDWord64
  • RtlIntToUInt64
  • RtlInt32ToULongLong
  • RtlInt32ToDWordLong
  • RtlInt32ToULong64
  • RtlInt32ToDWord64
  • RtlInt32ToUInt64
  • RtlIntToUIntPtr
  • RtlIntToSizeT
  • RtlInt32ToUIntPtr
  • RtlInt32ToSizeT
  • RtlIntToUIntPtr
  • RtlIntToULongPtr
  • RtlIntToDWordPtr
  • RtlIntToSIZET
  • RtlInt32ToULongPtr
  • RtlInt32ToDWordPtr
  • RtlInt32ToSIZET
  • RtlIntToULongPtr

規格需求

需求
目標平台 桌面
標頭 ntintsafe.h