typedef
常见例句
- Shows how to make a typedef for a managed array.
显示如何为托管数组创建typedef。 - As the following example shows, the Point value type becomes a type definition (typedef) with the name Point.
如下面的示例所示,Point值类型变为名为Point的类型定义(typedef)。 - All references to the Point value type elsewhere in the type library are replaced with the Point typedef.
类型库中其他地方的所有对Point值类型的引用都被替换为Point typedef。 - It must be emphasized that a typedef declaration does not create a new type in any sense; it merely adds a new name for some existing type.
必须强调的是,从任何意义上讲,typedef声明都没有创建一个新的类型;它只是为已存在的某个类型起一个新的名字。 - KIRQL is the typedef name for an integer that holds an IRQL value. We'll need a variable to hold the current IRQL, so we declare it this way.
KIRQL是对于一个存储了IRQL键值的整数的类型定义名。我们还需要一个变量来存储当前的IRQL,所以我们(用)这种方式声明它。 - NTSTATUS is actually just a long integer, but you want to use the typedef name NTSTATUS instead of LONG so that people understand your code better.
事实上,NTSTATUS只是一个长整数,但是你要用类型定义名称NTSTATUS来代替LONG,这样人们(能够)更好的理解你的代码。 返回 typedef