2009年9月21日 星期一

HRESULT & com

a 32-bit type
three field:
(1) severity bit:
indicate success or error
(2) facility
(3) return code

success codes are assigned names that begin with S, such as S_OK
failure codes are assigned names that begin with E

use FAILED(hr) or SUCCEEDED(hr) to check success or failure

沒有留言:

張貼留言