00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #include "stdafx.h" 00007 #include "FdmApp.h" 00008 #include "fsIEUserAgent.h" 00009 00010 #ifdef _DEBUG 00011 #undef THIS_FILE 00012 static char THIS_FILE[]=__FILE__; 00013 #define new DEBUG_NEW 00014 #endif 00015 00016 fsIEUserAgent::fsIEUserAgent() 00017 { 00018 OpenUAKey (); 00019 } 00020 00021 fsIEUserAgent::~fsIEUserAgent() 00022 { 00023 00024 } 00025 00026 void fsIEUserAgent::OpenUAKey() 00027 { 00028 if (m_keyUA.m_hKey) 00029 return; 00030 00031 m_keyUA.Create (HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\5.0\\User Agent\\Post Platform"); 00032 } 00033 00034 void fsIEUserAgent::SetPP(LPCSTR pszPP) 00035 { 00036 m_keyUA.SetValue ("", pszPP); 00037 } 00038 00039 void fsIEUserAgent::RemovePP(LPCSTR pszPP) 00040 { 00041 m_keyUA.DeleteValue (pszPP); 00042 }
1.5.6