Landing the Aviary Branch (browser section only).

This commit is contained in:
ben@bengoodger.com
2004-11-30 08:23:02 +00:00
parent 0f5b132b5a
commit ad3b24d5ad
179 changed files with 6961 additions and 2365 deletions

View File

@@ -41,24 +41,35 @@
#include "nscore.h"
#include "nsIWindowsShellService.h"
#include "nsIObserver.h"
#include "nsIGenericFactory.h"
#include <windows.h>
class nsWindowsShellService : public nsIWindowsShellService
class nsWindowsShellService : public nsIWindowsShellService,
public nsIObserver
{
public:
nsWindowsShellService() : mCheckedThisSession(PR_FALSE) {};
nsWindowsShellService();
virtual ~nsWindowsShellService() {};
NS_DECL_ISUPPORTS
NS_DECL_NSISHELLSERVICE
NS_DECL_NSIWINDOWSSHELLSERVICE
NS_DECL_NSIOBSERVER
static NS_METHOD Register(nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation,
const char *componentType, const nsModuleComponentInfo *info);
protected:
PRBool GetMailAccountKey(HKEY* aResult);
void SetRegKey(const char* aKeyName, const char* aValueName,
const char* aValue, PRBool aBackup, HKEY aBackupKey,
PRBool aReplaceExisting, PRBool aForAllUsers);
DWORD DeleteRegKey(HKEY baseKey, const char *keyName);
nsresult RegisterDDESupport();
nsresult UnregisterDDESupport();
private:
PRBool mCheckedThisSession;