Lines Matching refs:hnd
7 CacServerHandle *hnd = NULL;
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_ctx, &rgv))
48 fprintf(stderr, "Could not get version. Error: %s\n", nt_errstr(hnd->status));
68 if(!cac_RegDeleteValue(hnd, mem_ctx, &rdv))
69 fprintf(stderr, "Could not delete value %s. Error: %s\n", rdv.in.name, nt_errstr(hnd->status));
87 if(!cac_RegDeleteKey(hnd, mem_ctx, &rdk))
88 fprintf(stderr, "Could not delete key %s. Error %s\n", rdk.in.name, nt_errstr(hnd->status));
93 cac_RegClose(hnd, mem_ctx, rok.out.key);
95 cac_FreeHandle(hnd);