コード例 #1
0
ファイル: srv_eventlog_nt.c プロジェクト: 0x24bin/winexe-1
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;
}
コード例 #2
0
ファイル: srv_reg_nt.c プロジェクト: jophxy/samba
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;
}
コード例 #3
0
ファイル: srv_lsa_hnd.c プロジェクト: Nymphetaminer/dsl-n55u
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 ));
	}
}
コード例 #4
0
ファイル: srv_lsa_hnd.c プロジェクト: b3rnik/dsl-n55u-bender
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)));
    }
}
コード例 #5
0
ファイル: srv_dirent_state.c プロジェクト: pombredanne/cliffs
/****************************************************************************
  close dirent handle
****************************************************************************/
BOOL dirent_close_hnd(PDENT_HND hnd)
{
	return close_policy_hnd(hnd);
}
コード例 #6
0
ファイル: srv_file_state.c プロジェクト: pombredanne/cliffs
/****************************************************************************
  close file handle
****************************************************************************/
BOOL file_close_hnd(PFILE_HND hnd)
{
	return close_policy_hnd(hnd);
}