< Summary

Class:SharpHoundRPC.Handles.SAMPointer
Assembly:SharpHoundRPC
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\Handles\SAMPointer.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:25
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%100%
.ctor(...)100%100%
.ctor(...)100%100%
ReleaseHandle()100%100%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\Handles\SAMPointer.cs

#LineLine coverage
 1using System;
 2using SharpHoundRPC.SAMRPCNative;
 3
 4namespace SharpHoundRPC.Handles
 5{
 6    public class SAMPointer : BasePointer
 7    {
 08        public SAMPointer() : base(true)
 09        {
 010        }
 11
 012        public SAMPointer(IntPtr handle) : base(handle, true)
 013        {
 014        }
 15
 016        public SAMPointer(IntPtr handle, bool ownsHandle) : base(handle, ownsHandle)
 017        {
 018        }
 19
 20        protected override bool ReleaseHandle()
 021        {
 022            return SAMMethods.SamFreeMemory(handle) == NtStatus.StatusSuccess;
 023        }
 24    }
 25}