Searched refs:hnd (Results 26 - 50 of 197) sorted by relevance

12345678

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/cacusermgr/
H A Dmgr_group.c23 CacGroupInfo *get_group_info(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *group_hnd) { argument
26 if(!hnd || !mem_ctx ||!group_hnd)
32 if(!cac_SamGetGroupInfo(hnd, mem_ctx, &getinfo))
33 printerr("Could not get group info.", hnd->status);
47 CacGroupInfo *modify_group_info(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *group_hnd) { argument
52 info = get_group_info(hnd, mem_ctx, group_hnd);
66 if(!cac_SamSetGroupInfo(hnd, mem_ctx, &setinfo)) {
67 printerr("Could not set info.", hnd->status);
74 void group_menu(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, POLICY_HND *group_hnd) { argument
87 info = get_group_info(hnd, mem_ct
[all...]
H A Dcacusermgr.h36 int process_cmd_line(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, int argc, char **argv);
39 uint32 rid_or_name(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, uint32 *rid, char **name);
44 int list_groups(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd);
45 void list_privs(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, CacUserInfo *info);
46 void add_privs(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, CacUserInfo *info);
47 void list_users(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd);
60 void group_menu(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, POLICY_HND *group_hnd);
63 void user_menu(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, POLICY_HND *user_hnd);
H A Dmgr_user.c66 CacUserInfo *modify_user_info(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *user_hnd) { argument
78 if(!cac_SamGetUserInfo(hnd, mem_ctx, &getinfo)) {
79 printerr("Could not get user info.", hnd->status);
155 if(!cac_SamSetUserInfo(hnd, mem_ctx, &setinfo)) {
156 printerr("Could not set user info.", hnd->status);
162 void add_user_to_group(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, CacUserInfo *info, POLICY_HND *dom_hnd) { argument
177 rid_type = rid_or_name(hnd, mem_ctx, dom_hnd, &og.in.rid, &tmp);
179 if(!cac_SamOpenGroup(hnd, mem_ctx, &og)) {
180 printerr("Could not open group.", hnd->status);
187 if(!cac_SamAddGroupMember(hnd, mem_ct
194 remove_user_from_group(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, CacUserInfo *info, POLICY_HND *dom_hnd) argument
226 user_menu(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, POLICY_HND *user_hnd) argument
[all...]
H A Dutil.c37 int process_cmd_line(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, int argc, char **argv) { argument
40 if(!hnd || !mem_ctx || !argc)
48 strncpy(hnd->username, optarg, sizeof(fstring));
57 strncpy(hnd->domain, optarg, sizeof(fstring));
64 hnd->debug = atoi(optarg);
84 strncpy(hnd->server, argv[optind], sizeof(fstring));
190 uint32 rid_or_name(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, uint32 *rid, char **name) { argument
218 cac_SamGetNamesFromRids(hnd, mem_ctx, &getnames);
231 cac_SamGetRidsFromNames(hnd, mem_ctx, &getrids);
309 int list_groups(CacServerHandle *hnd, TALLOC_CT argument
329 list_users(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/test/lsa/
H A Dlsatrust.c24 CacServerHandle *hnd = NULL; local
32 hnd = cac_NewServerHandle(False);
35 hnd->username = SMB_MALLOC_ARRAY(char, sizeof(fstring));
36 hnd->domain = SMB_MALLOC_ARRAY(char, sizeof(fstring));
37 hnd->netbios_name = SMB_MALLOC_ARRAY(char, sizeof(fstring));
38 hnd->password = SMB_MALLOC_ARRAY(char, sizeof(fstring));
40 hnd->server = SMB_MALLOC_ARRAY(char, sizeof(fstring));
44 fscanf(stdin, "%s", hnd->server);
48 if(!cac_Connect(hnd, NULL)) {
49 fprintf(stderr, "Could not connect to server.\n Error: %s\n errno %s\n", nt_errstr(hnd
[all...]
H A Dlsapriv.c9 CacServerHandle *hnd = NULL; local
23 hnd = cac_NewServerHandle(True);
25 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
27 cac_parse_cmd_line(argc, argv, hnd);
29 if(!cac_Connect(hnd, NULL)) {
30 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
38 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
39 fprintf(stderr, "Could not open LSA policy. Error: %s\n", nt_errstr(hnd->status));
50 while(cac_LsaEnumPrivileges(hnd, mem_ct
[all...]
H A Dlsaenum.c8 CacServerHandle *hnd = NULL; local
18 hnd = cac_NewServerHandle(True);
21 fscanf(stdin, "%s", hnd->server);
23 if(!cac_Connect(hnd, NULL)) {
24 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
25 cac_FreeHandle(hnd);
39 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
40 fprintf(stderr, "Could not open policy handle.\n Error: %s\n", nt_errstr(hnd->status));
41 cac_FreeHandle(hnd);
56 while(cac_LsaEnumSids(hnd, mem_ct
[all...]
H A Dear.c9 void fill_conn_info(CacServerHandle *hnd) { argument
27 hnd->domain = SMB_STRDUP(domain);
28 hnd->username = SMB_STRDUP(username);
29 hnd->password = SMB_STRDUP(password);
30 hnd->server = SMB_STRDUP(server);
59 CacServerHandle *hnd = NULL; local
72 hnd = cac_NewServerHandle(False);
74 fill_conn_info(hnd);
79 if(!cac_Connect(hnd, NULL)) {
80 fprintf(stderr, "Could not connect to server.\n Error %s.\n", nt_errstr(hnd
[all...]
H A Dlsaq.c9 void fill_conn_info(CacServerHandle *hnd) { argument
27 hnd->domain = SMB_STRDUP(domain);
28 hnd->username = SMB_STRDUP(username);
29 hnd->password = SMB_STRDUP(password);
30 hnd->server = SMB_STRDUP(server);
59 CacServerHandle *hnd = NULL; local
72 hnd = cac_NewServerHandle(False);
74 fill_conn_info(hnd);
79 if(!cac_Connect(hnd, NULL)) {
80 fprintf(stderr, "Could not connect to server.\n Error %s.\n", nt_errstr(hnd
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/test/reg/
H A Dregdelete.c7 CacServerHandle *hnd = NULL; local
15 hnd = cac_NewServerHandle(True);
17 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
19 cac_parse_cmd_line(argc, argv, hnd);
21 if(!cac_Connect(hnd, NULL)) {
22 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
35 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
36 fprintf(stderr, "Could not open key %s. Error %s\n", rok.in.name, nt_errstr(hnd->status));
47 if(!cac_RegGetVersion(hnd, mem_ct
[all...]
H A Dregvalenum.c10 CacServerHandle *hnd = NULL; local
23 hnd = cac_NewServerHandle(True);
25 cac_parse_cmd_line(argc, argv, hnd);
27 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
29 if(!cac_Connect(hnd, NULL)) {
30 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
31 cac_FreeHandle(hnd);
62 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
63 fprintf(stderr, "Could not open key %s\n Error: %s\n", rok.in.name, nt_errstr(hnd->status));
76 while(cac_RegEnumValues(hnd, mem_ct
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/test/sam/
H A Dsamuser.c7 CacServerHandle *hnd = NULL; local
31 hnd = cac_NewServerHandle(True);
33 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
35 cac_parse_cmd_line(argc, argv, hnd);
37 if(!cac_Connect(hnd, NULL)) {
38 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
47 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
48 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
75 cac_SamClose(hnd, mem_ct
[all...]
H A Dsamgroup.c7 CacServerHandle *hnd = NULL; local
36 hnd = cac_NewServerHandle(True);
38 cac_parse_cmd_line(argc, argv, hnd);
40 if(!cac_Connect(hnd, NULL)) {
41 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
50 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
51 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
85 cac_SamClose(hnd, mem_ctx, group_hnd);
98 if(!cac_SamCreateGroup(hnd, mem_ct
[all...]
H A Dsamlookup.c7 CacServerHandle *hnd = NULL; local
21 hnd = cac_NewServerHandle(True);
23 cac_parse_cmd_line(argc, argv, hnd);
25 if(!cac_Connect(hnd, NULL)) {
26 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
35 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
36 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
63 if(!cac_SamGetNamesFromRids(hnd, mem_ctx, &sgn)) {
64 fprintf(stderr, "could not lookup names. Error: %s\n", nt_errstr(hnd
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/test/svcctl/
H A Dsvc.c7 CacServerHandle *hnd = NULL; local
31 hnd = cac_NewServerHandle(True);
33 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
35 cac_parse_cmd_line(argc, argv, hnd);
37 if(!cac_Connect(hnd, NULL)) {
38 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
47 if(!cac_SvcOpenScm(hnd, mem_ctx, &sos)) {
48 fprintf(stderr, "Could not open SCM. Error: %s\n", nt_errstr(hnd->status));
80 if(!cac_SvcEnumServices(hnd, mem_ct
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/
H A Dpy_spoolss_jobs.c27 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
43 hnd->cli, hnd->mem_ctx, &hnd->pol, level, 0, 1000,
89 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
103 hnd->cli, hnd->mem_ctx, &hnd->pol, jobid, level, command);
118 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
134 hnd
158 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
186 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
214 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
310 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
337 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
[all...]
H A Dpy_spoolss_printerdata.c111 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
126 hnd->cli, hnd->mem_ctx, &hnd->pol, valuename,
143 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
164 hnd->cli, hnd->mem_ctx, &hnd->pol, &value);
177 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
190 hnd
222 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
248 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
279 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
312 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
360 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
387 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
[all...]
H A Dpy_spoolss_forms.c27 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
70 werror = rpccli_spoolss_addform(hnd->cli, hnd->mem_ctx, &hnd->pol,
87 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
104 hnd->cli, hnd->mem_ctx, &hnd->pol, form_name, level, &form);
127 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
160 hnd
176 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
206 spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/src/
H A Dtool_cb_see.c95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence)
103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence)
110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/
H A Ddbus-file-win.c40 * @param hnd the HANDLE to read from
47 _dbus_file_read (HANDLE hnd, argument
71 result = ReadFile (hnd, data, count, &bytes_read, NULL);
76 "Failed to read from 0x%x: %s", hnd, emsg);
111 HANDLE hnd; local
122 hnd = CreateFileA (filename_c, GENERIC_READ,
125 if (hnd == INVALID_HANDLE_VALUE)
134 _dbus_verbose ("file %s hnd %p opened\n", filename_c, hnd);
136 fsize = GetFileSize (hnd,
217 HANDLE hnd; local
371 HANDLE hnd; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/samba/
H A Dprinterdata.py21 self.hnd = spoolss.openprinter(host, creds = creds, access = access)
24 return self.hnd.enumprinterdata().keys()
27 return self.hnd.getprinterdata(key)['data']
31 self.hnd.setprinterdata({"key": "", "value": key, "type": 3,
55 self.hnd = spoolss.openprinter(host, creds, access)
59 return self.hnd.enumprinterdataex(self.key).keys()
62 return self.hnd.getprinterdataex(self.key, key)['data']
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/tests/unit/
H A Dunit1396.c24 CURL *hnd; variable
33 if (hnd)
34 curl_easy_cleanup(hnd);
78 hnd = curl_easy_init();
79 abort_unless(hnd != NULL, "returned NULL!");
82 char *out = curl_easy_unescape(hnd,
98 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/include/asm/xen/
H A Dinterface.h27 #define set_xen_guest_handle(hnd, val) \
29 if (sizeof(hnd) == 8) \
30 *(uint64_t *)&(hnd) = 0; \
31 (hnd).p = val; \
34 #define set_xen_guest_handle(hnd, val) do { (hnd).p = val; } while (0)
38 #define set_xen_guest_handle(hnd, val) \
40 if (sizeof(hnd) == 8) \
41 *(uint64_t *)&(hnd) = 0; \
42 (hnd)
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/include/
H A Dlibmsrpc.h449 SMBCSRV *cac_GetServer(CacServerHandle *hnd);
472 * @param hnd non-NULL server handle
476 void cac_SetAuthDataFn(CacServerHandle *hnd, smbc_get_auth_data_fn auth_fn);
480 * @param hnd Initialized, but not connected CacServerHandle
483 void cac_SetSmbcContext(CacServerHandle *hnd, SMBCCTX *ctx);
487 * @param hnd Pre-initialized CacServerHandle
490 * @return CAC_FAILURE if the operation could not be completed successfully (hnd->status will also be set with a NTSTATUS code)
493 int cac_Connect(CacServerHandle *hnd, const char *srv);
498 * @param hnd the CacServerHandle to destroy
500 void cac_FreeHandle(CacServerHandle * hnd);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/examples/spoolss/
H A Dpsec.py21 hnd = spoolss.openprinter(printername) variable
26 secdesc = hnd.getprinter(level = 3)["security_descriptor"]
35 spoolss.closeprinter(hnd)
46 hnd = spoolss.openprinter(printername, variable
82 hnd.setprinter(info3)
84 spoolss.closeprinter(hnd)

Completed in 215 milliseconds

12345678