Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/ds/nsIWindowsRegKey.idl
*/
#ifndef __gen_nsIWindowsRegKey_h__
#define __gen_nsIWindowsRegKey_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include <windows.h>
/* starting interface: nsIWindowsRegKey */
#define NS_IWINDOWSREGKEY_IID_STR "2555b930-d64f-437e-9be7-0a2cb252c1f4"
#define NS_IWINDOWSREGKEY_IID \
{0x2555b930, 0xd64f, 0x437e, \
{ 0x9b, 0xe7, 0x0a, 0x2c, 0xb2, 0x52, 0xc1, 0xf4 }}
class NS_NO_VTABLE nsIWindowsRegKey : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWSREGKEY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWindowsRegKey;
enum {
ROOT_KEY_CLASSES_ROOT = 2147483648U,
ROOT_KEY_CURRENT_USER = 2147483649U,
ROOT_KEY_LOCAL_MACHINE = 2147483650U,
ACCESS_BASIC = 131072U,
ACCESS_QUERY_VALUE = 1U,
ACCESS_SET_VALUE = 2U,
ACCESS_CREATE_SUB_KEY = 4U,
ACCESS_ENUMERATE_SUB_KEYS = 8U,
ACCESS_NOTIFY = 16U,
ACCESS_READ = 131097U,
ACCESS_WRITE = 131078U,
ACCESS_ALL = 131103U,
WOW64_32 = 512U,
WOW64_64 = 256U,
TYPE_NONE = 0U,
TYPE_STRING = 1U,
TYPE_BINARY = 3U,
TYPE_INT = 4U,
TYPE_INT64 = 11U
};
/* void close (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Close(void) = 0;
/* void open (in unsigned long rootKey, in AString relPath, in unsigned long mode); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Open(uint32_t rootKey, const nsAString& relPath, uint32_t mode) = 0;
/* void create (in unsigned long rootKey, in AString relPath, in unsigned long mode); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Create(uint32_t rootKey, const nsAString& relPath, uint32_t mode) = 0;
/* nsIWindowsRegKey openChild (in AString relPath, in unsigned long mode); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) = 0;
/* nsIWindowsRegKey createChild (in AString relPath, in unsigned long mode); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) = 0;
/* readonly attribute unsigned long childCount; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChildCount(uint32_t *aChildCount) = 0;
/* AString getChildName (in unsigned long index); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChildName(uint32_t index, nsAString& _retval) = 0;
/* boolean hasChild (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HasChild(const nsAString& name, bool *_retval) = 0;
/* readonly attribute unsigned long valueCount; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValueCount(uint32_t *aValueCount) = 0;
/* AString getValueName (in unsigned long index); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValueName(uint32_t index, nsAString& _retval) = 0;
/* boolean hasValue (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HasValue(const nsAString& name, bool *_retval) = 0;
/* void removeChild (in AString relPath); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveChild(const nsAString& relPath) = 0;
/* void removeValue (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveValue(const nsAString& name) = 0;
/* unsigned long getValueType (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValueType(const nsAString& name, uint32_t *_retval) = 0;
/* AString readStringValue (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReadStringValue(const nsAString& name, nsAString& _retval) = 0;
/* unsigned long readIntValue (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReadIntValue(const nsAString& name, uint32_t *_retval) = 0;
/* unsigned long long readInt64Value (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReadInt64Value(const nsAString& name, uint64_t *_retval) = 0;
/* ACString readBinaryValue (in AString name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReadBinaryValue(const nsAString& name, nsACString& _retval) = 0;
/* void writeStringValue (in AString name, in AString data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WriteStringValue(const nsAString& name, const nsAString& data) = 0;
/* void writeIntValue (in AString name, in unsigned long data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WriteIntValue(const nsAString& name, uint32_t data) = 0;
/* void writeInt64Value (in AString name, in unsigned long long data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WriteInt64Value(const nsAString& name, uint64_t data) = 0;
/* void writeBinaryValue (in AString name, in ACString data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WriteBinaryValue(const nsAString& name, const nsACString& data) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowsRegKey, NS_IWINDOWSREGKEY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSREGKEY \
NS_IMETHOD Close(void) override; \
NS_IMETHOD Open(uint32_t rootKey, const nsAString& relPath, uint32_t mode) override; \
NS_IMETHOD Create(uint32_t rootKey, const nsAString& relPath, uint32_t mode) override; \
NS_IMETHOD OpenChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) override; \
NS_IMETHOD CreateChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) override; \
NS_IMETHOD GetChildCount(uint32_t *aChildCount) override; \
NS_IMETHOD GetChildName(uint32_t index, nsAString& _retval) override; \
NS_IMETHOD HasChild(const nsAString& name, bool *_retval) override; \
NS_IMETHOD GetValueCount(uint32_t *aValueCount) override; \
NS_IMETHOD GetValueName(uint32_t index, nsAString& _retval) override; \
NS_IMETHOD HasValue(const nsAString& name, bool *_retval) override; \
NS_IMETHOD RemoveChild(const nsAString& relPath) override; \
NS_IMETHOD RemoveValue(const nsAString& name) override; \
NS_IMETHOD GetValueType(const nsAString& name, uint32_t *_retval) override; \
NS_IMETHOD ReadStringValue(const nsAString& name, nsAString& _retval) override; \
NS_IMETHOD ReadIntValue(const nsAString& name, uint32_t *_retval) override; \
NS_IMETHOD ReadInt64Value(const nsAString& name, uint64_t *_retval) override; \
NS_IMETHOD ReadBinaryValue(const nsAString& name, nsACString& _retval) override; \
NS_IMETHOD WriteStringValue(const nsAString& name, const nsAString& data) override; \
NS_IMETHOD WriteIntValue(const nsAString& name, uint32_t data) override; \
NS_IMETHOD WriteInt64Value(const nsAString& name, uint64_t data) override; \
NS_IMETHOD WriteBinaryValue(const nsAString& name, const nsACString& data) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIWINDOWSREGKEY \
nsresult Close(void); \
nsresult Open(uint32_t rootKey, const nsAString& relPath, uint32_t mode); \
nsresult Create(uint32_t rootKey, const nsAString& relPath, uint32_t mode); \
nsresult OpenChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval); \
nsresult CreateChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval); \
nsresult GetChildCount(uint32_t *aChildCount); \
nsresult GetChildName(uint32_t index, nsAString& _retval); \
nsresult HasChild(const nsAString& name, bool *_retval); \
nsresult GetValueCount(uint32_t *aValueCount); \
nsresult GetValueName(uint32_t index, nsAString& _retval); \
nsresult HasValue(const nsAString& name, bool *_retval); \
nsresult RemoveChild(const nsAString& relPath); \
nsresult RemoveValue(const nsAString& name); \
nsresult GetValueType(const nsAString& name, uint32_t *_retval); \
nsresult ReadStringValue(const nsAString& name, nsAString& _retval); \
nsresult ReadIntValue(const nsAString& name, uint32_t *_retval); \
nsresult ReadInt64Value(const nsAString& name, uint64_t *_retval); \
nsresult ReadBinaryValue(const nsAString& name, nsACString& _retval); \
nsresult WriteStringValue(const nsAString& name, const nsAString& data); \
nsresult WriteIntValue(const nsAString& name, uint32_t data); \
nsresult WriteInt64Value(const nsAString& name, uint64_t data); \
nsresult WriteBinaryValue(const nsAString& name, const nsACString& data);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSREGKEY(_to) \
NS_IMETHOD Close(void) override { return _to Close(); } \
NS_IMETHOD Open(uint32_t rootKey, const nsAString& relPath, uint32_t mode) override { return _to Open(rootKey, relPath, mode); } \
NS_IMETHOD Create(uint32_t rootKey, const nsAString& relPath, uint32_t mode) override { return _to Create(rootKey, relPath, mode); } \
NS_IMETHOD OpenChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) override { return _to OpenChild(relPath, mode, _retval); } \
NS_IMETHOD CreateChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) override { return _to CreateChild(relPath, mode, _retval); } \
NS_IMETHOD GetChildCount(uint32_t *aChildCount) override { return _to GetChildCount(aChildCount); } \
NS_IMETHOD GetChildName(uint32_t index, nsAString& _retval) override { return _to GetChildName(index, _retval); } \
NS_IMETHOD HasChild(const nsAString& name, bool *_retval) override { return _to HasChild(name, _retval); } \
NS_IMETHOD GetValueCount(uint32_t *aValueCount) override { return _to GetValueCount(aValueCount); } \
NS_IMETHOD GetValueName(uint32_t index, nsAString& _retval) override { return _to GetValueName(index, _retval); } \
NS_IMETHOD HasValue(const nsAString& name, bool *_retval) override { return _to HasValue(name, _retval); } \
NS_IMETHOD RemoveChild(const nsAString& relPath) override { return _to RemoveChild(relPath); } \
NS_IMETHOD RemoveValue(const nsAString& name) override { return _to RemoveValue(name); } \
NS_IMETHOD GetValueType(const nsAString& name, uint32_t *_retval) override { return _to GetValueType(name, _retval); } \
NS_IMETHOD ReadStringValue(const nsAString& name, nsAString& _retval) override { return _to ReadStringValue(name, _retval); } \
NS_IMETHOD ReadIntValue(const nsAString& name, uint32_t *_retval) override { return _to ReadIntValue(name, _retval); } \
NS_IMETHOD ReadInt64Value(const nsAString& name, uint64_t *_retval) override { return _to ReadInt64Value(name, _retval); } \
NS_IMETHOD ReadBinaryValue(const nsAString& name, nsACString& _retval) override { return _to ReadBinaryValue(name, _retval); } \
NS_IMETHOD WriteStringValue(const nsAString& name, const nsAString& data) override { return _to WriteStringValue(name, data); } \
NS_IMETHOD WriteIntValue(const nsAString& name, uint32_t data) override { return _to WriteIntValue(name, data); } \
NS_IMETHOD WriteInt64Value(const nsAString& name, uint64_t data) override { return _to WriteInt64Value(name, data); } \
NS_IMETHOD WriteBinaryValue(const nsAString& name, const nsACString& data) override { return _to WriteBinaryValue(name, data); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINDOWSREGKEY(_to) \
NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
NS_IMETHOD Open(uint32_t rootKey, const nsAString& relPath, uint32_t mode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(rootKey, relPath, mode); } \
NS_IMETHOD Create(uint32_t rootKey, const nsAString& relPath, uint32_t mode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Create(rootKey, relPath, mode); } \
NS_IMETHOD OpenChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenChild(relPath, mode, _retval); } \
NS_IMETHOD CreateChild(const nsAString& relPath, uint32_t mode, nsIWindowsRegKey **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateChild(relPath, mode, _retval); } \
NS_IMETHOD GetChildCount(uint32_t *aChildCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
NS_IMETHOD GetChildName(uint32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildName(index, _retval); } \
NS_IMETHOD HasChild(const nsAString& name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasChild(name, _retval); } \
NS_IMETHOD GetValueCount(uint32_t *aValueCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueCount(aValueCount); } \
NS_IMETHOD GetValueName(uint32_t index, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueName(index, _retval); } \
NS_IMETHOD HasValue(const nsAString& name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasValue(name, _retval); } \
NS_IMETHOD RemoveChild(const nsAString& relPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChild(relPath); } \
NS_IMETHOD RemoveValue(const nsAString& name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveValue(name); } \
NS_IMETHOD GetValueType(const nsAString& name, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueType(name, _retval); } \
NS_IMETHOD ReadStringValue(const nsAString& name, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadStringValue(name, _retval); } \
NS_IMETHOD ReadIntValue(const nsAString& name, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadIntValue(name, _retval); } \
NS_IMETHOD ReadInt64Value(const nsAString& name, uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadInt64Value(name, _retval); } \
NS_IMETHOD ReadBinaryValue(const nsAString& name, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadBinaryValue(name, _retval); } \
NS_IMETHOD WriteStringValue(const nsAString& name, const nsAString& data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteStringValue(name, data); } \
NS_IMETHOD WriteIntValue(const nsAString& name, uint32_t data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteIntValue(name, data); } \
NS_IMETHOD WriteInt64Value(const nsAString& name, uint64_t data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteInt64Value(name, data); } \
NS_IMETHOD WriteBinaryValue(const nsAString& name, const nsACString& data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteBinaryValue(name, data); }
#endif /* __gen_nsIWindowsRegKey_h__ */