nsWindowsShellService.cpp File Reference
#include "imgIContainer.h"
#include "imgIRequest.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMHTMLImageElement.h"
#include "nsIImageLoadingContent.h"
#include "nsIPrefService.h"
#include "nsIPrefLocalizedString.h"
#include "nsIServiceManager.h"
#include "nsIStringBundle.h"
#include "nsNetUtil.h"
#include "nsShellService.h"
#include "nsWindowsShellService.h"
#include "nsIProcess.h"
#include "nsICategoryManager.h"
#include "nsBrowserCompsCID.h"
#include "nsDirectoryServiceUtils.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsDirectoryServiceDefs.h"
#include "nsIWindowsRegKey.h"
#include "nsUnicharUtils.h"
#include "windows.h"
#include "shellapi.h"
#include <shlobj.h>
#include <mbstring.h>
Include dependency graph for nsWindowsShellService.cpp:

Go to the source code of this file.

Classes

struct  SETTING
 

Macros

#define _WIN32_WINNT   0x0600
 
#define INITGUID
 
#define MAX_BUF   4096
 
#define REG_SUCCEEDED(val)   (val == ERROR_SUCCESS)
 
#define REG_FAILED(val)   (val != ERROR_SUCCESS)
 
#define APP_REG_NAME   L"Firefox"
 
#define CLS_HTML   "FirefoxHTML"
 
#define CLS_URL   "FirefoxURL"
 
#define CPL_DESKTOP   L"Control Panel\\Desktop"
 
#define VAL_OPEN   "\"%APPPATH%\" -requestPending -osint -url \"%1\""
 
#define VAL_FILE_ICON   "%APPPATH%,1"
 
#define DI   "\\DefaultIcon"
 
#define SOP   "\\shell\\open\\command"
 
#define MAKE_KEY_NAME1(PREFIX, MID)   PREFIX MID
 

Functions

static nsresult OpenKeyForReading (HKEY aKeyRoot, const nsAString &aKeyName, HKEY *aKey)
 
static nsresult WriteBitmap (nsIFile *aFile, imgIContainer *aImage)
 

Variables

static SETTING gSettings []
 

Macro Definition Documentation

#define _WIN32_WINNT   0x0600

Definition at line 73 of file nsWindowsShellService.cpp.

#define APP_REG_NAME   L"Firefox"

Definition at line 216 of file nsWindowsShellService.cpp.

#define CLS_HTML   "FirefoxHTML"

Definition at line 217 of file nsWindowsShellService.cpp.

#define CLS_URL   "FirefoxURL"

Definition at line 218 of file nsWindowsShellService.cpp.

#define CPL_DESKTOP   L"Control Panel\\Desktop"

Definition at line 219 of file nsWindowsShellService.cpp.

#define DI   "\\DefaultIcon"

Definition at line 228 of file nsWindowsShellService.cpp.

#define INITGUID

Definition at line 74 of file nsWindowsShellService.cpp.

#define MAKE_KEY_NAME1 (   PREFIX,
  MID 
)    PREFIX MID

Definition at line 232 of file nsWindowsShellService.cpp.

#define MAX_BUF   4096

Definition at line 80 of file nsWindowsShellService.cpp.

#define REG_FAILED (   val)    (val != ERROR_SUCCESS)

Definition at line 86 of file nsWindowsShellService.cpp.

#define REG_SUCCEEDED (   val)    (val == ERROR_SUCCESS)

Definition at line 83 of file nsWindowsShellService.cpp.

#define SOP   "\\shell\\open\\command"

Definition at line 229 of file nsWindowsShellService.cpp.

#define VAL_FILE_ICON   "%APPPATH%,1"

Definition at line 221 of file nsWindowsShellService.cpp.

#define VAL_OPEN   "\"%APPPATH%\" -requestPending -osint -url \"%1\""

Definition at line 220 of file nsWindowsShellService.cpp.

Function Documentation

static nsresult OpenKeyForReading ( HKEY  aKeyRoot,
const nsAString &  aKeyName,
HKEY *  aKey 
)
static

Definition at line 96 of file nsWindowsShellService.cpp.

static nsresult WriteBitmap ( nsIFile *  aFile,
imgIContainer *  aImage 
)
static

Definition at line 524 of file nsWindowsShellService.cpp.

Here is the call graph for this function:

Variable Documentation

SETTING gSettings[]
static
Initial value:
= {
{ "FirefoxHTML" "\\shell\\open\\command" , "", "\"%APPPATH%\" -requestPending -osint -url \"%1\"" },
{ "FirefoxURL" "\\shell\\open\\command" , "", "\"%APPPATH%\" -requestPending -osint -url \"%1\"" },
{ "HTTP" "\\DefaultIcon" , "", "%APPPATH%,1" },
{ "HTTP" "\\shell\\open\\command" , "", "\"%APPPATH%\" -requestPending -osint -url \"%1\"" },
{ "HTTPS" "\\DefaultIcon" , "", "%APPPATH%,1" },
{ "HTTPS" "\\shell\\open\\command" , "", "\"%APPPATH%\" -requestPending -osint -url \"%1\"" }
}

Definition at line 240 of file nsWindowsShellService.cpp.