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.
類型庫(kù)中其他地方的所有對(duì)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.
必須強(qiáng)調(diào)的是,從任何意義上講,typedef聲明都沒有創(chuàng)建一個(gè)新的類型;它只是為已存在的某個(gè)類型起一個(gè)新的名字。 - 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是對(duì)于一個(gè)存儲(chǔ)了IRQL鍵值的整數(shù)的類型定義名。我們還需要一個(gè)變量來(lái)存儲(chǔ)當(dāng)前的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.
事實(shí)上,NTSTATUS只是一個(gè)長(zhǎng)整數(shù),但是你要用類型定義名稱NTSTATUS來(lái)代替LONG,這樣人們(能夠)更好的理解你的代碼。 返回 typedef