VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProvFactory.h@ 40271

Last change on this file since 40271 was 40271, checked in by vboxsync, 13 years ago

VBoxCredProv: fixed svn properties

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/* $Id: VBoxCredProvFactory.h 40271 2012-02-28 11:22:04Z vboxsync $ */
2/** @file
3 * VBoxCredentialProvFactory - The VirtualBox Credential Provider factory.
4 */
5
6/*
7 * Copyright (C) 2012 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef __VBOX_CREDPROV_FACTORY_H__
19#define __VBOX_CREDPROV_FACTORY_H__
20
21#include <windows.h>
22
23class VBoxCredProvFactory : public IClassFactory
24{
25 /**
26 * Make the constructors / destructors private so that
27 * this class cannot be instanciated directly by non-friends.
28 */
29 private:
30
31 VBoxCredProvFactory(void);
32
33 virtual ~VBoxCredProvFactory(void);
34
35 public: /* IUknown overrides. */
36
37 IFACEMETHODIMP_(ULONG) AddRef(void);
38 IFACEMETHODIMP_(ULONG) Release(void);
39 IFACEMETHODIMP QueryInterface(REFIID interfaceID, void **ppvInterface);
40
41 public: /* IClassFactory overrides. */
42
43 IFACEMETHODIMP CreateInstance(IUnknown* pUnkOuter,
44 REFIID interfaceID, void **ppvInterface);
45 IFACEMETHODIMP LockServer(BOOL bLock);
46
47 private:
48
49 ULONG m_cRefCount;
50 friend HRESULT VBoxCredentialProviderCreate(REFCLSID rclsid, REFIID riid, void** ppv);
51};
52#endif /* !__VBOX_CREDPROV_FACTORY_H__ */
53
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette