static NTSTATUS elog_close( pipes_struct *p, struct policy_handle *hnd ) { if ( !( close_policy_hnd( p, hnd ) ) ) { return NT_STATUS_INVALID_HANDLE; } return NT_STATUS_OK; }
NTSTATUS _reg_close(pipes_struct *p, REG_Q_CLOSE *q_u, REG_R_CLOSE *r_u) { /* set up the REG unknown_1 response */ ZERO_STRUCT(r_u->pol); /* close the policy handle */ if (!close_policy_hnd(p, &q_u->pol)) return NT_STATUS_OBJECT_NAME_INVALID; return NT_STATUS_OK; }
void close_policy_by_pipe(pipes_struct *p) { p->pipe_handles->pipe_ref_count--; if (p->pipe_handles->pipe_ref_count == 0) { /* * Last pipe open on this list - free the list. */ while (p->pipe_handles->Policy) close_policy_hnd(p, &p->pipe_handles->Policy->pol_hnd); p->pipe_handles->Policy = NULL; p->pipe_handles->count = 0; SAFE_FREE(p->pipe_handles); DEBUG(10,("close_policy_by_pipe: deleted handle list for pipe %s\n", p->name )); } }
void close_policy_by_pipe(pipes_struct *p) { p->pipe_handles->pipe_ref_count--; if (p->pipe_handles->pipe_ref_count == 0) { /* * Last pipe open on this list - free the list. */ while (p->pipe_handles->Policy) close_policy_hnd(p, &p->pipe_handles->Policy->pol_hnd); p->pipe_handles->Policy = NULL; p->pipe_handles->count = 0; SAFE_FREE(p->pipe_handles); DEBUG(10,("close_policy_by_pipe: deleted handle list for " "pipe %s\n", get_pipe_name_from_syntax(talloc_tos(), &p->syntax))); } }
/**************************************************************************** close dirent handle ****************************************************************************/ BOOL dirent_close_hnd(PDENT_HND hnd) { return close_policy_hnd(hnd); }
/**************************************************************************** close file handle ****************************************************************************/ BOOL file_close_hnd(PFILE_HND hnd) { return close_policy_hnd(hnd); }