Lines Matching defs:value
49 "DeleteValue() - Removes a named value from the specified registry key.\n"
60 "QueryValue() - Retrieves the value associated with the unnamed value for a\n"
62 "QueryValueEx() - Retrieves the type and data for a specified value name\n"
66 "SetValue() - Associates a value with a specified key.\n"
67 "SetValueEx() - Stores data in the value field of an open registry key.\n"
101 "rich comparison - Handle objects are compared using the handle value.");
184 XXX - should we use the handle value?
283 The result is the value of the handle before it is detached. If the
563 Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
569 if (value != Py_None && !PyLong_Check(value)) {
573 if (value == Py_None) {
576 else if (PyLong_Check(value)) {
577 d = PyLong_AsUnsignedLong(value);
593 if (value != Py_None && !PyLong_Check(value)) {
597 if (value == Py_None) {
600 else if (PyLong_Check(value)) {
601 d = PyLong_AsUnsignedLongLong(value);
618 if (value != Py_None) {
620 if (!PyUnicode_Check(value))
622 *retDataBuf = (BYTE*)PyUnicode_AsWideCharString(value, &len);
645 if (value == Py_None)
648 if (!PyList_Check(value))
650 i = PyList_Size(value);
657 t = PyList_GET_ITEM(value, j);
691 t = PyList_GET_ITEM(value, j);
707 if (value == Py_None) {
714 if (!PyObject_CheckBuffer(value)) {
718 Py_TYPE(value)->tp_name);
722 if (PyObject_GetBuffer(value, &view, PyBUF_SIMPLE) < 0)
858 The return value is the handle of the opened key.
899 The return value is the handle of the opened key.
947 The return value is the handle of the opened key.
984 the key parameter. This value must not be None, and the key may not
1021 the key parameter. This value must not be None, and the key may not
1066 value: Py_UNICODE(accept={str, NoneType})
1067 A string that identifies the value to remove.
1070 Removes a named value from a registry key.
1074 winreg_DeleteValue_impl(PyObject *module, HKEY key, const Py_UNICODE *value)
1079 (Py_ssize_t)key, value) < 0) {
1083 rc = RegDeleteValueW(key, value);
1143 An integer that identifies the index of the value to retrieve.
1154 A string that identifies the value.
1156 An object that holds the value data, and whose type depends
1159 An integer that identifies the type of the value data.
1486 A string that holds the name of the subkey with which the value
1488 retrieves the value set by the SetValue() method for the key
1492 Retrieves the unnamed value for a key.
1495 retrieves the data for a key's first value that has a NULL name.
1561 A string indicating the value to query.
1564 Retrieves the type and value of a specified sub-key.
1567 specified value name associated with the given open registry key.
1569 The return value is a tuple of the value and the type_id.
1678 A string that names the subkey with which the value is associated.
1682 value as value_obj: unicode
1683 A string that specifies the new value.
1686 Associates a value with a specified key.
1715 const wchar_t *value = PyUnicode_AsUnicodeAndSize(value_obj, &value_length);
1718 wchar_t *value = PyUnicode_AsWideCharString(value_obj, &value_length);
1720 if (value == NULL) {
1724 PyErr_SetString(PyExc_OverflowError, "value is too long");
1726 PyMem_Free(value);
1733 value, value_length) < 0) {
1735 PyMem_Free(value);
1741 rc = RegSetValueW(key, sub_key, REG_SZ, value, (DWORD)(value_length + 1));
1744 PyMem_Free(value);
1757 A string containing the name of the value to set, or None.
1773 REG_NONE -- No defined value type.
1778 value: object
1779 A string that specifies the new value.
1782 Stores data in the value field of an open registry key.
1784 This method can also set additional value and type information for the
1798 DWORD type, PyObject *value)
1806 if (!Py2Reg(value, type, &data, &len))
1815 value) < 0) {
2005 insint(PyObject * d, char * name, long value)
2007 PyObject *v = PyLong_FromLong(value);