typedef
常見例句
- Shows how to make a typedef for a managed array.
顯示如何為托管數(shù)組創(chuàng)建typedef。 - As the following example shows, the Point value type becomes a type definition (typedef) with the name Point.
如下面的示例所示,Point值類型變?yōu)槊麨镻oint的類型定義(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聲明都沒有創(chuàng)建一個新的類型;它只是為已存在的某個類型起一個新的名字。 - 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鍵值的整數(shù)的類型定義名。我們還需要一個變量來存儲當前的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只是一個長整數(shù),但是你要用類型定義名稱NTSTATUS來代替LONG,這樣人們(能夠)更好的理解你的代碼。 返回 typedef