Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsWindowsRegKey.cpp File Reference
#include <windows.h>
#include <shlwapi.h>
#include <stdlib.h>
#include "nsWindowsRegKey.h"
#include "nsNativeCharsetUtils.h"
#include "nsString.h"
#include "nsCOMPtr.h"

Go to the source code of this file.

Classes

class  PromiseNativeString
class  nsWindowsRegKey

Defines

#define REG_QWORD   11
#define MAX_KEY_NAME_LEN   255
#define MAX_VALUE_NAME_LEN_W   16383
#define MAX_VALUE_NAME_LEN_A   255

Functions

nsresult NS_NewWindowsRegKey (nsIWindowsRegKey **result)
 This function may be used to instantiate a windows registry key object prior to XPCOM being initialized.
NS_METHOD nsWindowsRegKeyConstructor (nsISupports *delegate, const nsIID &iid, void **result)

Define Documentation

Definition at line 69 of file nsWindowsRegKey.cpp.

Definition at line 71 of file nsWindowsRegKey.cpp.

Definition at line 70 of file nsWindowsRegKey.cpp.

#define REG_QWORD   11

Definition at line 50 of file nsWindowsRegKey.cpp.


Function Documentation

This function may be used to instantiate a windows registry key object prior to XPCOM being initialized.

Definition at line 715 of file nsWindowsRegKey.cpp.

{
  *result = new nsWindowsRegKey();
  if (!*result)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*result);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NS_METHOD nsWindowsRegKeyConstructor ( nsISupports *  delegate,
const nsIID iid,
void **  result 
)

Definition at line 728 of file nsWindowsRegKey.cpp.

{
  if (delegate)
    return NS_ERROR_NO_AGGREGATION;

  nsCOMPtr<nsIWindowsRegKey> key;
  nsresult rv = NS_NewWindowsRegKey(getter_AddRefs(key));
  if (NS_SUCCEEDED(rv))
    rv = key->QueryInterface(iid, result);
  return rv;
}

Here is the call graph for this function: