Lines Matching refs:hnd
6 CacServerHandle *hnd = NULL;
13 hnd = cac_NewServerHandle(False);
16 hnd->username = SMB_MALLOC_ARRAY(char, sizeof(fstring));
17 hnd->domain = SMB_MALLOC_ARRAY(char, sizeof(fstring));
18 hnd->netbios_name = SMB_MALLOC_ARRAY(char, sizeof(fstring));
19 hnd->password = SMB_MALLOC_ARRAY(char, sizeof(fstring));
21 hnd->server = SMB_MALLOC_ARRAY(char, sizeof(fstring));
24 fscanf(stdin, "%s", hnd->server);
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);
41 if(!cac_RegConnect(hnd, mem_ctx, &rc)) {
42 fprintf(stderr, " Could not connect to registry. %s\n", nt_errstr(hnd->status));
56 if(!cac_RegOpenKey(hnd, mem_ctx, &rok)) {
57 fprintf(stderr, "Could not open key %s\n Error: %s\n", rok.in.name, nt_errstr(hnd->status));
61 if(!cac_RegClose(hnd, mem_ctx, rok.out.key)) {
62 fprintf(stderr, "Could not close handle %s\n", nt_errstr(hnd->status));
65 if(!cac_RegClose(hnd, mem_ctx, rc.out.key)) {
66 fprintf(stderr, " Could not close handle. %s\n", nt_errstr(hnd->status));
70 cac_FreeHandle(hnd);