小默

[zz]FIELD_OFFSET

FIELD_OFFSET

The FIELD_OFFSET macro returns the byte offset of a named field in a known structure type.

LONG 
  FIELD_OFFSET(
    IN TYPE  Type,
    IN PCHAR  Type,
    IN PCHAR  Type,
    IN PCHAR  Field
    );

Parameters

Type
Specifies the name of a known structure type containing Field.
Field
Specifies the name of a field in a structure of type Type.

Return Value

Returns the byte offset of the caller supplied Field in the Type structure.

Comments

Used by device driver writers to symbolically determine the offset of a known field in a known structure type.

Requirements

IRQL: Any level

Headers: Declared in ntdef.h. Include wdm.h or ntddk.h.

 

See Also

CONTAINING_RECORD

posted on 2009-12-29 10:58 小默 阅读(704) 评论(0)  编辑 收藏 引用 所属分类: Windows


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理


导航

统计

留言簿(13)

随笔分类(287)

随笔档案(289)

漏洞

搜索

积分与排名

最新评论

阅读排行榜