⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgpnetmainworker.h

📁 vc环境下的pgp源码
💻 H
字号:
/*____________________________________________________________________________
	Copyright (c) 1998 Network Associates, Inc. and its Affiliated Companies
	All rights reserved.

	Definition of the CPGPnetMainWorker class

	$Id: pgpNetMainWorker.h,v 1.3 1999/05/05 19:19:49 elowe Exp $
____________________________________________________________________________*/

#ifndef _Included_pgpNetMainWorker_h
#define _Included_pgpNetMainWorker_h

#include <string>

#include "pgpNetWorker.h"

class CPGPnetMainWorker : public CPGPnetWorker
{
private:
	HWND 				m_hWnd;
	HINSTANCE 			m_hInstance;
	std::string			m_shell;
	std::string			m_currentUser;
	std::string			m_displayName;
	HKEY				m_hKey;
	PGPCond_t			m_logonEvent;
	PGPBoolean			m_bInteractiveUser;
	UINT				m_uReloadKeyringMsg;

	// private functions
	PGPInt32 	registerClass(HINSTANCE hinstance);
	PGPBoolean 	createMyWindow(HINSTANCE hinstance);
	PGPBoolean 	isInteractiveShellRunning();
	void		processRegistryChange(HKEY hKey, HANDLE hEvent);

	// private and undefined copy and assignment
	CPGPnetMainWorker(const CPGPnetMainWorker &);
	CPGPnetMainWorker & operator=(const CPGPnetMainWorker &);

protected:
	virtual unsigned int Run();

public:
	CPGPnetMainWorker(const char*, HINSTANCE);
	virtual ~CPGPnetMainWorker();
	
	// access functions
	HWND hWnd()								{ return m_hWnd; };
	const char * const currentUser()		{ return m_currentUser.c_str(); };
	void interactiveUser(PGPBoolean b)		{ m_bInteractiveUser = b; };
	UINT uReloadKeyringMsg()				{ return m_uReloadKeyringMsg; };

	// static window proc function
	static LRESULT CALLBACK winProc(HWND, UINT, WPARAM, LPARAM);
};

#endif // _Included_pgpNetMainWorker_h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -