DPA_GetPtrIndex 函式 (dpa_dsa.h)

[DPA_GetPtrIndex 可透過 Windows XP 搭配 Service Pack 2 (SP2) 取得。 後續版本可能會改變或無法使用。

取得動態指標陣列中找到之相符專案的索引, (DPA) 。

語法

int DPA_GetPtrIndex(
  [in] HDPA       hdpa,
  [in] const void *p
);

參數

[in] hdpa

類型: HDPA

現有 DPA 的控制碼。

[in] p

類型: const void*

hdpa中尋找之專案的指標。

傳回值

類型: int

如果找到 ,則為 pvoid所指向之專案的索引;否則為 -1。

備註

DPA_GetPtrIndex 未依名稱匯出。 若要使用它,您必須使用 GetProcAddress ,並從 ComCtl32.dll 要求序數 333 以取得函式指標。

需求

   
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限傳統型應用程式]
目標平台 Windows
標頭 dpa_dsa.h
Dll Comctl32.dll (4.0 版或更新版本)
API 集合 ext-ms-win-shell-comctl32-da-l1-1-0 (于 Windows 10 10.0.14393 版)