VBoxCredProv.h revision dee9dd86962066a952b5343dc01f59328f532138
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Modifications (c) 2009-2010 Oracle Corporation
//
#ifndef ___VBoxCredProv_h
#define ___VBoxCredProv_h
#include <credentialprovider.h>
#include <windows.h>
#include <strsafe.h>
#include "VBoxCredential.h"
#include "VBoxCredPoller.h"
#include "helpers.h"
{
/** IUnknown methods. */
{
return m_cRef++;
}
{
if (!cRef)
{
}
return cRef;
}
{
if (IID_IUnknown == riid ||
{
}
else
{
hr = E_NOINTERFACE;
}
return hr;
}
/** ICredentialProvider interface. */
IFACEMETHODIMP SetSerialization(const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpCredentialSerialization);
IFACEMETHODIMP GetFieldDescriptorAt(DWORD dwIndex, __deref_out CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR **ppcpFieldDescriptor);
VBoxCredProv(void);
virtual ~VBoxCredProv(void);
/** Events. */
void OnCredentialsProvided();
/** 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 indicating we got some credentials to work with. */
bool m_fGotCredentials;
};
#endif /* ___VBoxCredProv_h */