VBoxCredProv.h revision d2236df2116a3cbe8b17c567f4a9c2281733a956
//
// 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 Sun Microsystems, Inc.
//
#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
{
return m_cRef++;
}
{
if (!cRef)
{
}
return cRef;
}
{
if (IID_IUnknown == riid ||
{
}
else
{
hr = E_NOINTERFACE;
}
return hr;
}
// ICredentialProvider
IFACEMETHODIMP GetFieldDescriptorAt(DWORD dwIndex, __deref_out CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR **ppcpfd);
VBoxCredProv(void);
__override ~VBoxCredProv(void);
// Events
void OnCredentialsProvided(const char *pszUser,
const char *pszPw,
const char *pszDomain);
ICredentialProviderEvents *m_pCredProvEvents; /* Used to tell our owner to re-enumerate credentials */
UINT_PTR m_upAdviseContext; /* Used to tell our owner who we are when asking to re-enumerate credentials */
bool m_fGotCredentials; /* Flag indicating we got some credentials to work with */
};
#endif /* ___VBoxCredProv_h */