59 types derived from SafeHandle
mscorlib (5)
microsoft\win32\safehandles\win32safehandles.cs (2)
30
public abstract class SafeHandleZeroOrMinusOneIsInvalid :
SafeHandle
56
public abstract class SafeHandleMinusOneIsInvalid :
SafeHandle
system\security\safesecurityhandles.cs (1)
13
public sealed class SafeAccessTokenHandle :
SafeHandle
system\threading\compressedstack.cs (1)
113
internal class SafeCompressedStackHandle :
SafeHandle
system\threading\hostexecutioncontextmanager.cs (1)
101
internal class IUnknownSafeHandle :
SafeHandle
PresentationCore (2)
Core\CSharp\MS\Win32\UnsafeNativeMethodsTablet.cs (2)
132
internal class RecognizerSafeHandle :
SafeHandle
191
internal class ContextSafeHandle :
SafeHandle
System (3)
net\System\Net\_SafeNetHandles.cs (3)
1066
internal abstract class SafeFreeCredentials :
SafeHandle
{
1399
internal abstract class SafeDeleteContext :
SafeHandle
{
2338
internal class SafeNativeOverlapped :
SafeHandle
System.Core (3)
System\Diagnostics\Eventing\Reader\CoTaskMemSafeHandle.cs (1)
28
internal sealed class CoTaskMemSafeHandle :
SafeHandle
{
System\Diagnostics\Eventing\Reader\CoTaskMemUnicodeSafeHandle.cs (1)
28
internal sealed class CoTaskMemUnicodeSafeHandle :
SafeHandle
{
System\Diagnostics\Eventing\Reader\EventLogHandle.cs (1)
30
internal sealed class EventLogHandle :
SafeHandle
{
System.Data (10)
fx\src\bid\inc\cs\bidPrivateBase.cs (1)
950
private sealed class AutoInit :
SafeHandle
fx\src\data\System\Data\Odbc\OdbcHandle.cs (1)
26
internal abstract class OdbcHandle :
SafeHandle
{
fx\src\data\System\Data\OleDb\DBPropSet.cs (1)
23
sealed internal class DBPropSet :
SafeHandle
{
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
38
internal sealed class PropertyInfoSet :
SafeHandle
{
fx\src\data\System\Data\OleDb\SafeHandles.cs (1)
23
internal sealed class DualCoTaskMem :
SafeHandle
{
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
22
internal abstract class DbBuffer :
SafeHandle
{
fx\src\data\System\Data\ProviderBase\WrappedIUnknown.cs (1)
26
internal class WrappedIUnknown :
SafeHandle
{
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (3)
22
internal sealed class SNILoadHandle :
SafeHandle
{
121
internal sealed class SNIHandle :
SafeHandle
{
191
internal sealed class SNIPacket :
SafeHandle
{
System.Drawing (2)
commonui\System\Drawing\Advanced\SafeCustomLineCapHandle.cs (1)
17
internal class SafeCustomLineCapHandle :
SafeHandle
{
commonui\System\Drawing\Printing\PrintController.cs (1)
34
internal sealed class SafeDeviceModeHandle :
SafeHandle
System.IdentityModel (2)
System\IdentityModel\SspiSafeHandles.cs (2)
133
class SafeDeleteContext :
SafeHandle
956
class SafeFreeCredentials :
SafeHandle
System.IdentityModel.Selectors (5)
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (1)
184
internal class InternalRefCountedHandle :
SafeHandle
infocard\client\System\IdentityModel\Selectors\SafeTokenHandle.cs (1)
19
internal class SafeTokenHandle :
SafeHandle
infocard\common\managed\GlobalAllocSafeHandle.cs (1)
23
internal class GlobalAllocSafeHandle :
SafeHandle
infocard\common\managed\HGlobalSafeHandle.cs (1)
21
internal class HGlobalSafeHandle :
SafeHandle
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (1)
107
internal class SafeEventLogHandle :
SafeHandle
System.IO.Log (5)
System\IO\Log\CoTaskMemHandle.cs (1)
12
internal sealed class CoTaskMemHandle :
SafeHandle
System\IO\Log\SafeArchiveContext.cs (1)
12
internal sealed class SafeArchiveContext :
SafeHandle
System\IO\Log\SafeMarshalContext.cs (1)
12
internal sealed class SafeMarshalContext :
SafeHandle
System\IO\Log\SafeReadContext.cs (1)
13
internal sealed class SafeReadContext :
SafeHandle
System\IO\Log\SmuggledIUnknown.cs (1)
11
internal sealed class SmuggledIUnknown :
SafeHandle
System.ServiceModel (4)
System\ServiceModel\Channels\PeerUnsafeNativeCryptMethods.cs (4)
40
class CertificateHandle :
SafeHandle
82
sealed class CertificateStoreHandle :
SafeHandle
107
sealed class KeyContainerHandle :
SafeHandle
131
sealed class KeyHandle :
SafeHandle
System.Transactions (2)
System\Transactions\Oletx\CoTaskMemHandle.cs (1)
11
internal sealed class CoTaskMemHandle :
SafeHandle
System\Transactions\SafeIUnknown.cs (1)
18
internal sealed class SafeIUnknown :
SafeHandle
System.Web (1)
PerfCounters.cs (1)
16
internal sealed class PerfInstanceDataHandle:
SafeHandle
{
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Control.cs (1)
17764
internal class SafeIUnknown :
SafeHandle
{
UIAutomationClient (5)
MS\Internal\Automation\SafeHandles.cs (3)
21
internal sealed class SafeNodeHandle :
SafeHandle
45
internal sealed class SafePatternHandle :
SafeHandle
68
internal sealed class SafeEventHandle :
SafeHandle
System\Windows\Automation\Condition.cs (1)
27
internal sealed class SafeConditionMemoryHandle :
SafeHandle
System\Windows\Automation\Text\TextRange.cs (1)
32
internal sealed class SafeTextRangeHandle :
SafeHandle
WindowsBase (5)
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementEnvironmentHandle.cs (1)
23
internal sealed class SafeRightsManagementEnvironmentHandle :
SafeHandle
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementHandle.cs (1)
23
internal sealed class SafeRightsManagementHandle :
SafeHandle
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementPubHandle.cs (1)
23
internal sealed class SafeRightsManagementPubHandle :
SafeHandle
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementQueryHandle.cs (1)
23
internal sealed class SafeRightsManagementQueryHandle :
SafeHandle
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementSessionHandle.cs (1)
23
internal sealed class SafeRightsManagementSessionHandle :
SafeHandle
WsatConfig (2)
Configuration\ClusterSafeNativeMethods.cs (1)
18
abstract class SafeClusterHandle :
SafeHandle
Configuration\SafeIUnknown.cs (1)
15
internal sealed class SafeIUnknown :
SafeHandle
WsatUI (2)
Configuration\ClusterSafeNativeMethods.cs (1)
18
abstract class SafeClusterHandle :
SafeHandle
Configuration\SafeIUnknown.cs (1)
15
internal sealed class SafeIUnknown :
SafeHandle
216 references to SafeHandle
mscorlib (40)
microsoft\win32\win32native.cs (7)
939
internal unsafe static extern uint GetFullPathNameW(char* path, uint numBufferChars,
SafeHandle
buffer, IntPtr mustBeZero);
955
internal static extern uint GetLongPathNameW(
SafeHandle
lpszShortPath,
SafeHandle
lpszLongPath, uint cchBuffer);
959
internal static extern uint GetLongPathNameW(string lpszShortPath,
SafeHandle
lpszLongPath, uint cchBuffer);
1438
internal static extern uint GetCurrentDirectoryW(uint nBufferLength,
SafeHandle
lpBuffer);
2259
SafeHandle
handle,
2683
SafeHandle
handle,
system\security\accesscontrol\eventwaithandlesecurity.cs (1)
136
private static Exception _HandleErrorCode(int errorCode, string name,
SafeHandle
handle, object context)
system\security\accesscontrol\filesecurity.cs (1)
344
private static Exception _HandleErrorCode(int errorCode, string name,
SafeHandle
handle, object context)
system\security\accesscontrol\mutexsecurity.cs (1)
136
private static Exception _HandleErrorCode(int errorCode, string name,
SafeHandle
handle, object context)
system\security\accesscontrol\nativeobjectsecurity.cs (7)
46
internal protected delegate System.Exception ExceptionFromErrorCode( int errorCode, string name,
SafeHandle
handle, object context );
91
protected NativeObjectSecurity( bool isContainer, ResourceType resourceType,
SafeHandle
handle, AccessControlSections includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext )
97
protected NativeObjectSecurity( bool isContainer, ResourceType resourceType,
SafeHandle
handle, AccessControlSections includeSections )
107
private static CommonSecurityDescriptor CreateInternal( ResourceType resourceType, bool isContainer, string name,
SafeHandle
handle, AccessControlSections includeSections, bool createByName, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext )
184
private void Persist( string name,
SafeHandle
handle, AccessControlSections includeSections, object exceptionContext )
374
protected sealed override void Persist(
SafeHandle
handle, AccessControlSections includeSections )
382
protected void Persist(
SafeHandle
handle, AccessControlSections includeSections, object exceptionContext )
system\security\accesscontrol\objectsecurity.cs (1)
344
protected virtual void Persist(
SafeHandle
handle, AccessControlSections includeSections )
system\security\accesscontrol\objectsecurityt.cs (3)
217
protected ObjectSecurity(bool isContainer, ResourceType resourceType,
SafeHandle
safeHandle, AccessControlSections includeSections)
221
protected ObjectSecurity(bool isContainer, ResourceType resourceType,
SafeHandle
safeHandle, AccessControlSections includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
289
protected internal void Persist(
SafeHandle
handle) {
system\security\accesscontrol\registrysecurity.cs (1)
159
private static Exception _HandleErrorCode(int errorCode, string name,
SafeHandle
handle, object context)
system\security\accesscontrol\win32.cs (2)
82
SafeHandle
handle,
243
SafeHandle
handle,
system\stubhelpers.cs (5)
1627
public CleanupWorkListElement(
SafeHandle
handle)
1632
public
SafeHandle
m_handle;
1709
static internal IntPtr AddToCleanupList(ref CleanupWorkList pCleanupWorkList,
SafeHandle
handle)
1771
static internal IntPtr SafeHandleAddRef(
SafeHandle
pHandle, ref bool success)
1787
static internal void SafeHandleRelease(
SafeHandle
pHandle)
system\threading\hostexecutioncontextmanager.cs (5)
154
static internal extern int CloneHostSecurityContext(
SafeHandle
context,
SafeHandle
clonedContext);
159
static private extern int CaptureHostSecurityContext(
SafeHandle
capturedContext);
165
static private extern int SetHostSecurityContext(
SafeHandle
context, bool fReturnPrevious,
SafeHandle
prevContext);
system\threading\threadpool.cs (2)
1105
private static extern bool UnregisterWaitNative(IntPtr handle,
SafeHandle
waitObject);
1904
public static bool BindHandle(
SafeHandle
osHandle)
system\threading\waithandle.cs (2)
236
internal static bool InternalWaitOne(
SafeHandle
waitableSafeHandle, long millisecondsTimeout, bool hasThreadAffinity, bool exitContext)
278
private static extern int WaitOneNative(
SafeHandle
waitableSafeHandle, uint millisecondsTimeout, bool hasThreadAffinity, bool exitContext);
system\threading\waithandleExtensions.cs (2)
19
/// <returns>A <see cref="System.Runtime.InteropServices.
SafeHandle
"/> representing the native operating system handle.</returns>
35
/// <param name="value">A <see cref="System.Runtime.InteropServices.
SafeHandle
"/> representing the native operating system handle.</param>
PresentationCore (23)
Core\CSharp\System\Windows\Input\Cursor.cs (3)
109
internal Cursor(
SafeHandle
cursorHandle )
171
internal
SafeHandle
Handle
406
private
SafeHandle
_cursorHandle;
Core\CSharp\System\Windows\Interop\CursorInteropHelper.cs (2)
50
public static Cursor Create(
SafeHandle
cursorHandle)
76
internal static Cursor CriticalCreate(
SafeHandle
cursorHandle)
Core\CSharp\System\Windows\Media\Effects\BevelBitmapEffect.cs (2)
48
unsafe protected override
SafeHandle
CreateUnmanagedEffect()
65
protected override void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect)
Core\CSharp\System\Windows\Media\Effects\BitmapEffect.cs (6)
84
abstract protected void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect);
95
unsafe abstract protected
SafeHandle
CreateUnmanagedEffect();
110
unsafe static protected void SetValue(
SafeHandle
effect, string propertyName, object value)
125
unsafe static protected
SafeHandle
/* IMILBitmapEffect */ CreateBitmapEffectOuter()
142
unsafe static protected void InitializeBitmapEffect(
SafeHandle
/*IMILBitmapEffect */ outerObject,
143
SafeHandle
/* IMILBitmapEffectPrimitive */ innerObject)
Core\CSharp\System\Windows\Media\Effects\BitmapEffectGroup.cs (2)
58
protected override void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect)
72
protected override unsafe
SafeHandle
CreateUnmanagedEffect()
Core\CSharp\System\Windows\Media\Effects\BlurBitmapEffect.cs (2)
48
unsafe protected override
SafeHandle
CreateUnmanagedEffect()
65
protected override void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect)
Core\CSharp\System\Windows\Media\Effects\DropShadowBitmapEffect.cs (2)
44
unsafe protected override
SafeHandle
CreateUnmanagedEffect()
61
protected override void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect)
Core\CSharp\System\Windows\Media\Effects\EmbossBitmapEffect.cs (2)
44
unsafe protected override
SafeHandle
CreateUnmanagedEffect()
61
protected override void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect)
Core\CSharp\System\Windows\Media\Effects\OuterGlowBitmapEffect.cs (2)
48
unsafe protected override
SafeHandle
CreateUnmanagedEffect()
65
protected override void UpdateUnmanagedPropertyState(
SafeHandle
unmanagedEffect)
SMDiagnostics (1)
System\ServiceModel\Diagnostics\Utility.cs (1)
29
internal static void CloseInvalidOutSafeHandle(
SafeHandle
handle)
System (75)
compmod\microsoft\win32\NativeMethods.cs (3)
264
public extern static bool CreateProcessAsUser(
SafeHandle
hToken,
1318
SafeHandle
hSourceHandle,
1330
SafeHandle
hSourceHandle,
compmod\microsoft\win32\safehandles\SafeUserTokenHandle.cs (1)
44
internal extern static bool DuplicateTokenEx(
SafeHandle
hToken, int access, NativeMethods.SECURITY_ATTRIBUTES tokenAttributes, int impersonationLevel, int tokenType, out SafeUserTokenHandle hNewToken);
compmod\microsoft\win32\UnsafeNativeMethods.cs (6)
371
public static extern bool ReportEvent(
SafeHandle
hEventLog, short type, ushort category,
376
public static extern bool ClearEventLog(
SafeHandle
hEventLog, HandleRef lpctstrBackupFileName);
379
public static extern bool GetNumberOfEventLogRecords(
SafeHandle
hEventLog, out int count);
384
public static extern bool GetOldestEventLogRecord(
SafeHandle
hEventLog, out int number);
389
public static extern bool ReadEventLog(
SafeHandle
hEventLog, int dwReadFlags,
396
public static extern bool NotifyChangeEventLog(
SafeHandle
hEventLog, SafeWaitHandle hEvent);
net\System\Net\_NativeSSPI.cs (3)
39
int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute attribute, byte[] buffer, Type handleType, out
SafeHandle
refHandle);
170
public unsafe int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute attribute, byte[] buffer, Type handleType, out
SafeHandle
refHandle) {
393
public unsafe int QueryContextAttributes(SafeDeleteContext context, ContextAttribute attribute, byte[] buffer, Type handleType, out
SafeHandle
refHandle) {
net\System\Net\_SafeNetHandles.cs (2)
515
public unsafe static int QueryContextAttributes(SecurDll dll, SafeDeleteContext phContext, ContextAttribute contextAttribute, byte* buffer,
SafeHandle
refHandle)
531
SafeHandle
refHandle)
net\System\Net\_SSPIWrapper.cs (3)
571
SafeHandle
SspiHandle = null;
881
internal NegotiationInfoClass(
SafeHandle
safeHandle, int negotiationState) {
946
internal SecurityPackageInfoClass(
SafeHandle
safeHandle, int index) {
net\System\Net\Internal.cs (3)
1313
public
SafeHandle
aIssuers;
1316
public unsafe IssuerListInfoEx(
SafeHandle
handle, byte[] nativeBuffer) {
1459
public
SafeHandle
unmanagedToken;
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
561
internal
SafeHandle
OverlappedHandle {
net\System\Net\Sockets\_DynamicWinsockMethods.cs (4)
251
SafeHandle
overlapped);
273
SafeHandle
overlapped);
276
internal delegate bool DisconnectExDelegate(SafeCloseSocket socketHandle,
SafeHandle
overlapped, int flags, int reserved);
286
SafeHandle
overlapped,
net\System\Net\Sockets\Socket.cs (8)
1440
SafeHandle
fileHandle = null;
3620
SafeHandle
fileHandle = null;
5709
SafeHandle
overlapped)
5746
private bool DisconnectEx(SafeCloseSocket socketHandle,
SafeHandle
overlapped, int flags, int reserved)
5768
SafeHandle
overlapped)
5776
private SocketError WSARecvMsg(SafeCloseSocket socketHandle, IntPtr msg, out int bytesTransferred,
SafeHandle
overlapped, IntPtr completionRoutine)
8667
internal
SafeHandle
[] m_SendPacketsFileHandles;
9296
m_SendPacketsFileHandles = new
SafeHandle
[m_SendPacketsElementsFileCount];
net\System\Net\UnsafeNativeMethods.cs (21)
117
internal static unsafe extern uint CancelIoEx(
SafeHandle
handle, IntPtr overlapped);
1191
[In]
SafeHandle
fileHandle,
1194
[In]
SafeHandle
overlapped,
1205
[In]
SafeHandle
overlapped,
1214
[In]
SafeHandle
fileHandle,
1217
[In]
SafeHandle
overlapped,
1228
[In]
SafeHandle
overlapped,
1339
[In]
SafeHandle
overlapped,
1350
[In]
SafeHandle
overlapped,
1361
[In]
SafeHandle
overlapped,
1374
[In]
SafeHandle
overlapped,
1398
[In]
SafeHandle
overlapped,
1409
[In]
SafeHandle
overlapped,
1420
[In]
SafeHandle
overlapped,
1433
[In]
SafeHandle
overlapped,
1453
[In]
SafeHandle
Event,
1488
[In]
SafeHandle
overlapped,
1501
[In]
SafeHandle
overlapped,
1524
[In]
SafeHandle
overlapped,
2143
internal static extern uint HttpReceiveRequestEntityBody2(CriticalHandle requestQueueHandle, ulong requestId, uint flags, void* pEntityBuffer, uint entityBufferLength, out uint bytesReturned, [In]
SafeHandle
pOverlapped);
2171
internal static extern uint HttpSendResponseEntityBody2(CriticalHandle requestQueueHandle, ulong requestId, uint flags, ushort entityChunkCount, IntPtr pEntityChunks, out uint pBytesSent, SafeLocalFree pRequestBuffer, uint requestBufferLength,
SafeHandle
pOverlapped, IntPtr pLogData);
net\System\Net\WebSockets\InternalClientWebSocket.cs (3)
22
private readonly
SafeHandle
m_SessionHandle;
41
internal override
SafeHandle
SessionHandle
52
private
SafeHandle
CreateWebSocketHandle()
net\System\Net\WebSockets\ServerWebSocket.cs (3)
22
private readonly
SafeHandle
m_SessionHandle;
44
internal override
SafeHandle
SessionHandle
55
private
SafeHandle
CreateWebSocketHandle()
net\System\Net\WebSockets\WebSocketBase.cs (1)
194
internal abstract
SafeHandle
SessionHandle { get; }
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (12)
232
[In]
SafeHandle
webSocketHandle,
246
private static extern int WebSocketEndClientHandshake_Raw([In]
SafeHandle
webSocketHandle,
258
[In]
SafeHandle
webSocketHandle,
271
private static extern int WebSocketEndServerHandshake_Raw([In]
SafeHandle
webSocketHandle);
287
[In]
SafeHandle
webSocketHandle);
301
[In]
SafeHandle
webSocketHandle,
311
[In]
SafeHandle
webSocketHandle,
321
[In]
SafeHandle
webSocketHandle,
330
[In]
SafeHandle
webSocketHandle,
344
[In]
SafeHandle
webSocketHandle,
570
internal static void WebSocketAbortHandle(
SafeHandle
webSocketHandle)
751
private static void DrainActionQueue(
SafeHandle
webSocketHandle, ActionQueue actionQueue)
sys\system\security\accesscontrol\semaphoresecurity.cs (1)
131
private static Exception _HandleErrorCode(int errorCode, string name,
SafeHandle
handle, object context)
System.Core (12)
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (3)
74
private
SafeHandle
_parentHandle;
80
protected SafeNCryptHandle(IntPtr handle,
SafeHandle
parentHandle) : base(true) {
384
public SafeNCryptKeyHandle(IntPtr handle,
SafeHandle
parentHandle)
Microsoft\Win32\UnsafeNativeMethods.cs (1)
1491
internal static unsafe extern bool CancelIoEx(
SafeHandle
handle, NativeOverlapped* lpOverlapped);
System\IO\MemoryMappedFiles\MemoryMappedFileSecurity.cs (1)
65
internal void PersistHandle(
SafeHandle
handle) {
System\IO\Pipes\IOCancellationHelper.cs (3)
18
private
SafeHandle
_handle;
31
public void AllowCancellation(
SafeHandle
handle, NativeOverlapped* overlapped) {
84
SafeHandle
handle = this._handle;
System\IO\Pipes\PipeSecurity.cs (1)
420
protected internal void Persist(
SafeHandle
handle) {
System\Security\Cryptography\BCryptNative.cs (3)
451
int dwFlags) where T :
SafeHandle
;
480
internal static int GetInt32Property<T>(T algorithm, string property) where T :
SafeHandle
{
492
internal static byte[] GetProperty<T>(T algorithm, string property) where T :
SafeHandle
{
System.Data (20)
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (9)
674
[In] /*tagDBBINDING[]*/
SafeHandle
rgBindings,
749
[In]
SafeHandle
rgOptColumns,
783
[In]
SafeHandle
rgPropertyIDSets,
794
[In]
SafeHandle
rgPropertySets);
896
[In]
SafeHandle
rgPropertyIDSets,
902
[In]
SafeHandle
rgPropertyIDSets,
909
[In]
SafeHandle
rgPropertySets);
1121
[In]
SafeHandle
rghRows,
1141
[In]
SafeHandle
rgPropertyIDSets,
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (4)
321
private readonly
SafeHandle
_poolHandle;
322
private readonly
SafeHandle
_errorHandle;
323
private readonly
SafeHandle
_creationHandle;
368
internal
SafeHandle
CreationHandle {
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (1)
193
internal SNIPacket(
SafeHandle
sniHandle) : base(IntPtr.Zero, true) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
841
SafeHandle
packetHandle = _sniPacket;
842
SafeHandle
sessionHandle = _sessionHandle;
843
SafeHandle
asyncAttnPacket = _sniAsyncAttnPacket;
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (3)
40
SafeHandle
eaBuffer,
244
internal
SafeHandle
objectName;
247
internal
SafeHandle
securityQualityOfService;
System.IdentityModel (8)
System\IdentityModel\SspiHelper.cs (1)
341
public
SafeHandle
unmanagedToken;
System\IdentityModel\SspiSafeHandles.cs (1)
1268
public static unsafe int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute contextAttribute, byte* buffer,
SafeHandle
refHandle)
System\IdentityModel\SspiWrapper.cs (6)
168
internal SecurityPackageInfoClass(
SafeHandle
safeHandle, int index)
206
internal NegotiationInfoClass(
SafeHandle
safeHandle, int negotiationState)
249
internal SecuritySessionKeyClass(
SafeHandle
safeHandle, int sessionKeyLength)
505
static unsafe int QueryContextAttributes(SafeDeleteContext phContext, ContextAttribute attribute, byte[] buffer, Type handleType, out
SafeHandle
refHandle)
577
SafeHandle
sspiHandle = null;
663
SafeHandle
sspiHandle = null;
System.IdentityModel.Selectors (18)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (15)
325
SafeHandle
pPolicyChain,
340
SafeHandle
pInData,
351
SafeHandle
pInData,
361
SafeHandle
pInData,
362
SafeHandle
pHashAlgOid,
372
SafeHandle
pInData,
373
SafeHandle
pHashAlgOid,
376
SafeHandle
pSig,
382
SafeHandle
pLabel,
384
SafeHandle
pNonce,
400
SafeHandle
pIV,
406
SafeHandle
pInData,
413
SafeHandle
pInData,
425
SafeHandle
pInData);
430
SafeHandle
pInData,
infocard\client\System\IdentityModel\Selectors\PolicyChain.cs (1)
46
public
SafeHandle
DoMarshal()
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (2)
91
private static extern bool ReportEvent([In]
SafeHandle
hEventLog,
193
public static void CloseInvalidOutSafeHandle(
SafeHandle
handle)
System.Messaging (1)
System\Messaging\Interop\SafeNativeMethods.cs (1)
94
public static extern bool GetHandleInformation(
SafeHandle
handle, out int handleInformation);
System.Security (2)
system\security\cryptography\cryptoapi.cs (2)
2979
private
SafeHandle
_parentHandle;
2992
internal SafeCryptProvHandle(IntPtr handle,
SafeHandle
parentHandle) : base (true) {
System.ServiceModel (6)
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (5)
30
public static
SafeHandle
GetTokenInformation(SafeCloseHandle token, TOKEN_INFORMATION_CLASS infoClass)
41
SafeHandle
buffer = SafeHGlobalHandle.AllocHGlobal(length);
60
using (
SafeHandle
buffer =
73
using (
SafeHandle
buffer =
83
using (
SafeHandle
buffer =
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (1)
405
[In]
SafeHandle
TokenInformation,
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedImpersonationContext.cs (1)
60
static void CloseInvalidOutSafeHandleCritical(
SafeHandle
handle)
System\ServiceModel\Activation\MetabaseReader.cs (1)
51
SafeHandle
bufferHandle;
System.ServiceModel.Internals (1)
System\Runtime\Interop\UnsafeNativeMethods.cs (1)
235
internal static extern bool ReportEvent(
SafeHandle
hEventLog, ushort type, ushort category,
System.Transactions (1)
System\Transactions\Oletx\DtcInterfaces.cs (1)
15
SafeHandle
notificationEventHandle,
WindowsBase (6)
Shared\MS\Win32\HandleCollector.cs (4)
29
internal static
SafeHandle
Add(
SafeHandle
handle, int type) {
73
internal static
SafeHandle
Remove(
SafeHandle
handle, int type) {
Shared\MS\Win32\SafeNativeMethodsCLR.cs (2)
398
public static IntPtr SetCursor(
SafeHandle
hcursor)
949
public static extern IntPtr SetCursor(
SafeHandle
hcursor);