Lines Matching refs:hnd
8 CacServerHandle *hnd = NULL;
17 hnd = cac_NewServerHandle(True);
20 fscanf(stdin, "%s", hnd->server);
28 if(!cac_Connect(hnd, NULL)) {
29 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
30 cac_FreeHandle(hnd);
43 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
44 fprintf(stderr, "Could not open key %s\n Error: %s\n", rok.in.name, nt_errstr(hnd->status));
58 if(!cac_RegCreateKey(hnd, mem_ctx, &rck)) {
59 fprintf(stderr, "Could not create key. Error %s\n", nt_errstr(hnd->status));
63 if(!cac_RegClose(hnd, mem_ctx, rck.out.key)) {
64 fprintf(stderr, "Could not close key. Error %s\n", nt_errstr(hnd->status));
77 while(cac_RegEnumKeys(hnd, mem_ctx, &ek)) {
85 if(CAC_OP_FAILED(hnd->status)) {
86 fprintf(stderr, "Could not enumerate keys: %s\n", nt_errstr(hnd->status));
98 if(!cac_RegDeleteKey(hnd, mem_ctx, &rdk)) {
99 fprintf(stderr, "Could not delete key. Error %s\n", nt_errstr(hnd->status));
104 if(!cac_RegClose(hnd, mem_ctx, rok.out.key)) {
105 fprintf(stderr, "Could not close handle %s\n", nt_errstr(hnd->status));
109 cac_FreeHandle(hnd);