xpcom/ds/nsWindowsRegKey.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/ds/nsWindowsRegKey.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsWindowsRegKey_h__
    1.11 +#define nsWindowsRegKey_h__
    1.12 +
    1.13 +//-----------------------------------------------------------------------------
    1.14 +
    1.15 +#include "nsIWindowsRegKey.h"
    1.16 +
    1.17 +/**
    1.18 + * This ContractID may be used to instantiate a windows registry key object
    1.19 + * via the XPCOM component manager.
    1.20 + */
    1.21 +#define NS_WINDOWSREGKEY_CONTRACTID "@mozilla.org/windows-registry-key;1"
    1.22 +
    1.23 +/**
    1.24 + * This function may be used to instantiate a windows registry key object prior
    1.25 + * to XPCOM being initialized.
    1.26 + */
    1.27 +extern "C" nsresult
    1.28 +NS_NewWindowsRegKey(nsIWindowsRegKey **result);
    1.29 +
    1.30 +//-----------------------------------------------------------------------------
    1.31 +
    1.32 +#ifdef IMPL_LIBXUL
    1.33 +
    1.34 +// a53bc624-d577-4839-b8ec-bb5040a52ff4
    1.35 +#define NS_WINDOWSREGKEY_CID \
    1.36 +  { 0xa53bc624, 0xd577, 0x4839, \
    1.37 +    { 0xb8, 0xec, 0xbb, 0x50, 0x40, 0xa5, 0x2f, 0xf4 } }
    1.38 +
    1.39 +extern nsresult
    1.40 +nsWindowsRegKeyConstructor(nsISupports *outer, const nsIID &iid, void **result);
    1.41 +
    1.42 +#endif  // IMPL_LIBXUL
    1.43 +
    1.44 +//-----------------------------------------------------------------------------
    1.45 +
    1.46 +#endif  // nsWindowsRegKey_h__

mercurial