VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredPoller.h@ 25811

最後變更 在這個檔案從25811是 25811,由 vboxsync 提交於 15 年 前

VBoxCredProv: Enabled building by default on OSE (second try).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.2 KB
 
1/* $Id: VBoxCredPoller.h 25811 2010-01-13 17:10:01Z vboxsync $ */
2/** @file
3 * VBoxCredPoller - Thread for retrieving user credentials.
4 */
5
6/*
7 * Copyright (C) 2009 Sun Microsystems, Inc.
8 *
9 * Sun Microsystems, Inc. confidential
10 * All rights reserved
11 */
12
13#ifndef ___VBoxCredPoller_h
14#define ___VBoxCredPoller_h
15
16#include <iprt/critsect.h>
17#include <iprt/thread.h>
18#include <iprt/semaphore.h>
19
20class VBoxCredProv;
21class VBoxCredential;
22
23class VBoxCredPoller
24{
25 public:
26
27 VBoxCredPoller();
28 virtual ~VBoxCredPoller();
29
30 public:
31
32 bool Initialize(VBoxCredProv *pProvider);
33 bool Shutdown();
34 VBoxCredProv* GetProvider() { return m_pProv; }
35 bool QueryCredentials(VBoxCredential *pCred);
36
37 protected:
38
39 void credentialsReset(void);
40 int credentialsRetrieve(void);
41 static int threadPoller(RTTHREAD ThreadSelf, void *pvUser);
42
43 protected:
44
45 RTTHREAD m_hThreadPoller; /* Thread handle */
46 RTCRITSECT m_csCredUpate;
47 VBoxCredProv *m_pProv; /* Pointer to parent */
48
49 char *m_pszUser; /* Our lovely credentials */
50 char *m_pszPw;
51 char *m_pszDomain;
52
53};
54
55#endif /* ___VBoxCredPoller_h */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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