Ribbon for WinForms
AssocQueryString メソッド (Win32)

C1.Win.4.8 アセンブリ > C1.Util.Win 名前空間 > Win32 クラス : AssocQueryString メソッド
Use Win32.ASSOCF constants.
Use Win32.ASSOCSTR constants.
Gets file-association string from the registry.
シンタックス
'宣言
 
Public Shared Function AssocQueryString( _
   ByVal flags As Integer, _
   ByVal str As Integer, _
   ByVal pszAssoc As String, _
   ByVal pszExtra As String, _
   ByVal pszOut As StringBuilder, _
   ByRef pcchOut As UInteger _
) As UInteger
public static uint AssocQueryString( 
   int flags,
   int str,
   string pszAssoc,
   string pszExtra,
   StringBuilder pszOut,
   ref uint pcchOut
)

パラメータ

flags
Use Win32.ASSOCF constants.
str
Use Win32.ASSOCSTR constants.
pszAssoc
pszExtra
pszOut
pcchOut

戻り値の型

An Win32.OLE success/error code.
解説
To get associated exe's length/exe: uint assocLen = 0; AssocQueryString(ASSOCF.ASSOCF_INIT_DEFAULTTOSTAR,ASSOCSTR.ASSOCSTR_EXECUTABLE,Path.GetExtension(OutputFileName),"open",null,ref assocLen); For existing files, another option is FindExecutable.
参照

Win32 クラス
Win32 メンバ