www.pudn.com > IPServer.rar > ToolReg.h


// ToolReg.h: interface for the CToolReg class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_TOOLREG_H__9888C3D4_8492_4294_974D_68BC35C639B6__INCLUDED_) 
#define AFX_TOOLREG_H__9888C3D4_8492_4294_974D_68BC35C639B6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "atlbase.h" 
 
class CToolReg   
{ 
private: 
	BOOL	m_bInitOK; 
	CRegKey m_crHikSoftware; 
 
public: 
	CToolReg(); 
	virtual ~CToolReg(); 
 
public: 
	int	RegSetAppPath(CString spath); 
	int RegGetAppPath(CString * pspath); 
 
	int RegSetDftUser(CString susername, CString suserid,DWORD dwusertype); 
	int RegGetDftUser(CString *susername, CString *suserid,LONG *lusertype); 
 
	int RegSetDftReboot(BOOL breboot); 
	int RegGetDftReboot(BOOL * pbreboot); 
}; 
 
#endif // !defined(AFX_TOOLREG_H__9888C3D4_8492_4294_974D_68BC35C639B6__INCLUDED_)