VBoxCredProvProvider.h revision 352bb6b9d2fa1f7df7797f50c58e297ac37059a2
/* $Id$ */
/** @file
* VBoxCredProvProvider - The actual credential provider class.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___VBOX_CREDPROV_PROVIDER_H___
#define ___VBOX_CREDPROV_PROVIDER_H___
#include <credentialprovider.h>
#include <Windows.h>
#include <strsafe.h>
#include <VBox/VBoxGuestLib.h>
#include "VBoxCredProvCredential.h"
#include "VBoxCredProvPoller.h"
{
/** @name IUnknown methods.
* @{ */
/** @} */
/** @name ICredentialProvider interface
* @{ */
IFACEMETHODIMP SetSerialization(const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpCredentialSerialization);
IFACEMETHODIMP GetFieldDescriptorAt(DWORD dwIndex, __deref_out CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR **ppFieldDescriptor);
/** @} */
VBoxCredProvProvider(void);
virtual ~VBoxCredProvProvider(void);
/** Loads the configuration from the registry. */
DWORD LoadConfiguration(void);
/** Determines whether the current session this provider is
* loaded into needs to be handled or not. */
bool HandleCurrentSession(void);
/** Event which gets triggered by the poller thread in case
* there are credentials available from the host. */
void OnCredentialsProvided(void);
/** Interface reference count. */
/** Our one and only credential. */
/** Poller thread for credential lookup. */
/** Used to tell our owner to re-enumerate credentials. */
/** Used to tell our owner who we are when asking to re-enumerate credentials. */
/** Saved usage scenario. */
/** Flag whether we need to handle remote session over Windows Remote
* Desktop Service. */
bool m_fHandleRemoteSessions;
};
#endif /* !___VBOX_CREDPROV_PROVIDER_H___ */