-----------------------------------------------
                              HANDLE AND HREFTYPE
                                January 2024
                 -----------------------------------------------
                                    CCB



1. THE HANDLE DEFINITION:

     typedef LONG HRESULT;
     typedef int HFILE;
     typedef DWORD HREFTYPE;


2. REFERENCE CODE:

     In x64, usually, the HANDLE is QWORD, except HRESULT, HFILE and HREFTYPE, they remain DWORD.

     I have found some code such as:
     ; HREFTYPE = eax
     mov dword ptr [rbx] , eax

     So HREFTYPE is a DWORD.


3. REFERENCE WEBSITES:

     1, Windows Data Types.
     http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx

     2, Writing 64-bit programs.
     http://www.godevtool.com/GoasmHelp/64bits.htm


4. OTHER:

     For reference only, there is no guarantees.

     Any questions or suggestions, please send me an email at ccb2000@163.com.