未分类--Windows API--DWordToInt

来源:互联网 发布:哥本哈根软件 编辑:程序博客网 时间:2024/05/01 22:50

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com

 

DWordToInt Function

--------------------------------------------------------------------------------

Converts a value of type DWORD to a value of type INT.
转换一个DWORD类型的值到一个INT类型的值。
Syntax

HRESULT DWordToInt(         
DWORD dwOperand,
INT *piResult
);
Parameters

dwOperand
[in] The value to be converted.
被转换的值。
piResult
[out] A pointer to the converted value.
一个指针指向转换后的值。
In the case where the conversion causes a truncation of the original value, the function returns INTSAFE_E_ARITHMETIC_OVERFLOW and this parameter is not valid.
在转换引起原始值截断的情况下这个函数返回INTSAFE_E_ARITHMETIC_OVERFLOW并且这个参数是无效的。
Return Value

Returns S_OK if successful, or an error value otherwise.
如果成功返回S_OK,否则返回一个错误值。
Remarks

This is one of a set of inline functions designed to provide type conversions and perform validity checks with minimal impact on performance.
这个是设计的一组内联函数中的一个目的是提供类型转换和在性能上使用最小的影响执行有效性检查。
Function Information

Header intsafe.h
Import library None

 

0 0
原创粉丝点击