Lines Matching refs:hnd
8 CacServerHandle *hnd = NULL;
21 hnd = cac_NewServerHandle(True);
24 fscanf(stdin, "%s", hnd->server);
43 if(!cac_Connect(hnd, NULL)) {
44 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
45 cac_FreeHandle(hnd);
59 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
60 fprintf(stderr, "Could not open key %s\n Error: %s\n", rok.in.name, nt_errstr(hnd->status));
73 while(cac_RegEnumKeys(hnd, mem_ctx, &ek)) {
81 if(CAC_OP_FAILED(hnd->status)) {
82 fprintf(stderr, "Could not enumerate keys: %s\n", nt_errstr(hnd->status));
88 if(!cac_RegClose(hnd, mem_ctx, rok.out.key)) {
89 fprintf(stderr, "Could not close handle %s\n", nt_errstr(hnd->status));
93 cac_FreeHandle(hnd);