Win32 API 日本語リファレンス
ホームSystem.Search › ISearchRoot

ISearchRoot

COM
IID04c18ccf-1f57-4cbd-88cc-3900f5195ce3継承元IUnknown自前メソッド開始 vtbl3

メソッド 22

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT put_Schedule(LPWSTR pszTaskArg)
pszTaskArgLPWSTRinクロール(ルート巡回)の実行スケジュールを表す文字列を指定する。
vtbl 4 HRESULT get_Schedule(LPWSTR* ppszTaskArg)
ppszTaskArgLPWSTR*out現在設定されているクロールスケジュールを表す文字列を受け取るポインタである。呼び出し側が解放する。
vtbl 5 HRESULT put_RootURL(LPWSTR pszURL)
pszURLLPWSTRinこのルートが対象とするクロール開始位置のURLを指定する。
vtbl 6 HRESULT get_RootURL(LPWSTR* ppszURL)
ppszURLLPWSTR*outこのルートのクロール開始URLを受け取るポインタである。呼び出し側が解放する。
vtbl 7 HRESULT put_IsHierarchical(BOOL fIsHierarchical)
fIsHierarchicalBOOLinルートが階層構造を持つかどうかを指定する。TRUEで階層的として扱う。
vtbl 8 HRESULT get_IsHierarchical(BOOL* pfIsHierarchical)
pfIsHierarchicalBOOL*outルートが階層構造を持つかどうかの値を受け取るポインタである。
vtbl 9 HRESULT put_ProvidesNotifications(BOOL fProvidesNotifications)
fProvidesNotificationsBOOLinこのルートが変更通知を提供するかどうかを指定する。TRUEで通知を提供する。
vtbl 10 HRESULT get_ProvidesNotifications(BOOL* pfProvidesNotifications)
pfProvidesNotificationsBOOL*outこのルートが変更通知を提供するかどうかの値を受け取るポインタである。
vtbl 11 HRESULT put_UseNotificationsOnly(BOOL fUseNotificationsOnly)
fUseNotificationsOnlyBOOLinクロールを行わず変更通知のみを用いてインデックスを更新するかどうかを指定する。
vtbl 12 HRESULT get_UseNotificationsOnly(BOOL* pfUseNotificationsOnly)
pfUseNotificationsOnlyBOOL*out通知のみを用いるかどうかの値を受け取るポインタである。
vtbl 13 HRESULT put_EnumerationDepth(DWORD dwDepth)
dwDepthDWORDinルートからの列挙(クロール)を行う階層の深さを指定する。
vtbl 14 HRESULT get_EnumerationDepth(DWORD* pdwDepth)
pdwDepthDWORD*out設定されている列挙の深さを受け取るポインタである。
vtbl 15 HRESULT put_HostDepth(DWORD dwDepth)
dwDepthDWORDinホスト名のホップ数として許容するクロールの深さを指定する。
vtbl 16 HRESULT get_HostDepth(DWORD* pdwDepth)
pdwDepthDWORD*out設定されているホストの深さを受け取るポインタである。
vtbl 17 HRESULT put_FollowDirectories(BOOL fFollowDirectories)
fFollowDirectoriesBOOLinサブディレクトリをたどってクロールするかどうかを指定する。
vtbl 18 HRESULT get_FollowDirectories(BOOL* pfFollowDirectories)
pfFollowDirectoriesBOOL*outサブディレクトリをたどるかどうかの値を受け取るポインタである。
vtbl 19 HRESULT put_AuthenticationType(AUTH_TYPE authType)
authTypeAUTH_TYPEinルートへのアクセスに用いる認証の種類を表すAUTH_TYPE値を指定する。
vtbl 20 HRESULT get_AuthenticationType(AUTH_TYPE* pAuthType)
pAuthTypeAUTH_TYPE*out設定されている認証の種類を表すAUTH_TYPE値を受け取るポインタである。
vtbl 21 HRESULT put_User(LPWSTR pszUser)
pszUserLPWSTRinルートへのアクセスに用いるユーザー名を指定する。
vtbl 22 HRESULT get_User(LPWSTR* ppszUser)
ppszUserLPWSTR*out設定されているユーザー名を受け取るポインタである。呼び出し側が解放する。
vtbl 23 HRESULT put_Password(LPWSTR pszPassword)
pszPasswordLPWSTRinルートへのアクセスに用いるパスワードを指定する。
vtbl 24 HRESULT get_Password(LPWSTR* ppszPassword)
ppszPasswordLPWSTR*out設定されているパスワードを受け取るポインタである。呼び出し側が解放する。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_ISearchRoot "{04C18CCF-1F57-4CBD-88CC-3900F5195CE3}"
#usecom global ISearchRoot IID_ISearchRoot "{}"
#comfunc global ISearchRoot_put_Schedule               3 wstr
#comfunc global ISearchRoot_get_Schedule               4 var
#comfunc global ISearchRoot_put_RootURL                5 wstr
#comfunc global ISearchRoot_get_RootURL                6 var
#comfunc global ISearchRoot_put_IsHierarchical         7 int
#comfunc global ISearchRoot_get_IsHierarchical         8 var
#comfunc global ISearchRoot_put_ProvidesNotifications  9 int
#comfunc global ISearchRoot_get_ProvidesNotifications  10 var
#comfunc global ISearchRoot_put_UseNotificationsOnly   11 int
#comfunc global ISearchRoot_get_UseNotificationsOnly   12 var
#comfunc global ISearchRoot_put_EnumerationDepth       13 int
#comfunc global ISearchRoot_get_EnumerationDepth       14 var
#comfunc global ISearchRoot_put_HostDepth              15 int
#comfunc global ISearchRoot_get_HostDepth              16 var
#comfunc global ISearchRoot_put_FollowDirectories      17 int
#comfunc global ISearchRoot_get_FollowDirectories      18 var
#comfunc global ISearchRoot_put_AuthenticationType     19 int
#comfunc global ISearchRoot_get_AuthenticationType     20 var
#comfunc global ISearchRoot_put_User                   21 wstr
#comfunc global ISearchRoot_get_User                   22 var
#comfunc global ISearchRoot_put_Password               23 wstr
#comfunc global ISearchRoot_get_Password               24 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。