PHYSICAL_ADDRESS

这是我查找DDK的 ntdef.h 文件找到PHYSICAL_ADDRESS的定义:

.......................

.......................

typedef union _LARGE_INTEGER {
    struct {
        ULONG LowPart;
        LONG HighPart;
    };
    struct {
        ULONG LowPart;
        LONG HighPart;
    } u;
#endif //MIDL_PASS
    LONGLONG QuadPart;
} LARGE_INTEGER;

............................

............................

typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;

 

 

物理内存结构体PHYSICAL_ADDRESS(定义在ceddkh中,用64位来代表物理地址,对大多数32位的cpu,只需吧HighPart设置为0即可)。

 

 

LARGE_INTEGER UNION

Represents a 64-bit signed integer value.

Note  Your C compiler may support 64-bit integers natively. For example, Microsoft Visual C++ supports the__int64 sized integer type. For more information, see the documentation included with your C compiler.

SYNTAX

Copy

typedef union _LARGE_INTEGER {   struct {     DWORD LowPart;     LONG  HighPart;   } ;   struct {     DWORD LowPart;     LONG  HighPart;   } u;   LONGLONG QuadPart; } LARGE_INTEGER, *PLARGE_INTEGER;

MEMBERS

  • LowPart

  • The low-order 32 bits.

  • HighPart

  • The high-order 32 bits.

  • u

    • LowPart

    • The low-order 32 bits.

    • HighPart

    • The high-order 32 bits.

  • QuadPart

  • A signed 64-bit integer.

REMARKS

The LARGE_INTEGER structure is actually a union. If your compiler has built-in support for 64-bit integers, use the QuadPart member to store the 64-bit integer. Otherwise, use the LowPart and HighPart members to store the 64-bit integer.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值