WEB开发网
开发学院操作系统Windows Vista 使用 Windows Vista 的凭据提供程序创造自定义的登... 阅读

使用 Windows Vista 的凭据提供程序创造自定义的登录体验

 2009-02-09 17:43:37 来源:WEB开发网   
核心提示: Figure4ICredentialProviderCredential 接口 ICredentialProviderCredential : public IUnknown{HRESULT STDMETHODCALLTYPE Advise(/* [in] */ ICredentialPr

使用 Windows Vista 的凭据提供程序创造自定义的登录体验Figure4ICredentialProviderCredential 接口

ICredentialProviderCredential : public IUnknown
{
  HRESULT STDMETHODCALLTYPE Advise(
    /* [in] */ ICredentialProviderCredentialEvents *pcpce);
  
  HRESULT STDMETHODCALLTYPE UnAdvise( void);
  
  HRESULT STDMETHODCALLTYPE SetSelected(
    /* [out] */ BOOL *pbAutoLogon);
  
  HRESULT STDMETHODCALLTYPE SetDeselected( void);
  
  HRESULT STDMETHODCALLTYPE GetFieldState(
    /* [in] */ DWORD dwFieldID,
    /* [out] */ CREDENTIAL_PROVIDER_FIELD_STATE *pcpfs,
    /* [out] */ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE *pcpfis);
  
  HRESULT STDMETHODCALLTYPE GetStringValue(
    /* [in] */ DWORD dwFieldID,
    /* [string][out] */ LPWSTR *ppsz);
  
  HRESULT STDMETHODCALLTYPE GetBitmapValue(
    /* [in] */ DWORD dwFieldID,
    /* [out] */ HBITMAP *phbmp);
  
  HRESULT STDMETHODCALLTYPE GetCheckboxValue(
    /* [in] */ DWORD dwFieldID,
    /* [out] */ BOOL *pbChecked,
    /* [string][out] */ LPWSTR *ppszLabel);
  
  HRESULT STDMETHODCALLTYPE GetSubmitButtonValue(
    /* [in] */ DWORD dwFieldID,
    /* [out] */ DWORD *pdwAdjacentTo);
  
  HRESULT STDMETHODCALLTYPE GetComboBoxValueCount(
    /* [in] */ DWORD dwFieldID,
    /* [out] */ DWORD *pcItems,
    /* [out] */ DWORD *pdwSelectedItem);
  
  HRESULT STDMETHODCALLTYPE GetComboBoxValueAt(
    /* [in] */ DWORD dwFieldID,
    DWORD dwItem,
    /* [string][out] */ LPWSTR *ppszItem);
  
  HRESULT STDMETHODCALLTYPE SetStringValue(
    /* [in] */ DWORD dwFieldID,
    /* [string][in] */ LPCWSTR psz);
  
  HRESULT STDMETHODCALLTYPE SetCheckboxValue(
    /* [in] */ DWORD dwFieldID,
    /* [in] */ BOOL bChecked);
  
  HRESULT STDMETHODCALLTYPE SetComboBoxSelectedValue(
    /* [in] */ DWORD dwFieldID,
    /* [in] */ DWORD dwSelectedItem);
  
  HRESULT STDMETHODCALLTYPE CommandLinkClicked(
    /* [in] */ DWORD dwFieldID);
  
  HRESULT STDMETHODCALLTYPE GetSerialization(
    /* [out] */ CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE
          *pcpgsr,
    /* [out] */ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs,
    /* [out] */ LPWSTR *ppszOptionalStatusText,
    /* [out] */ CREDENTIAL_PROVIDER_STATUS_ICON
          *pcpsiOptionalStatusIcon);
  
  HRESULT STDMETHODCALLTYPE ReportResult(
    /* [in] */ NTSTATUS ntsStatus,
    /* [in] */ NTSTATUS ntsSubstatus,
    /* [out] */ LPWSTR *ppszOptionalStatusText,
    /* [out] */ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon);
};

使用 Windows Vista 的凭据提供程序创造自定义的登录体验Figure3ICredentialProvider 接口

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:使用 Windows Vista

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接