GetDestNameA

註解與熱點連結、目的地與動作

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetDestName 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

傳回文件名稱樹中儲存的具名目的地控制代碼或顯式目的地陣列的名稱

語法

Delphi

Function DLGetDestNameA(InstanceID, DestID: Integer): PAnsiChar;

DLL

const char * DLGetDestNameA(int InstanceID, int DestID);

參數

DestID由 GetActionDest、GetOpenActionDestination 或 GetNamedDestination 等 API 傳回的目的地控制代碼

傳回值

empty string控制代碼不是具名目的地,且找不到相符的名稱樹條目
nameThe destination name

備註

對顯式目的地陣列,此函式會搜尋文件名稱樹,存在相符項目時傳回對應的目的地名稱

另見

GetOpenActionDestination, NewNamedDestination, SetOpenActionNamedDestination