summaryrefslogtreecommitdiffhomepage
path: root/src/object
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-03-19 02:56:54 +0000
committermidipix <writeonce@midipix.org>2018-03-20 23:27:58 -0400
commite7235fb6a483c1a4f4201b578957e1f62cd6efb7 (patch)
treeccdc13e0862e6c14f23dc9593be92b5948371c98 /src/object
parent39bb9d66aae4253c7c0b926785c0f2cc69b8993e (diff)
downloadntapi-e7235fb6a483c1a4f4201b578957e1f62cd6efb7.tar.bz2
ntapi-e7235fb6a483c1a4f4201b578957e1f62cd6efb7.tar.xz
sid helper interfaces: added ntapi_tt_sid_copy().
Diffstat (limited to 'src/object')
-rw-r--r--src/object/ntapi_tt_sid.c23
1 files changed, 23 insertions, 0 deletions
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 <psxtypes/psxtypes.h>
+#include <ntapi/nt_object.h>
+#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; i<src->sub_authority_count; i++)
+ dst->sub_authority[i] = src->sub_authority[i];
+}