< Summary

Class:SharpHoundRPC.SAMRPCNative.SAMStructs
Assembly:SharpHoundRPC
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\SAMRPCNative\SAMStructs.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:35
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
Dispose()0%200%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\SAMRPCNative\SAMStructs.cs

#LineLine coverage
 1using System;
 2using System.Runtime.InteropServices;
 3using SharpHoundRPC.Shared;
 4
 5namespace SharpHoundRPC.SAMRPCNative
 6{
 7    public static class SAMStructs
 8    {
 9        public struct ObjectAttributes : IDisposable
 10        {
 11            public void Dispose()
 012            {
 013                if (_objectName == IntPtr.Zero) return;
 014                Marshal.DestroyStructure(_objectName, typeof(SharedStructs.UnicodeString));
 015                Marshal.FreeHGlobal(_objectName);
 016                _objectName = IntPtr.Zero;
 017            }
 18
 19            public int Length;
 20            public IntPtr RootDirectory;
 21            public uint Attributes;
 22            public IntPtr SID;
 23            public IntPtr Qos;
 24            private IntPtr _objectName;
 25            public SharedStructs.UnicodeString ObjectName;
 26        }
 27
 28        [StructLayout(LayoutKind.Sequential)]
 29        public struct SamRidEnumeration
 30        {
 31            public int Rid;
 32            public SharedStructs.UnicodeString Name;
 33        }
 34    }
 35}

Methods/Properties

Dispose()