共用方式為


RtlLongLongToULongLong 函式 (ntintsafe.h)

LONGLONG 類型的值轉換為 LONGLONG 類型的值。

語法

NTSTATUS RtlLongLongToULongLong(
  [in]  LONGLONG  llOperand,
  [out] ULONGLONG *pullResult
);

參數

[in] llOperand

要轉換的值。

[out] pullResult

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

傳回值

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

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

備註

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

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

  • RtlIntPtrToUIntPtr
  • RtlIntPtrToULongPtr
  • RtlIntPtrToULongLong
  • RtlLongLongToUIntPtr
  • RtlLongLongToULongPtr
  • RtlLongLongToDWordLong
  • RtlLongLongToULong64
  • RtlLongLongToDWord64
  • RtlLongLongToUInt64
  • RtlLong64ToULongLong
  • RtlInt64ToULongLong
  • RtlInt64ToDWordLong
  • RtlInt64ToULong64
  • RtlInt64ToDWord64
  • RtlInt64ToUInt64

規格需求

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