データ構造 | |
struct | samr_connect_hnd_object |
struct | samr_domain_hnd_object |
struct | samr_user_hnd_object |
struct | samr_group_hnd_object |
struct | samr_alias_hnd_object |
関数 | |
BOOL | py_from_acct_info (PyObject **array, struct acct_info *info, int num_accts) |
BOOL | py_from_SAM_USER_INFO_16 (PyObject **dict, SAM_USER_INFO_16 *info) |
BOOL | py_to_SAM_USER_INFO_16 (SAM_USER_INFO_16 *info, PyObject *dict) |
BOOL | py_from_SAM_USER_INFO_21 (PyObject **dict, SAM_USER_INFO_21 *info) |
BOOL | py_to_SAM_USER_INFO_21 (SAM_USER_INFO_21 *info, PyObject *dict) |
変数 | |
PyTypeObject | samr_connect_hnd_type |
PyTypeObject | samr_domain_hnd_type |
PyTypeObject | samr_user_hnd_type |
PyTypeObject | samr_group_hnd_type |
PyTypeObject | samr_alias_hnd_type |
PyObject * | samr_error |
py_samr_conv.c の 101 行で定義されています。
00102 { 00103 int i; 00104 00105 *array = PyList_New(num_accts); 00106 00107 for (i = 0; i < num_accts; i++) { 00108 PyObject *obj; 00109 00110 obj = PyDict_New(); 00111 00112 PyDict_SetItemString( 00113 obj, "name", PyString_FromString(info[i].acct_name)); 00114 00115 PyDict_SetItemString( 00116 obj, "description", 00117 PyString_FromString(info[i].acct_desc)); 00118 00119 PyDict_SetItemString(obj, "rid", PyInt_FromLong(info[i].rid)); 00120 00121 PyList_SetItem(*array, i, obj); 00122 } 00123 00124 return True; 00125 }
BOOL py_from_SAM_USER_INFO_16 | ( | PyObject ** | dict, | |
SAM_USER_INFO_16 * | info | |||
) |
py_samr_conv.c の 33 行で定義されています。
参照先 from_struct()・py_SAM_USER_INFO_16.
00034 { 00035 *dict = from_struct(info, py_SAM_USER_INFO_16); 00036 PyDict_SetItemString(*dict, "level", PyInt_FromLong(16)); 00037 return True; 00038 }
BOOL py_to_SAM_USER_INFO_16 | ( | SAM_USER_INFO_16 * | info, | |
PyObject * | dict | |||
) |
py_samr_conv.c の 40 行で定義されています。
参照先 py_SAM_USER_INFO_16・result・to_struct().
00041 { 00042 PyObject *obj, *dict_copy = PyDict_Copy(dict); 00043 BOOL result = False; 00044 00045 if (!(obj = PyDict_GetItemString(dict_copy, "level")) || 00046 !PyInt_Check(obj)) 00047 goto done; 00048 00049 PyDict_DelItemString(dict_copy, "level"); 00050 00051 if (!to_struct(info, dict_copy, py_SAM_USER_INFO_16)) 00052 goto done; 00053 00054 result = True; 00055 00056 done: 00057 Py_DECREF(dict_copy); 00058 return result; 00059 }
BOOL py_from_SAM_USER_INFO_21 | ( | PyObject ** | dict, | |
SAM_USER_INFO_21 * | info | |||
) |
py_samr_conv.c の 69 行で定義されています。
参照先 from_struct()・py_SAM_USER_INFO_21.
00070 { 00071 *dict = from_struct(info, py_SAM_USER_INFO_21); 00072 PyDict_SetItemString(*dict, "level", PyInt_FromLong(21)); 00073 return True; 00074 }
BOOL py_to_SAM_USER_INFO_21 | ( | SAM_USER_INFO_21 * | info, | |
PyObject * | dict | |||
) |
py_samr_conv.c の 76 行で定義されています。
参照先 py_SAM_USER_INFO_21・result・to_struct().
00077 { 00078 PyObject *obj, *dict_copy = PyDict_Copy(dict); 00079 BOOL result = False; 00080 00081 if (!(obj = PyDict_GetItemString(dict_copy, "level")) || 00082 !PyInt_Check(obj)) 00083 goto done; 00084 00085 PyDict_DelItemString(dict_copy, "level"); 00086 00087 if (!to_struct(info, dict_copy, py_SAM_USER_INFO_21)) 00088 goto done; 00089 00090 result = True; 00091 00092 done: 00093 Py_DECREF(dict_copy); 00094 return result; 00095 }
PyTypeObject samr_connect_hnd_type |
PyTypeObject samr_domain_hnd_type |
PyTypeObject samr_user_hnd_type |
PyTypeObject samr_group_hnd_type |
PyTypeObject samr_alias_hnd_type |
PyObject* samr_error |