Lines Matching refs:hnd
7 CacServerHandle *hnd = NULL;
14 hnd = cac_NewServerHandle(True);
16 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
18 cac_parse_cmd_line(argc, argv, hnd);
20 if(!cac_Connect(hnd, NULL)) {
21 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
34 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
35 fprintf(stderr, "Could not open key %s. Error %s\n", rok.in.name, nt_errstr(hnd->status));
46 if(!cac_RegSetValue(hnd, mem_ctx, &rsv)) {
47 fprintf(stderr, "Could not set value. Error: %s\n", nt_errstr(hnd->status));
50 cac_RegClose(hnd, mem_ctx, rok.out.key);
52 cac_FreeHandle(hnd);