Home
last modified time | relevance | path

Searched refs:SafeHandle (Results 1 – 25 of 478) sorted by relevance

12345678910>>...20

/dports/lang/mono/mono-5.10.1.57/mono/tests/
H A Dsafehandle.2.cs9 public class MyHandle : SafeHandle {
35 public class MyHandleNoCtor : SafeHandle {
87 public static extern int mono_xr (SafeHandle sh); in mono_xr()
91 SafeHandle s = new SafeFileHandle ((IntPtr) 0xeadcafe, true); in test_0_marshal_safehandle_argument()
116 public SafeHandle handle1;
117 public SafeHandle handle2;
123 public SafeHandle a;
136 public static extern SafeHandle mono_safe_handle_return_1 (); in mono_safe_handle_return_1()
162 SafeHandle x = mono_safe_handle_return_1 (); in test_0_safehandle_return_exc()
174 SafeHandle x = mono_safe_handle_return (); in test_0_safehandle_return()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.IdentityModel.Selectors/infocard/client/System/IdentityModel/Selectors/
H A DCardSpaceShim.cs325 SafeHandle pPolicyChain, in CsV2GetToken()
340 SafeHandle pInData, in CsV2Encrypt()
351 SafeHandle pInData, in CsV2Decrypt()
361 SafeHandle pInData, in CsV2SignHash()
362 SafeHandle pHashAlgOid, in CsV2SignHash()
372 SafeHandle pInData, in CsV2VerifyHash()
373 SafeHandle pHashAlgOid, in CsV2VerifyHash()
376 SafeHandle pSig, in CsV2VerifyHash()
400 SafeHandle pIV, in CsV2GetCryptoTransform()
425 SafeHandle pInData); in CsV2HashCore()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/Microsoft/Win32/SafeHandles/
H A DSafeInteriorHandle.cs11 internal abstract class SafeInteriorHandle : SafeHandle
13 private SafeHandle _parent;
22 SafeHandle parent = _parent; in ReleaseHandle()
44 internal void SetParent(SafeHandle parent) in SetParent()
57 where TExteriorHandle : SafeHandle property in Microsoft.Win32.SafeHandles.SafeInteriorHandle
74 where TExteriorHandle : SafeHandle property in Microsoft.Win32.SafeHandles.SafeInteriorHandle
H A DSafeBioHandle.Unix.cs12 internal sealed class SafeBioHandle : SafeHandle
14 private SafeHandle _parent;
28 SafeHandle parent = _parent; in ReleaseHandle()
49 internal void TransferOwnershipToParent(SafeHandle parent) in TransferOwnershipToParent()
H A DAsn1SafeHandles.Unix.cs11 internal sealed class SafeAsn1ObjectHandle : SafeHandle
31 internal sealed class SafeAsn1BitStringHandle : SafeHandle
51 internal sealed class SafeAsn1OctetStringHandle : SafeHandle
71 internal sealed class SafeAsn1StringHandle : SafeHandle
H A DSafeX509Handles.Unix.cs12 internal sealed class SafeX509Handle : SafeHandle
34 internal sealed class SafeX509CrlHandle : SafeHandle
54 internal sealed class SafeX509StoreHandle : SafeHandle
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Diagnostics.EventLog/src/System/Diagnostics/
H A DUnsafeNativeMethods.cs14 public static extern bool ReportEvent(SafeHandle hEventLog, short type, ushort category, in ReportEvent()
19 … public static extern bool ClearEventLog(SafeHandle hEventLog, HandleRef lpctstrBackupFileName); in ClearEventLog()
22 public static extern bool GetNumberOfEventLogRecords(SafeHandle hEventLog, out int count); in GetNumberOfEventLogRecords()
26 public static extern bool GetOldestEventLogRecord(SafeHandle hEventLog, out int number); in GetOldestEventLogRecord()
30 public static extern bool ReadEventLog(SafeHandle hEventLog, int dwReadFlags, in ReadEventLog()
36 public static extern bool NotifyChangeEventLog(SafeHandle hEventLog, SafeWaitHandle hEvent); in NotifyChangeEventLog()
/dports/lang/mono/mono-5.10.1.57/mcs/class/corlib/System.Security.AccessControl/
H A DNativeObjectSecurity.cs46 string name, SafeHandle handle, in ExceptionFromErrorCode()
77 SafeHandle handle, in NativeObjectSecurity()
93 SafeHandle handle, in NativeObjectSecurity()
127 protected override sealed void Persist (SafeHandle handle, in Persist()
139 internal void PersistModifications (SafeHandle handle) in PersistModifications()
149 protected void Persist (SafeHandle handle, in Persist()
189 string name, SafeHandle handle, in DefaultExceptionFromErrorCode()
201 void RaiseExceptionOnFailure (int errorCode, string name, SafeHandle handle, object context) in RaiseExceptionOnFailure()
209 internal virtual int InternalGet (SafeHandle handle, in InternalGet()
250 internal virtual int InternalSet (SafeHandle handle, AccessControlSections includeSections) in InternalSet()
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/ansible/windows/plugins/module_utils/
H A DProcess.cs117 SafeHandle hJob, in AssignProcessToJobObject()
169 SafeHandle hProcess, in GetExitCodeProcess()
174 SafeHandle CompletionPort, in GetQueuedCompletionStatus()
182 SafeHandle hThread); in ResumeThread()
194 SafeHandle hObject, in SetHandleInformation()
200 SafeHandle hJob, in SetInformationJobObject()
207 SafeHandle hHandle, in WaitForSingleObject()
333 public SafeHandle StandardInput { get; set; }
334 public SafeHandle StandardOutput { get; set; }
335 public SafeHandle StandardError { get; set; }
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Security.Cryptography.Cng/tests/
H A DHandleTests.cs46 using (SafeHandle openButInvalid = new StateInformingSafeHandle(false)) in SafeNCryptKeyHandle_ParentHandle_Invalid()
47 using (SafeHandle closedAndInvalid = new StateInformingSafeHandle()) in SafeNCryptKeyHandle_ParentHandle_Invalid()
48 using (SafeHandle closedButValid = new StateInformingSafeHandle(true, false)) in SafeNCryptKeyHandle_ParentHandle_Invalid()
71 using (SafeHandle parentHandle = new StateInformingSafeHandle()) in SafeNCryptKeyHandle_InvalidKey_ParentHandle_NotKeptAlive()
95 using (SafeHandle parentHandle = new StateInformingSafeHandle()) in SafeNCryptKeyHandle_ValidKey_ParentHandle_KeptAlive()
129 using (SafeHandle parentHandle = new StateInformingSafeHandle()) in SafeNCryptKeyHandle_ValidKey_ParentHandle_DoesNotForciblyClose()
145 private class StateInformingSafeHandle : SafeHandle
/dports/lang/mono/mono-5.10.1.57/external/corert/src/System.Private.CoreLib/src/System/Runtime/InteropServices/
H A DSafeHandle.cs121 public abstract class SafeHandle : CriticalFinalizerObject, IDisposable class
141 protected SafeHandle(IntPtr invalidHandleValue, bool ownsHandle) in SafeHandle() method in System.Runtime.InteropServices.SafeHandle
177 private SafeHandle _safeHandle;
179 public DelayedFinalizer(SafeHandle safeHandle) in DelayedFinalizer()
190 ~SafeHandle() in ~SafeHandle()
443 public static void DangerousAddRef(this SafeHandle safeHandle) in DangerousAddRef()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Reflection.Metadata/src/System/Reflection/Internal/Utilities/
H A DFileStreamReadLightUp.netstandard1.1.cs41 internal static SafeHandle GetSafeFileHandle(Stream stream) in GetSafeFileHandle()
57 SafeHandle handle; in GetSafeFileHandle()
60 handle = (SafeHandle)safeFileHandleProperty.GetValue(stream); in GetSafeFileHandle()
97 SafeHandle handle = GetSafeFileHandle(stream); in TryReadFile()
133 SafeHandle fileHandle, in ReadFile()
H A DFileStreamReadLightUp.cs19 internal static SafeHandle GetSafeFileHandle(Stream stream) in GetSafeFileHandle()
21 SafeHandle handle; in GetSafeFileHandle()
50 SafeHandle handle = GetSafeFileHandle(stream); in TryReadFile()
86 SafeHandle fileHandle, in ReadFile()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/Interop/Unix/System.Native/
H A DInterop.MulticastOption.cs36 …internal static extern unsafe Error GetIPv4MulticastOption(SafeHandle socket, MulticastOption mult… in GetIPv4MulticastOption()
39 …internal static extern unsafe Error SetIPv4MulticastOption(SafeHandle socket, MulticastOption mult… in SetIPv4MulticastOption()
42 …internal static extern unsafe Error GetIPv6MulticastOption(SafeHandle socket, MulticastOption mult… in GetIPv6MulticastOption()
45 …internal static extern unsafe Error SetIPv6MulticastOption(SafeHandle socket, MulticastOption mult… in SetIPv6MulticastOption()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Threading.Overlapped/tests/
H A DThreadPoolBoundHandle_BindHandleTests.cs17 ThreadPoolBoundHandle.BindHandle((SafeHandle)null); in BindHandle_NullAsHandle_ThrowsArgumentNullException()
24 using(SafeHandle handle = HandleFactory.CreateHandle(IntPtr.Zero)) in BindHandle_ZeroAsHandle_ThrowsArgumentException()
36 using(SafeHandle handle = HandleFactory.CreateHandle(new IntPtr(-1))) in BindHandle_MinusOneAsHandle_ThrowsArgumentException()
56 using(SafeHandle handle = HandleFactory.CreateSyncFileHandleForWrite(GetTestFilePath())) in BindHandle_SyncHandleAsHandle_ThrowsArgumentException()
128 using(SafeHandle handle = HandleFactory.CreateAsyncFileHandleForWrite(GetTestFilePath())) in BindHandle_AlreadyBoundHandleAsHandle_ThrowsArgumentException()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Sockets/src/System/Net/Sockets/
H A DBaseOverlappedAsyncResult.Windows.cs43 Debug.Assert(s.SafeHandle != null, "m_CurrentSocket.SafeHandle is null"); in SetUnmanagedStructures()
45 if (s.SafeHandle.IsInvalid) in SetUnmanagedStructures()
55 _nativeOverlapped = new SafeNativeOverlapped(s.SafeHandle, overlapped); in SetUnmanagedStructures()
104 socket.SafeHandle, in CompletionPortCallback()
153 if (socket.SafeHandle.SkipCompletionPortOnSuccess) in ProcessOverlappedResult()
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/module_utils/csharp/
H A DAnsible.Privilege.cs79 SafeHandle ProcessHandle, in OpenProcessToken()
138 private SafeHandle process;
206 public static Dictionary<string, bool?> DisablePrivilege(SafeHandle token, string privilege) in DisablePrivilege()
216 public static Dictionary<string, bool?> DisableAllPrivileges(SafeHandle token) in DisableAllPrivileges()
227 public static Dictionary<string, bool?> EnablePrivilege(SafeHandle token, string privilege) in EnablePrivilege()
237 public static Dictionary<String, PrivilegeAttributes> GetAllPrivilegeInfo(SafeHandle token) in GetAllPrivilegeInfo()
278 public static void RemovePrivilege(SafeHandle token, string privilege) in RemovePrivilege()
294 …public static Dictionary<string, bool?> SetTokenPrivileges(SafeHandle token, IDictionary state, bo… in SetTokenPrivileges()
328 …private static Dictionary<string, bool?> AdjustTokenPrivileges(SafeHandle token, NativeHelpers.LUI… in AdjustTokenPrivileges()
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/lib/ansible/module_utils/csharp/
H A DAnsible.Privilege.cs79 SafeHandle ProcessHandle, in OpenProcessToken()
138 private SafeHandle process;
206 public static Dictionary<string, bool?> DisablePrivilege(SafeHandle token, string privilege) in DisablePrivilege()
216 public static Dictionary<string, bool?> DisableAllPrivileges(SafeHandle token) in DisableAllPrivileges()
227 public static Dictionary<string, bool?> EnablePrivilege(SafeHandle token, string privilege) in EnablePrivilege()
237 public static Dictionary<String, PrivilegeAttributes> GetAllPrivilegeInfo(SafeHandle token) in GetAllPrivilegeInfo()
278 public static void RemovePrivilege(SafeHandle token, string privilege) in RemovePrivilege()
294 …public static Dictionary<string, bool?> SetTokenPrivileges(SafeHandle token, IDictionary state, bo… in SetTokenPrivileges()
328 …private static Dictionary<string, bool?> AdjustTokenPrivileges(SafeHandle token, NativeHelpers.LUI… in AdjustTokenPrivileges()
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/lib/ansible/module_utils/csharp/
H A DAnsible.Privilege.cs79 SafeHandle ProcessHandle, in operator string()
138 private SafeHandle process; in LsaGetLogonSessionData()
206 public static Dictionary<string, bool?> DisablePrivilege(SafeHandle token, string privilege) in SafeLsaHandle()
216 public static Dictionary<string, bool?> DisableAllPrivileges(SafeHandle token) in SafeLsaHandle()
227 public static Dictionary<string, bool?> EnablePrivilege(SafeHandle token, string privilege) in SafeLsaHandle()
237 public static Dictionary<String, PrivilegeAttributes> GetAllPrivilegeInfo(SafeHandle token) in SafeLsaHandle()
278 public static void RemovePrivilege(SafeHandle token, string privilege) in SafeLsaHandle()
294 …public static Dictionary<string, bool?> SetTokenPrivileges(SafeHandle token, IDictionary state, bo… in SafeLsaHandle()
328 …private static Dictionary<string, bool?> AdjustTokenPrivileges(SafeHandle token, NativeHelpers.LUI… in SafeLsaHandle()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/Interop/Windows/advapi32/
H A DInterop.CryptGetProvParam.cs28 SafeHandle safeProvHandle, in CryptGetProvParam()
37 SafeHandle safeProvHandle, in CryptSetProvParam()
43 SafeHandle safeProvHandle, in CryptGetProvParam()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Security.AccessControl/src/System/Security/AccessControl/
H A DNativeObjectSecurity.cs42 …te System.Exception ExceptionFromErrorCode(int errorCode, string name, SafeHandle handle, object c… in ExceptionFromErrorCode()
83 …protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle handle, Acc… in NativeObjectSecurity()
88 …protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle handle, Acc… in NativeObjectSecurity()
97 …eateInternal(ResourceType resourceType, bool isContainer, string name, SafeHandle handle, AccessCo… in CreateInternal()
175 …private void Persist(string name, SafeHandle handle, AccessControlSections includeSections, object… in Persist()
358 … protected sealed override void Persist(SafeHandle handle, AccessControlSections includeSections) in Persist()
363 …protected void Persist(SafeHandle handle, AccessControlSections includeSections, object exceptionC… in Persist()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Threading.Overlapped/src/System/Threading/
H A DClrThreadPoolBoundHandle.cs20 private readonly SafeHandle _handle;
23 private ThreadPoolBoundHandle(SafeHandle handle) in ThreadPoolBoundHandle()
34 public SafeHandle Handle
78 public static ThreadPoolBoundHandle BindHandle(SafeHandle handle) in BindHandle()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/
H A DChainPal.cs22 private Stack<SafeHandle> _extraHandles;
31 _extraHandles = new Stack<SafeHandle>(); in SecTrustChainPal()
34 public SafeX509ChainHandle SafeHandle => null; field in Internal.Cryptography.Pal.SecTrustChainPal
76 Stack<SafeHandle> extraHandles = _extraHandles; in Dispose()
98 SafeHandle defaultPolicy = Interop.AppleCrypto.X509ChainCreateDefaultPolicy(); in PreparePoliciesArray()
111 SafeHandle revPolicy = Interop.AppleCrypto.X509ChainCreateRevocationPolicy(); in PreparePoliciesArray()
126 SafeHandle[] safeHandles = new SafeHandle[ptrs.Length]; in PrepareCertsArray()
149 SafeHandle handle = safeHandles[idx]; in PrepareCertsArray()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/threading/
H A Dhostexecutioncontextmanager.cs101 internal class IUnknownSafeHandle : SafeHandle
154 … static internal extern int CloneHostSecurityContext(SafeHandle context, SafeHandle clonedContext); in CloneHostSecurityContext()
159 static private extern int CaptureHostSecurityContext(SafeHandle capturedContext); in CaptureHostSecurityContext()
165 …static private extern int SetHostSecurityContext(SafeHandle context, bool fReturnPrevious, SafeHan… in SetHostSecurityContext()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System/net/System/Net/WebSockets/
H A DServerWebSocket.cs22 private readonly SafeHandle m_SessionHandle;
44 internal override SafeHandle SessionHandle
55 private SafeHandle CreateWebSocketHandle() in CreateWebSocketHandle()

12345678910>>...20