From e7235fb6a483c1a4f4201b578957e1f62cd6efb7 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Mar 2018 02:56:54 +0000 Subject: sid helper interfaces: added ntapi_tt_sid_copy(). --- src/object/ntapi_tt_sid.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/object/ntapi_tt_sid.c (limited to 'src/object') diff --git a/src/object/ntapi_tt_sid.c b/src/object/ntapi_tt_sid.c new file mode 100644 index 0000000..d93775c --- /dev/null +++ b/src/object/ntapi_tt_sid.c @@ -0,0 +1,23 @@ +/********************************************************/ +/* ntapi: Native API core library */ +/* Copyright (C) 2013--2017 Z. Gilboa */ +/* Released under GPLv2 and GPLv3; see COPYING.NTAPI. */ +/********************************************************/ + +#include +#include +#include "ntapi_impl.h" + +void __stdcall __ntapi_tt_sid_copy( + __out nt_sid * dst, + __in const nt_sid * src) +{ + int i; + + dst->revision = src->revision; + dst->sub_authority_count = src->sub_authority_count; + dst->identifier_authority = src->identifier_authority; + + for (i=0; isub_authority_count; i++) + dst->sub_authority[i] = src->sub_authority[i]; +} -- cgit v1.2.3