Lines Matching refs:hnd
8 CacServerHandle *hnd = NULL;
15 hnd = cac_NewServerHandle(True);
17 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
19 cac_parse_cmd_line(argc, argv, hnd);
21 hnd->_internal.srv_level = SRV_WIN_NT4;
23 if(!cac_Connect(hnd, NULL)) {
24 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
49 if(!cac_Shutdown(hnd, mem_ctx, &s)) {
50 fprintf(stderr, "could not shut down server: error %s\n", nt_errstr(hnd->status));
54 printf("Server %s is shutting down. Would you like to try to abort? [y/n]: ", hnd->server);
58 if(!cac_AbortShutdown(hnd, mem_ctx)) {
59 fprintf(stderr, "Could not abort shutdown. Error %s\n", nt_errstr(hnd->status));
64 cac_FreeHandle(hnd);