6030 references to Zero
csc (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (1)
54internal static readonly IntPtr NullPtr = IntPtr.Zero;
src\Compilers\Shared\BuildClient.cs (1)
357if (ptr == IntPtr.Zero)
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
860return certificate != null && certificate.Handle != IntPtr.Zero;
Infrastructure.Common (4)
SafeKeychainHandle.cs (4)
34: base(IntPtr.Zero, ownsHandle: true) 42SetHandle(IntPtr.Zero); 46public override bool IsInvalid => handle == IntPtr.Zero; 53int osStatus = SecKeychainCreate(pathName, utf8Passphrase.Length, utf8Passphrase, false, IntPtr.Zero, out keychain);
Microsoft.AspNetCore.Cryptography.Internal (10)
Cng\BCryptUtil.cs (1)
21hAlgorithm: IntPtr.Zero,
SafeHandles\BCryptAlgorithmHandle.cs (2)
32int ntstatus = UnsafeNativeMethods.BCryptCreateHash(this, out retVal, IntPtr.Zero, 0, pbKey, cbKey, dwFlags: 0); 55int ntstatus = UnsafeNativeMethods.BCryptGenerateSymmetricKey(this, out retVal, IntPtr.Zero, 0, pbSecret, cbSecret, 0);
SafeHandles\BCryptHashHandle.cs (1)
21int ntstatus = UnsafeNativeMethods.BCryptDuplicateHash(this, out duplicateHandle, IntPtr.Zero, 0, 0);
SafeHandles\NCryptDescriptorHandle.cs (1)
24pMemPara: IntPtr.Zero,
SafeHandles\SafeLibraryHandle.cs (4)
29return (pfnProc != IntPtr.Zero); 68Arguments: IntPtr.Zero /* unused */); 91if (pfnProc == IntPtr.Zero) 113SafeLibraryHandle handle = UnsafeNativeMethods.LoadLibraryEx(filename, IntPtr.Zero, LOAD_LIBRARY_SEARCH_SYSTEM32);
UnsafeBufferUtil.cs (1)
80if (length == IntPtr.Zero)
Microsoft.AspNetCore.Cryptography.Internal.Tests (4)
Cng\BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_Tests.cs (4)
20Assert.Equal(IntPtr.Zero, (IntPtr)cipherModeInfo.pbNonce); 22Assert.Equal(IntPtr.Zero, (IntPtr)cipherModeInfo.pbAuthData); 24Assert.Equal(IntPtr.Zero, (IntPtr)cipherModeInfo.pbTag); 26Assert.Equal(IntPtr.Zero, (IntPtr)cipherModeInfo.pbMacContext);
Microsoft.AspNetCore.DataProtection (13)
Cng\DpapiSecretSerializerHelper.cs (13)
90szDataDescr: IntPtr.Zero, 92pvReserved: IntPtr.Zero, 93pPromptStruct: IntPtr.Zero, 157pMemPara: IntPtr.Zero, 158hWnd: IntPtr.Zero, 233ppszDataDescr: IntPtr.Zero, 235pvReserved: IntPtr.Zero, 236pPromptStruct: IntPtr.Zero, 280phDescriptor: IntPtr.Zero, 284pMemPara: IntPtr.Zero, 285hWnd: IntPtr.Zero, 345pMemPara: IntPtr.Zero, 346hWnd: IntPtr.Zero,
Microsoft.AspNetCore.DataProtection.Tests (2)
Cng\CngAuthenticatedEncryptorBaseTests.cs (2)
49Assert.NotEqual(IntPtr.Zero, pbAdditionalAuthenticatedData); // CNG will complain if this pointer is zero 73Assert.NotEqual(IntPtr.Zero, pbCiphertext); // CNG will complain if this pointer is zero
Microsoft.AspNetCore.InternalTesting (2)
DumpCollector\DumpCollector.Windows.cs (2)
23if (!NativeMethods.MiniDumpWriteDump(process.Handle, (uint)process.Id, stream.SafeFileHandle, NativeMethods.MINIDUMP_TYPE.MiniDumpWithFullMemory, ref exceptionInfo, IntPtr.Zero, IntPtr.Zero))
Microsoft.AspNetCore.Server.HttpSys (22)
NativeInterop\SafeLibraryHandle.cs (3)
27return (pfnProc != IntPtr.Zero); 36if (pfnProc == IntPtr.Zero) 58SafeLibraryHandle handle = UnsafeNativeMethods.LoadLibraryEx(filename, IntPtr.Zero, LOAD_LIBRARY_SEARCH_SYSTEM32);
NativeInterop\SafeNativeOverlapped.cs (5)
18: base(IntPtr.Zero, true) 23: base(IntPtr.Zero, true) 31get { return handle == IntPtr.Zero; } 38IntPtr oldHandle = Interlocked.Exchange(ref handle, IntPtr.Zero); 41if (oldHandle != IntPtr.Zero && !HasShutdownStarted)
NativeInterop\UrlGroup.cs (1)
89Debug.Assert(info != IntPtr.Zero, "SetUrlGroupProperty called with invalid pointer");
RequestProcessing\RequestContext.cs (5)
257overlapped: IntPtr.Zero); 291overlapped: IntPtr.Zero); 328bytesReturned: IntPtr.Zero, 329IntPtr.Zero); 352(uint)sizeof(HTTP_REQUEST_PROPERTY_STREAM_ERROR), IntPtr.Zero);
RequestProcessing\Response.cs (4)
332IntPtr.Zero, 335IntPtr.Zero); 350IntPtr.Zero, 353IntPtr.Zero);
RequestProcessing\ResponseBody.cs (4)
364IntPtr.Zero, 367IntPtr.Zero); 687IntPtr.Zero, 690IntPtr.Zero);
Microsoft.AspNetCore.Server.IIS (15)
Core\IISConfigurationData.cs (9)
41native.pwzFullApplicationPath = managed.pwzFullApplicationPath is null ? IntPtr.Zero : Marshal.StringToBSTR(managed.pwzFullApplicationPath); 42native.pwzVirtualApplicationPath = managed.pwzVirtualApplicationPath is null ? IntPtr.Zero : Marshal.StringToBSTR(managed.pwzVirtualApplicationPath); 46native.pwzBindings = managed.pwzBindings is null ? IntPtr.Zero : Marshal.StringToBSTR(managed.pwzBindings); 53if (native.pwzFullApplicationPath != IntPtr.Zero) 57if (native.pwzVirtualApplicationPath != IntPtr.Zero) 61if (native.pwzBindings != IntPtr.Zero) 72pwzFullApplicationPath = native.pwzFullApplicationPath == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzFullApplicationPath), 73pwzVirtualApplicationPath = native.pwzVirtualApplicationPath == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzVirtualApplicationPath), 77pwzBindings = native.pwzBindings == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzBindings),
Core\IISHttpContext.cs (2)
431IntPtr.Zero); 848if (token != IntPtr.Zero && authenticationType != null)
Core\NativeSafeHandle.cs (3)
13public override bool IsInvalid => handle == IntPtr.Zero; 16public NativeSafeHandle(IntPtr handle) : base(IntPtr.Zero, ownsHandle: true) 23handle = IntPtr.Zero;
NativeMethods.cs (1)
32return GetModuleHandle(AspNetCoreModuleDll) != IntPtr.Zero;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (6)
IISExpressDeployer.cs (3)
520if (!WindowsNativeMethods.PostMessage(hWnd, 0x12, IntPtr.Zero, IntPtr.Zero)) 530}, IntPtr.Zero);
ProcessTracker.cs (3)
20return IntPtr.Zero; 24var jobHandle = CreateJobObject(IntPtr.Zero, name: $"ProcessTracker{Environment.ProcessId}"); 56if (_jobHandle != IntPtr.Zero)
Microsoft.Build (7)
BackEnd\Components\Communications\NodeLauncher.cs (2)
179if (processInfo.hProcess != IntPtr.Zero && processInfo.hProcess != NativeMethods.InvalidHandle) 184if (processInfo.hThread != IntPtr.Zero && processInfo.hThread != NativeMethods.InvalidHandle)
BackEnd\Node\NativeMethods.cs (1)
20internal static readonly IntPtr NullPtr = IntPtr.Zero;
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
71return SHGetKnownFolderPath(new Guid("374DE290-123F-4565-9164-39C4925E467B"), 0, IntPtr.Zero);
InprocTrackingNativeMethods.cs (3)
238if (IntPtr.Zero == entryPoint) 283: base(IntPtr.Zero, true) 291{ return IntPtr.Zero == handle; }
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TargetUpToDateChecker_Tests.cs (2)
1044NativeMethodsShared.FILE_SHARE_READ, IntPtr.Zero, NativeMethodsShared.OPEN_EXISTING, 1046IntPtr.Zero))
Microsoft.Build.Framework (7)
NativeMethods.cs (6)
65internal static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero); 522if (!GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore, IntPtr.Zero, ref len) && 1230IntPtr.Zero, 1233IntPtr.Zero); 1525int fullPathLength = GetFullPathWin32(path, MAX_PATH, buffer, IntPtr.Zero); 1531fullPathLength = GetFullPathWin32(path, fullPathLength, newBuffer, IntPtr.Zero);
VisualStudioLocationHelper.cs (1)
98var result = GetSetupConfiguration(out query, IntPtr.Zero);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\CommandLine\NativeMethods.cs (1)
54internal static readonly IntPtr NullPtr = IntPtr.Zero;
Microsoft.Build.Tasks.Core (33)
BootstrapperUtil\ResourceUpdater.cs (4)
46IntPtr hUpdate = IntPtr.Zero; 51while (IntPtr.Zero == hUpdate && Marshal.GetHRForLastWin32Error() == ERROR_SHARING_VIOLATION && beginUpdateRetries > 0) // If it equals 0x80070020 (ERROR_SHARING_VIOLATION), sleep & retry 60if (IntPtr.Zero == hUpdate) 69if (hUpdate != IntPtr.Zero)
ManifestUtil\ComImporter.cs (3)
48if (NativeMethods.SfcIsFileProtected(IntPtr.Zero, path) != 0) 65IntPtr typeLibAttrPtr = IntPtr.Zero; 89IntPtr tinfoAttrPtr = IntPtr.Zero;
ManifestUtil\EmbeddedManifestReader.cs (6)
19IntPtr hModule = IntPtr.Zero; 22hModule = NativeMethods.LoadLibraryExW(path, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 23if (hModule == IntPtr.Zero) 28NativeMethods.EnumResourceNames(hModule, NativeMethods.RT_MANIFEST, callback, IntPtr.Zero); 32if (hModule != IntPtr.Zero) 46if (hResInfo == IntPtr.Zero)
ManifestUtil\mansign2.cs (12)
756IntPtr ppTsContext = IntPtr.Zero; 757IntPtr ppTsSigner = IntPtr.Zero; 758IntPtr phStore = IntPtr.Zero; 792pszTSAPolicyId = IntPtr.Zero, 823if (ppTsContext != IntPtr.Zero) 828if (ppTsSigner != IntPtr.Zero) 833if (phStore != IntPtr.Zero) 1259if (signerInfo.pChainContext != IntPtr.Zero) 1265if (signerInfo.pwszHash != IntPtr.Zero) 1269if (signerInfo.pwszDescription != IntPtr.Zero) 1273if (signerInfo.pwszDescriptionUrl != IntPtr.Zero) 1380if (timestamperInfo.pChainContext != IntPtr.Zero)
ManifestUtil\SecurityUtil.cs (3)
682IntPtr hModule = IntPtr.Zero; 729hModule = NativeMethods.LoadLibraryExW(Path.Combine(clrDllDir, "clr.dll"), IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 755if (hModule != IntPtr.Zero)
NativeMethods.cs (5)
529internal static readonly IntPtr NullPtr = IntPtr.Zero; 809hardLinkCreated = CreateHardLink(newFileName, exitingFileName, IntPtr.Zero /* reserved, must be NULL */); 1305IntPtr.Zero); 1312IntPtr.Zero, 1315IntPtr.Zero);
Microsoft.Build.Tasks.UnitTests (9)
AddToWin32Manifest_Tests.cs (4)
164IntPtr hModule = LoadLibrary(assembly, IntPtr.Zero, LoadLibraryFlags.LOAD_LIBRARY_AS_DATAFILE); 167if (hModule != IntPtr.Zero) 170if (hResource != IntPtr.Zero) 174if (resData != IntPtr.Zero)
MockUnmanagedMemoryHelper.cs (5)
22private IntPtr _mainAllocationHandle = IntPtr.Zero; 45if (_mainAllocationHandle != IntPtr.Zero) 90Assert.Equal(IntPtr.Zero, _mainAllocationHandle); 100Assert.NotEqual(IntPtr.Zero, _mainAllocationHandle); 102_mainAllocationHandle = IntPtr.Zero;
Microsoft.Build.UnGAC (1)
Program.cs (1)
51hresult = assemblyCache.UninstallAssembly(dwFlags: 0, pszAssemblyName: assembly, pRefData: IntPtr.Zero, pulDisposition: 0);
Microsoft.Build.Utilities.UnitTests (1)
NativeMethods.cs (1)
20internal static readonly IntPtr NullPtr = IntPtr.Zero;
Microsoft.CodeAnalysis (9)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
227return IntPtr.Zero;
DiaSymReader\SymUnmanagedFactory.cs (2)
121if (moduleHandle == IntPtr.Zero) 130if (createAddress == IntPtr.Zero)
MetadataReader\PEModule.cs (3)
149Debug.Assert((peReader == null) ^ (metadataOpt == IntPtr.Zero && metadataSizeOpt == 0)); 150Debug.Assert(metadataOpt == IntPtr.Zero || metadataSizeOpt > 0); 241if (_metadataPointerOpt != IntPtr.Zero)
MetadataReference\ModuleMetadata.cs (2)
35_module = new PEModule(this, peReader: peReader, metadataOpt: IntPtr.Zero, metadataSizeOpt: 0, includeEmbeddedInteropTypes: false, ignoreAssemblyRefs: false); 115Debug.Assert(metadata != IntPtr.Zero);
StrongName\DesktopStrongNameProvider.cs (1)
230strongName.StrongNameSignatureGeneration(filePath, keyName, IntPtr.Zero, 0, null, pcbSignatureBlob: out _);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
98return GenerateMemberAccess(nameof(IntPtr.Zero));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
7828IntPtr lib = LoadLibraryEx(Path.Combine(dir.Path, outputFileName), IntPtr.Zero, 0x00000002); 7829if (lib == IntPtr.Zero)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
Emit\ResourceTests.cs (12)
53IntPtr lib = IntPtr.Zero; 58lib = LoadLibraryEx(exe.Path, IntPtr.Zero, 0x00000002); 59if (lib == IntPtr.Zero) 75if (lib != IntPtr.Zero) 144IntPtr lib = IntPtr.Zero; 148lib = LoadLibraryEx(exe.Path, IntPtr.Zero, 0x00000002); 149if (lib == IntPtr.Zero) 174if (lib != IntPtr.Zero) 844IntPtr lib = IntPtr.Zero; 847lib = LoadLibraryEx(exeFile.Path, IntPtr.Zero, 0x00000002); 848Assert.True(lib != IntPtr.Zero, String.Format("LoadLibrary failed with HResult: {0:X}", +Marshal.GetLastWin32Error())); 859if (lib != IntPtr.Zero)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
98return GenerateMemberAccess(nameof(IntPtr.Zero));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
BlindAggregatorFactory.cs (5)
53_innerUnknown = IntPtr.Zero; 54_gcHandle = IntPtr.Zero; 68if (_gcHandle != IntPtr.Zero) 71_gcHandle = IntPtr.Zero; 149pvObject = IntPtr.Zero;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrValue.cs (1)
764if (ptr == IntPtr.Zero)
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\AbstractSemanticSearchService.cs (1)
54=> IntPtr.Zero;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.cs (1)
204if (AddDllDirectory(loadDir) == IntPtr.Zero)
Microsoft.CodeAnalysis.Scripting (3)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
143int hr = CreateAssemblyEnum(out enumerator, applicationContext, partialNameFilter, ASM_CACHE.GAC, IntPtr.Zero);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (2)
437Marshal.ThrowExceptionForHR(CreateAssemblyNameObject(out result, null, 0, IntPtr.Zero)); 509int hr = CreateAssemblyNameObject(out result, displayName, CANOF.PARSE_DISPLAY_NAME, IntPtr.Zero);
Microsoft.CodeAnalysis.Test.Utilities (4)
FX\PinnedBlob.cs (1)
38Pointer = IntPtr.Zero;
Win32Res.cs (3)
32if (hrsrc == IntPtr.Zero) 37if (resource == IntPtr.Zero) 41if (resource == IntPtr.Zero)
Microsoft.CodeAnalysis.UnitTests (24)
Collections\SegmentedArrayTests.cs (12)
55Assert.Throws<NullReferenceException>(() => ((IList<IntPtr>)data)[0] = IntPtr.Zero); 57Assert.Throws<NullReferenceException>(() => ((IList)data)[0] = IntPtr.Zero); 76Assert.Throws<NotSupportedException>(() => ((IList)data).Add(IntPtr.Zero)); 77Assert.Throws<NotSupportedException>(() => ((ICollection<IntPtr>)data).Add(IntPtr.Zero)); 79Assert.Throws<NotSupportedException>(() => ((IList)data).Insert(0, IntPtr.Zero)); 80Assert.Throws<NotSupportedException>(() => ((IList<IntPtr>)data).Insert(0, IntPtr.Zero)); 81Assert.Throws<NotSupportedException>(() => ((IList)data).Remove(IntPtr.Zero)); 82Assert.Throws<NotSupportedException>(() => ((ICollection<IntPtr>)data).Remove(IntPtr.Zero)); 87Assert.Throws<NullReferenceException>(() => ((IList)data).Contains(IntPtr.Zero)); 88Assert.Throws<NullReferenceException>(() => ((ICollection<IntPtr>)data).Contains(IntPtr.Zero)); 89Assert.Throws<NullReferenceException>(() => ((IList)data).IndexOf(IntPtr.Zero)); 90Assert.Throws<NullReferenceException>(() => ((IList<IntPtr>)data).IndexOf(IntPtr.Zero));
MetadataReferences\AssemblyIdentityTests.cs (2)
383int hr = FusionAssemblyIdentityComparer.DefaultModelCompareAssemblyIdentity(displayPkt, false, displayPk, false, out equivalent, out result, IntPtr.Zero); 389hr = FusionAssemblyIdentityComparer.DefaultModelCompareAssemblyIdentity(displayPk, false, displayPkt, false, out equivalent, out result, IntPtr.Zero);
MetadataReferences\AssemblyPortabilityPolicyTests.cs (3)
390Assert.NotEqual(IntPtr.Zero, policy.ConfigCookie); 392Assert.Equal(IntPtr.Zero, policy.ConfigCookie); 394Assert.Equal(IntPtr.Zero, policy.ConfigCookie);
MetadataReferences\FusionAssemblyIdentityComparer.cs (1)
41IntPtr asmConfigCookie = policy == null ? IntPtr.Zero : policy.ConfigCookie;
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (2)
75IntPtr ptr = Interlocked.Exchange(ref _assemblyConfigCookie, IntPtr.Zero); 76if (ptr != IntPtr.Zero)
MetadataReferences\ModuleMetadataTests.cs (2)
23Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromMetadata(IntPtr.Zero, 0)); 89Assert.Throws<ArgumentNullException>(() => ModuleMetadata.CreateFromImage(IntPtr.Zero, 0));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (2)
437Marshal.ThrowExceptionForHR(CreateAssemblyNameObject(out result, null, 0, IntPtr.Zero)); 509int hr = CreateAssemblyNameObject(out result, displayName, CANOF.PARSE_DISPLAY_NAME, IntPtr.Zero);
Microsoft.CodeAnalysis.Workspaces (13)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
227return IntPtr.Zero;
Storage\SQLite\Interop\SafeSqliteBlobHandle.cs (4)
19: base(invalidHandleValue: IntPtr.Zero, ownsHandle: true) 30SetHandle(IntPtr.Zero); 36public override bool IsInvalid => handle == IntPtr.Zero; 48SetHandle(IntPtr.Zero);
Storage\SQLite\Interop\SafeSqliteHandle.cs (4)
18: base(invalidHandleValue: IntPtr.Zero, ownsHandle: true) 29SetHandle(IntPtr.Zero); 33public override bool IsInvalid => handle == IntPtr.Zero; 43SetHandle(IntPtr.Zero);
Storage\SQLite\Interop\SafeSqliteStatementHandle.cs (4)
19: base(invalidHandleValue: IntPtr.Zero, ownsHandle: true) 30SetHandle(IntPtr.Zero); 36public override bool IsInvalid => handle == IntPtr.Zero; 48SetHandle(IntPtr.Zero);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
59var ptr = Unix_realpath(path, IntPtr.Zero);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
59var ptr = Unix_realpath(path, IntPtr.Zero);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\NativeMethods.cs (1)
36hardLinkCreated = CreateHardLink(newFileName, exitingFileName, IntPtr.Zero /* reserved, must be NULL */);
Microsoft.DotNet.RemoteExecutor (3)
MiniDump.cs (3)
31if (MiniDumpWriteDump(process.SafeHandle, process.Id, fs.SafeFileHandle, MiniDumpType, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) == 0)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Network\WindowsTcpStateInfo.cs (1)
108var tcpTable = IntPtr.Zero;
Microsoft.ML.TensorFlow (5)
TensorflowTransform.cs (3)
364if (graph == IntPtr.Zero) 513if (Session?.graph != IntPtr.Zero) 518if (Session != null && Session != IntPtr.Zero)
TensorflowUtils.cs (2)
586if (_session == IntPtr.Zero) 595_operations.Length, IntPtr.Zero, _status.Handle);
Microsoft.ML.TestFrameworkCommon (8)
Utility\LibraryLoader.cs (7)
49if (ret == IntPtr.Zero) 71IntPtr ret = IntPtr.Zero; 75if (ret != IntPtr.Zero) 81if (ret == IntPtr.Zero) 102if (ret != IntPtr.Zero) 109return IntPtr.Zero; 135if (handle == IntPtr.Zero)
Utility\NativeLibrary.cs (1)
139if (functionPtr == IntPtr.Zero)
Microsoft.ML.TimeSeries (4)
FftUtils.cs (4)
251if (descriptor != IntPtr.Zero) 297if (descriptor != IntPtr.Zero) 353if (descriptor != IntPtr.Zero) 399if (descriptor != IntPtr.Zero)
Microsoft.ML.Vision (6)
DnnRetrainTransform.cs (4)
385if (tensor.Length > 0 && tensor[0] != IntPtr.Zero) 391if (tensor.Length > 1 && tensor[1] != IntPtr.Zero) 607if (graph == IntPtr.Zero) 740if (_session != null && _session != IntPtr.Zero)
ImageClassificationTrainer.cs (2)
1510if (_session?.graph != IntPtr.Zero) 1515if (_session != null && _session != IntPtr.Zero)
Microsoft.VisualStudio.LanguageServices (47)
CodeMarkers\ManagedCodeMarkers.cs (1)
134_shouldUseTestDll = NativeMethods.GetModuleHandle(ProductDllName) == IntPtr.Zero;
ColorSchemes\ColorSchemeApplier.Settings.cs (2)
82NativeMethods.PostMessage(NativeMethods.HWND_BROADCAST, NativeMethods.WM_SYSCOLORCHANGE, wparam: IntPtr.Zero, lparam: IntPtr.Zero);
EditorConfigSettings\SettingsEditorFactory.cs (3)
54ppunkDocView = IntPtr.Zero; 55ppunkDocData = IntPtr.Zero; 85if (punkDocDataExisting == IntPtr.Zero)
EditorConfigSettings\SettingsEditorPane.cs (1)
339public IntPtr HwndGetWindow(uint dwWhich, uint dwReserved) => IntPtr.Zero;
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
145if (bufferPtr != IntPtr.Zero)
Implementation\AbstractCodePageEditorFactory.cs (3)
33if (punkDocDataExisting != IntPtr.Zero) 35ppunkDocView = IntPtr.Zero; 36ppunkDocData = IntPtr.Zero;
Implementation\AbstractEditorFactory.cs (4)
72ppunkDocView = IntPtr.Zero; 73ppunkDocData = IntPtr.Zero; 83if (punkDocDataExisting != IntPtr.Zero) 266ppunkDocView = IntPtr.Zero;
Interactive\VsResetInteractive.cs (2)
82if (hierarchyPointer != IntPtr.Zero) 277if (pointer != IntPtr.Zero)
Interop\WeakComHandle.cs (7)
41_pUnkOfInnerUnknownWhenAlive = IntPtr.Zero; 44var pUnk = IntPtr.Zero; 54if (pUnk != IntPtr.Zero) 65var pUnk = IntPtr.Zero; 73if (pUnk != IntPtr.Zero) 87var pUnk = IntPtr.Zero; 116if (pUnk != IntPtr.Zero)
KeybindingReset\KeybindingResetDetector.cs (1)
324var hr = _oleCommandTarget.QueryStatus(s_resharperCommandGroup, (uint)cmds.Length, cmds, IntPtr.Zero);
LanguageService\AbstractLanguageService`2.IVsContainedLanguageFactory.cs (1)
42if (service != IntPtr.Zero)
Library\AbstractLibraryManager_IVsLibrary2.cs (1)
29ppguidLib = IntPtr.Zero;
NavigationBar\NavigationBarClient.cs (2)
96phImageList = IntPtr.Zero; 265phImageList = IntPtr.Zero;
ProjectSystem\InvisibleEditor.cs (3)
86var docDataPtrViaTextBufferProvider = IntPtr.Zero; 108if (docDataPtrViaTextBufferProvider != IntPtr.Zero) 111if (docDataPtrViaTextLines != IntPtr.Zero)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
294Debug.Assert(pImage != IntPtr.Zero, "Base address should not be zero if GetFileFlatMapping call succeeded.");
Snippets\AbstractSnippetInfoService.cs (2)
235if (ptr != IntPtr.Zero) 239ptr = IntPtr.Zero;
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (1)
53if (wParam == IntPtr.Zero)
Utilities\ClipboardHelpers.cs (2)
98ptd = IntPtr.Zero, 134if (win32Pointer == IntPtr.Zero)
Utilities\VisualStudioCommandHandlerHelpers.cs (5)
41var selectionHierarchy = IntPtr.Zero; 42var selectionContainer = IntPtr.Zero; 50if (selectionHierarchy != IntPtr.Zero) 64if (selectionHierarchy != IntPtr.Zero) 69if (selectionContainer != IntPtr.Zero)
Venus\ContainedLanguage.IVsContainedLanguageCodeSupport.cs (1)
240if (dest != IntPtr.Zero)
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (3)
67if (ErrorHandler.Succeeded(uiHierarchy.QueryStatusCommand((uint)VSConstants.VSITEMID.Root, VSConstants.VSStd2K, 1, command, IntPtr.Zero))) 71uiHierarchy.ExecCommand((uint)VSConstants.VSITEMID.Root, VSConstants.VSStd2K, (uint)VSConstants.VSStd2KCmdID.ADDREFERENCE, 0, IntPtr.Zero, IntPtr.Zero);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
299IntPtr.Zero,
MSBuildTaskHost (6)
NativeMethods.cs (6)
65internal static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero); 522if (!GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP.RelationProcessorCore, IntPtr.Zero, ref len) && 1230IntPtr.Zero, 1233IntPtr.Zero); 1525int fullPathLength = GetFullPathWin32(path, MAX_PATH, buffer, IntPtr.Zero); 1531fullPathLength = GetFullPathWin32(path, fullPathLength, newBuffer, IntPtr.Zero);
PrepareTests (1)
MinimizeUtil.cs (1)
281var success = CreateHardLink(fileName, existingFileName, IntPtr.Zero);
PresentationCore (391)
MS\Internal\AppModel\CookieHandler.cs (2)
106if (UnsafeNativeMethods.InternetGetCookieEx(uriString, null, null, ref size, 0, IntPtr.Zero)) 113if (UnsafeNativeMethods.InternetGetCookieEx(uriString, null, sb, ref size, 0, IntPtr.Zero))
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessScope.cs (3)
31hWnd: IntPtr.Zero) 50hWnd: IntPtr.Zero) 108(hWnd == IntPtr.Zero || !this.IsWindowUnawareOrSystemAware(hWnd)))
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (2)
45ContainingMonitorScreenRect = NearestMonitorInfoFromWindow(IntPtr.Zero).rcMonitor; 55if (hMonitor == IntPtr.Zero)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
90if (hWnd != IntPtr.Zero)
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (4)
103HandleRef hWndDesktop = new HandleRef(IntPtr.Zero, IntPtr.Zero); 104HandleRef hDC = new HandleRef(IntPtr.Zero, UnsafeNativeMethods.GetDC(hWndDesktop)); 105if (hDC.Handle == IntPtr.Zero)
MS\Internal\DpiUtil\DpiUtil+WindowDpiScaleHelper.cs (3)
80uint dpi = SafeNativeMethods.GetDpiForWindow(new HandleRef(IntPtr.Zero, hWnd)); 92SafeNativeMethods.MonitorFromWindow(new HandleRef(IntPtr.Zero, hWnd), NativeMethods.MONITOR_DEFAULTTONEAREST); 95int hr = (int)UnsafeNativeMethods.GetDpiForMonitor(new HandleRef(IntPtr.Zero, hMon), MONITOR_DPI_TYPE.MDT_EFFECTIVE_DPI, out dpiX, out dpiY);
MS\Internal\FontCache\FontCacheUtil.cs (5)
349HandleRef desktopWnd = new HandleRef(null, IntPtr.Zero); 355if (dc == IntPtr.Zero) 823IntPtr.Zero 851_viewHandle = UnsafeNativeMethods.MapViewOfFileEx(_mappingHandle, UnsafeNativeMethods.FILE_MAP_READ, 0, 0, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (17)
328if ( hModule != IntPtr.Zero ) 331new HandleRef(null, hModule), "GetAlternateList") != IntPtr.Zero ? 335return hModule != IntPtr.Zero ? true : false; 401IntPtr packets = IntPtr.Zero; 407if (packets == IntPtr.Zero) 444packets = IntPtr.Zero; 549if ( pd.pPacketProperties != IntPtr.Zero ) 564pd.pPacketProperties = IntPtr.Zero; 567if ( pd.pguidButtons != IntPtr.Zero ) 570pd.pguidButtons = IntPtr.Zero; 573if ( packets != IntPtr.Zero ) 576packets = IntPtr.Zero; 632if (pRecoAlternates[i] != IntPtr.Zero) 635pRecoAlternates[i] = IntPtr.Zero; 652IntPtr ptr = IntPtr.Zero; 666Debug.Assert(!(bestResultColumnCount != 0 && pRecoLattice->pLatticeColumns == IntPtr.Zero), "Invalid results!"); 667if ( bestResultColumnCount > 0 && pRecoLattice->pLatticeColumns != IntPtr.Zero )
MS\Internal\Interop\NativePointerCriticalHandle.cs (3)
12: base(IntPtr.Zero) 17public override bool IsInvalid => handle == IntPtr.Zero; 34handle = IntPtr.Zero;
MS\Internal\Text\TextInterface\DWriteLoader.cs (4)
20if (_dwrite == IntPtr.Zero) 33if (_dwrite != IntPtr.Zero) 37_dwrite = IntPtr.Zero; 55if (hDWriteLibrary != IntPtr.Zero)
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
55*fontFileEnumerator = IntPtr.Zero;
MS\Internal\TextFormatting\FullTextBreakpoint.cs (5)
61TextFormatterContext context = settings.Formatter.AcquireContext(fullText, IntPtr.Zero); 63IntPtr previousBreakRecord = IntPtr.Zero; 195if(_ploline != IntPtr.Zero) 198_ploline = IntPtr.Zero; 199_penaltyResource = IntPtr.Zero;
MS\Internal\TextFormatting\FullTextLine.cs (16)
143if (_ploline != System.IntPtr.Zero) 147_ploline = System.IntPtr.Zero; 167_ploline = IntPtr.Zero; 215TextFormatterContext context = _metrics._formatter.AcquireContext(fullText, IntPtr.Zero); 236IntPtr.Zero, // single-line formatting does not require break record 267IntPtr.Zero, // single-line formatting does not require break record 581if (_ploline != System.IntPtr.Zero) 853if(_ploline == IntPtr.Zero) 988if (_ploline == IntPtr.Zero) 1136if (_ploline == System.IntPtr.Zero) 1229if (_ploline == IntPtr.Zero) 1506if (_ploline == IntPtr.Zero) 2118if (_ploline != System.IntPtr.Zero) 2186return _metrics.GetTextLineBreak(IntPtr.Zero); 2441Debug.Assert(_ploline != IntPtr.Zero); 2494Debug.Assert(_ploline != IntPtr.Zero);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
515if (ploc == IntPtr.Zero)
MS\Internal\TextFormatting\TextMetrics.cs (3)
287IntPtr pbreakrec = IntPtr.Zero; 289if (ploline != IntPtr.Zero) 308return (pbreakrec != IntPtr.Zero) ? new TextLineBreak(null, pbreakrec) : null;
MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
57if (_ploPenaltyModule != IntPtr.Zero) 60_ploPenaltyModule = IntPtr.Zero;
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPaneRcw.cs (1)
24IntPtr hstring = IntPtr.Zero;
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettingsRcw.cs (1)
19IntPtr hstring = IntPtr.Zero;
MS\Win32\UnsafeNativeMethodsPenimc.cs (4)
100if (_pimcActCtxCookie == IntPtr.Zero) 106if ((_pimcActCtxCookie = RegisterDllForSxSCOM()) == IntPtr.Zero) 118if (_pimcActCtxCookie != IntPtr.Zero) 122_pimcActCtxCookie = IntPtr.Zero;
MS\Win32\UnsafeNativeMethodsTablet.cs (6)
73: base(IntPtr.Zero, ownHandle) 84return IsClosed || handle == IntPtr.Zero; 90Debug.Assert(handle != IntPtr.Zero); 108: base(IntPtr.Zero, ownHandle) 119return IsClosed || handle == IntPtr.Zero; 130Debug.Assert(handle != IntPtr.Zero);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (19)
340IntPtr referenceChannelHandle = IntPtr.Zero; 364if (_hChannel == IntPtr.Zero) 385if (_hChannel == IntPtr.Zero) 407if (_hChannel == IntPtr.Zero) 427if (_hChannel != IntPtr.Zero) 435if (_hChannel != IntPtr.Zero) 439_hChannel = IntPtr.Zero; 463Invariant.Assert(_hChannel != IntPtr.Zero); 522Invariant.Assert(_hChannel != IntPtr.Zero); 552Invariant.Assert(_hChannel != IntPtr.Zero); 585Invariant.Assert(_hChannel != IntPtr.Zero); 646if (_hChannel == IntPtr.Zero) 682if (_hChannel == IntPtr.Zero) 718if (_hChannel == IntPtr.Zero) 745if (_hChannel == IntPtr.Zero) 769Invariant.Assert(_hChannel != IntPtr.Zero); 788Invariant.Assert(_hChannel != IntPtr.Zero); 812Invariant.Assert(_hChannel != IntPtr.Zero); 855Invariant.Assert(_hChannel != IntPtr.Zero);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
86IntPtr.Zero,
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
51int retval = MS.Internal.WindowsBase.NativeMethodsSetLastError.MapWindowPoints(hwnd , new HandleRef(null, IntPtr.Zero), ref rcWindowCoords, 2);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\LoadLibraryHelper.cs (3)
29var hModule = IntPtr.Zero; 34hModule != IntPtr.Zero) 39UnsafeNativeMethods.GetProcAddressNoThrow(new HandleRef(null, hModule), AddDllDirectoryName) != IntPtr.Zero;
System\Windows\Automation\Peers\AutomationPeer.cs (4)
218_hwnd = IntPtr.Zero; 462if (_parent != null && _hwnd != IntPtr.Zero) return this; 464if((connectedPeer._hwnd) != IntPtr.Zero) 508if(peer._hwnd == IntPtr.Zero)
System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (2)
38if(hwnd != IntPtr.Zero) 65if(hwnd != IntPtr.Zero)
System\Windows\DragDrop.cs (3)
448if (windowHandle != IntPtr.Zero) 469if (windowHandle != IntPtr.Zero) 891if (handle == IntPtr.Zero)
System\Windows\Input\AccessKeyManager.cs (2)
465if (hwnd != IntPtr.Zero) 474if (hwnd != IntPtr.Zero)
System\Windows\Input\Cursor.cs (4)
166_cursorHandle = UnsafeNativeMethods.LoadImageCursor(IntPtr.Zero, 243_cursorHandle = UnsafeNativeMethods.LoadImageCursor(IntPtr.Zero, 289_cursorHandle = UnsafeNativeMethods.LoadImageCursor(IntPtr.Zero, 312_cursorHandle = SafeNativeMethods.LoadCursor(new HandleRef(this,IntPtr.Zero), (IntPtr)(CursorTypes[(int)cursorType]));
System\Windows\Input\DefaultTextStore.cs (1)
81hwnd = IntPtr.Zero;
System\Windows\Input\InputElement.cs (2)
274if(sourceFrom != null && sourceFrom.Handle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 275sourceTo != null && sourceTo.Handle != IntPtr.Zero && sourceTo.CompositionTarget != null)
System\Windows\Input\InputLanguageManager.cs (1)
248if (hkl == IntPtr.Zero)
System\Windows\Input\InputMethod.cs (14)
536if (hwnd != IntPtr.Zero) 571IntPtr hwnd = IntPtr.Zero; 574if (hwnd != IntPtr.Zero) 769if (hwnd != IntPtr.Zero) 816IntPtr hwnd = IntPtr.Zero; 909if (hwnd != IntPtr.Zero) 1027if (hwnd != IntPtr.Zero) 1101if (hwnd != IntPtr.Zero) 1278if (hkl == IntPtr.Zero) 1333if (DefaultImc != IntPtr.Zero) 1343UnsafeNativeMethods.ImmAssociateContext(new HandleRef(this, hwnd), new HandleRef(this, IntPtr.Zero)); 1402if (hwnd != IntPtr.Zero) 1522UnsafeNativeMethods.ImmConfigureIME(new HandleRef(this, hkl), new HandleRef(this, HwndFromInputElement(element)), NativeMethods.IME_CONFIG_GENERAL, IntPtr.Zero); 1742IntPtr hwnd = UnsafeNativeMethods.ImmGetDefaultIMEWnd(new HandleRef(this, IntPtr.Zero));
System\Windows\Input\MouseDevice.cs (6)
891IntPtr.Zero) 1283IntPtr.Zero); 1363IntPtr extraInformation = clearExtraInformation ? IntPtr.Zero : rawMouseInputReport.ExtraInformation; 2104IntPtr hwndHit = IntPtr.Zero ; 2113hwndHit = IntPtr.Zero; 2116if (hwndHit != IntPtr.Zero)
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (5)
85private IntPtr _interactionContext = IntPtr.Zero; 161IntPtr interactionContext = IntPtr.Zero; 170if (_interactionContext != IntPtr.Zero) 208if (_interactionContext != IntPtr.Zero) 211_interactionContext = IntPtr.Zero;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
263IntPtr.Zero);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
16if(hwndSource == null || IntPtr.Zero == (hwndSource).Handle)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (2)
1035Debug.Assert(pc != null && pc.CommHandle != IntPtr.Zero); 1089Debug.Assert(pc != null && pc.CommHandle != IntPtr.Zero);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (9)
570IntPtr.Zero); 647IntPtr hwnd = hwndSource != null ? hwndSource.Handle : IntPtr.Zero; 652if (hwnd != IntPtr.Zero && 654UnsafeNativeMethods.GetParent(new HandleRef(this, hwnd)) == IntPtr.Zero && 1298IntPtr.Zero); 1768actions, (int)pt.X, (int)pt.Y, 0, IntPtr.Zero); 2861IntPtr.Zero); 2945IntPtr hwndHit = IntPtr.Zero; 2953if (hwndHit != IntPtr.Zero)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
1542if (hwndHit != IntPtr.Zero) 1692(int)pt.X, (int)pt.Y, 0, IntPtr.Zero);
System\Windows\InterOp\D3DImage.cs (3)
142if (backBuffer != IntPtr.Zero && backBuffer == _pUserSurfaceUnsafe) 153if (backBuffer != IntPtr.Zero) 643img._pUserSurfaceUnsafe = IntPtr.Zero;
System\Windows\InterOp\HwndAppCommandInputProvider.cs (2)
40return IntPtr.Zero; 59return handled ? new IntPtr(1) : IntPtr.Zero ;
System\Windows\InterOp\HwndKeyboardInputProvider.cs (10)
60_restoreFocusWindow = IntPtr.Zero; 105result = focus != IntPtr.Zero; 156IntPtr result = IntPtr.Zero ; 344if (_restoreFocusWindow == IntPtr.Zero) 459if (_restoreFocusWindow != IntPtr.Zero) 462_restoreFocusWindow = IntPtr.Zero; 734if(hwnd != IntPtr.Zero) 770while (hwnd != IntPtr.Zero) 791return IntPtr.Zero; 830IntPtr extraInformation = IntPtr.Zero;
System\Windows\InterOp\HwndMouseInputProvider.cs (8)
316IntPtr result = IntPtr.Zero ; 744if(lParam != IntPtr.Zero || // someone else took capture 908if(hwndToCheck == IntPtr.Zero) 936hwndToCheck = IntPtr.Zero; 939if(hwndToCheck != IntPtr.Zero) 956hwndToCheck = IntPtr.Zero; 1183if(hwnd != IntPtr.Zero) 1404IntPtr extraInformation = IntPtr.Zero;
System\Windows\InterOp\HwndPanningFeedback.cs (1)
47if (handle != IntPtr.Zero)
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
439return IntPtr.Zero;
System\Windows\InterOp\HwndSource.cs (17)
330if (_hwndWrapper.Handle != IntPtr.Zero) 671if (hwnd == IntPtr.Zero) 744UnsafeNativeMethods.HideCaret(new HandleRef(this, IntPtr.Zero)); 770UnsafeNativeMethods.ShowCaret(new HandleRef(this, IntPtr.Zero)); 833UnsafeNativeMethods.SetWindowPos(new HandleRef(this,_hwndWrapper.Handle), new HandleRef(null,IntPtr.Zero), 923return IntPtr.Zero; 947return _hwndWrapper.Handle == IntPtr.Zero ; 1157IntPtr result = IntPtr.Zero ; 1165if (result != IntPtr.Zero) 1177IntPtr result = IntPtr.Zero ; 1257if(wParam == IntPtr.Zero) 1270result = IntPtr.Zero; 1315result = IntPtr.Zero; 1525IntPtr hwndRoot = IntPtr.Zero; 1541IntPtr result = IntPtr.Zero ; 1622IntPtr result = IntPtr.Zero ; 2575if (_hwndWrapper.Handle != IntPtr.Zero && _registeredDropTargetCount > 0)
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
70IntPtr result = IntPtr.Zero ;
System\Windows\InterOp\HwndTarget.cs (31)
98private static readonly IntPtr Unhandled = IntPtr.Zero; 473Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero); 484IntPtr hwndParent = IntPtr.Zero; 500if (hwndParent != IntPtr.Zero) 504} while (hwndParent != IntPtr.Zero); 507Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero); 956UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true); 1003UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1103UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1120bool enableRenderTarget = (wparam != IntPtr.Zero); 1244UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1281UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1315UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true); 1337UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true); 1373&& !UnsafeNativeMethods.GetLayeredWindowAttributes(_hWnd.MakeHandleRef(this), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) 1439return IntPtr.Zero; 1445return IntPtr.Zero; 1753new HandleRef(null, IntPtr.Zero), // HWND_TOP 1775new HandleRef(null, IntPtr.Zero), // HWND_TOP 1780UnsafeNativeMethods.InvalidateRect(new HandleRef(this, _hWnd), IntPtr.Zero, true); 1895if(hwndParent != IntPtr.Zero) 2200UnsafeNativeMethods.UpdateLayeredWindow(_hWnd.h, IntPtr.Zero, null, null, IntPtr.Zero, null, 0, ref blend, NativeMethods.ULW_ALPHA); 2279UnsafeNativeMethods.PostMessage(new HandleRef(this, _hWnd), s_updateWindowSettings, IntPtr.Zero, IntPtr.Zero); 2547IntPtr.Zero, 2560if (_hPowerNotify != IntPtr.Zero) 2563_hPowerNotify = IntPtr.Zero; 2608IntPtr retInt = IntPtr.Zero;
System\Windows\InterOp\Imaging.cs (3)
52if (bitmap == IntPtr.Zero) 75if (icon == IntPtr.Zero) 104if (section == IntPtr.Zero)
System\Windows\Media\ChannelManager.cs (3)
109if (_pSyncConnection != IntPtr.Zero) 112_pSyncConnection = IntPtr.Zero; 123if (_pSyncConnection == IntPtr.Zero)
System\Windows\Media\ColorContext.cs (2)
547HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 565HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize));
System\Windows\Media\EventProxy.cs (2)
29Debug.Assert(((IntPtr)pEPD.m_handle) != IntPtr.Zero, "If this asserts fires: Why is it firing? It might be legal in future."); 104Debug.Assert(((IntPtr)epd.m_handle) != IntPtr.Zero, "Stream is disposed.");
System\Windows\Media\FactoryMaker.cs (7)
25if (s_pFactory == IntPtr.Zero) 73if (s_pImagingFactory != IntPtr.Zero) 78s_pFactory = IntPtr.Zero; 79s_pImagingFactory = IntPtr.Zero; 100Debug.Assert(s_pFactory != IntPtr.Zero); 109if (s_pImagingFactory == IntPtr.Zero) 116Debug.Assert(s_pImagingFactory != IntPtr.Zero);
System\Windows\Media\ImageSourceConverter.cs (1)
219if (addr == IntPtr.Zero)
System\Windows\Media\Imaging\BitmapDecoder.cs (15)
566IntPtr /* IWICBitmapSource */ thumbnail = IntPtr.Zero; 581if (thumbnail != IntPtr.Zero) 627IntPtr /* IWICMetadataQueryReader */ metadata = IntPtr.Zero; 641if (metadata != IntPtr.Zero) 720IntPtr /* IWICBitmapSource */ preview = IntPtr.Zero; 735if (preview != IntPtr.Zero) 999IntPtr decoder = IntPtr.Zero; 1097IntPtr comStream = IntPtr.Zero; 1162Debug.Assert(decoder != IntPtr.Zero); 1496IntPtr comStream = IntPtr.Zero; 1504IntPtr bufferPtr = IntPtr.Zero; 1513if (bufferPtr != IntPtr.Zero) 1522if (comStream == IntPtr.Zero) 1534if (memoryStream != IntPtr.Zero) 1549if (comStream == IntPtr.Zero)
System\Windows\Media\Imaging\BitmapDownload.cs (1)
131hTemplateFile: IntPtr.Zero
System\Windows\Media\Imaging\BitmapEncoder.cs (2)
34pstrName = IntPtr.Zero; 341IntPtr comStream = IntPtr.Zero;
System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
565IntPtr /* IWICBitmapSource */ thumbnail = IntPtr.Zero; 583if (thumbnail != IntPtr.Zero) 626IntPtr /* IWICMetadataQueryReader */ metadata = IntPtr.Zero; 642if (metadata != IntPtr.Zero) 690IntPtr frameDecode = IntPtr.Zero;
System\Windows\Media\Imaging\BitmapMetadata.cs (29)
150IntPtr pIMetadataWriter = IntPtr.Zero; 162pIMetadataWriter = IntPtr.Zero; 168if (pIMetadataWriter != IntPtr.Zero) 208pIMetadataReader = IntPtr.Zero; 248Invariant.Assert(pIBlockReader != IntPtr.Zero); 270IntPtr pIMetadataWriter = IntPtr.Zero; 299pIMetadataWriter = IntPtr.Zero; 306if (pIMetadataWriter != IntPtr.Zero) 332pIMetadataWriter = IntPtr.Zero; 353if (pIMetadataWriter == IntPtr.Zero) 386if (pIMetadataWriter == IntPtr.Zero) 503rgelt = IntPtr.Zero; 510rgelt = IntPtr.Zero; 566ppEnum = IntPtr.Zero; 638IntPtr /* IWICMetadataQueryWriter */ queryWriter = IntPtr.Zero; 673IntPtr /* IWICMetadataBlockWriter */ blockWriter = IntPtr.Zero; 674IntPtr /* IWICMetadataQueryWriter */ queryWriter = IntPtr.Zero; 697queryWriter = IntPtr.Zero; 703if (blockWriter != IntPtr.Zero) 708if (queryWriter != IntPtr.Zero) 722IntPtr /* IWICMetadataBlockWriter */ blockWriter = IntPtr.Zero; 723IntPtr /* IWICMetadataQueryWriter */ queryWriter = IntPtr.Zero; 746queryWriter = IntPtr.Zero; 752if (blockWriter != IntPtr.Zero) 757if (queryWriter != IntPtr.Zero) 772IntPtr queryWriter = IntPtr.Zero; 798queryWriter = IntPtr.Zero; 809if (queryWriter != IntPtr.Zero) 1190IntPtr.Zero
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
56IntPtr ppStr = IntPtr.Zero; 87if (ppStr != IntPtr.Zero) 90ppStr = IntPtr.Zero;
System\Windows\Media\Imaging\BitmapSource.cs (5)
582IntPtr wicSource = IntPtr.Zero; 683if (buffer == IntPtr.Zero) 834new SafeMILHandle(IntPtr.Zero), 1775if (pvPixels == IntPtr.Zero) 1785if (prc == IntPtr.Zero)
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (2)
69if (bitmapObject != IntPtr.Zero) 86Debug.Assert(wicBitmap != IntPtr.Zero);
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
95IntPtr pIRenderTargetBitmap = IntPtr.Zero;
System\Windows\Media\Imaging\PropVariant.cs (15)
126ca.pElems = IntPtr.Zero; 133IntPtr destPtr = IntPtr.Zero; 148destPtr = IntPtr.Zero; 152if (destPtr != IntPtr.Zero) 165ca.pElems = IntPtr.Zero; 171IntPtr destPtr = IntPtr.Zero; 182IntPtr pString = IntPtr.Zero; 201destPtr = IntPtr.Zero; 205if (destPtr != IntPtr.Zero) 399IntPtr punkTemp = IntPtr.Zero; 431if (ca.pElems != IntPtr.Zero) 690IntPtr queryHandle = IntPtr.Zero; 704queryHandle = IntPtr.Zero; 718queryHandle = IntPtr.Zero; 728if (queryHandle != IntPtr.Zero)
System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (1)
27MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoInitialize(IntPtr.Zero);
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
266if (_backBuffer == IntPtr.Zero) 268IntPtr tempBackBufferPointer = IntPtr.Zero; 826if (sourceBuffer == IntPtr.Zero)
System\Windows\Media\MediaContextNotificationWindow.cs (3)
52hwndNotification = new HwndWrapper(0, NativeMethods.WS_POPUP, 0, 0, 0, 0, 0, "MediaContextNotificationWindow", IntPtr.Zero, null); 154return IntPtr.Zero; 184if (functionAddress != IntPtr.Zero)
System\Windows\Media\MediaSystem.cs (1)
234s_pConnection = IntPtr.Zero;
System\Windows\Media\PixelFormat.cs (7)
337Debug.Assert(pixelFormatInfo != IntPtr.Zero); 377if (pixelFormatInfo != IntPtr.Zero) 389IntPtr componentInfo = IntPtr.Zero; 390IntPtr pixelFormatInfo = IntPtr.Zero; 417if (componentInfo != IntPtr.Zero) 436Debug.Assert(pixelFormatInfo != IntPtr.Zero); 447if (pixelFormatInfo != IntPtr.Zero)
System\Windows\Media\SafeReversePInvokeHandle.cs (1)
43if (handle != IntPtr.Zero)
System\Windows\Media\StreamAsIStream.cs (10)
53Debug.Assert(((IntPtr)pSD.m_handle) != IntPtr.Zero, "If this asserts fires: why is it firing. It might be legal in future."); 155stream = IntPtr.Zero; 509Debug.Assert(((IntPtr)sd.m_handle) != IntPtr.Zero, "Stream is disposed."); 585IntPtr pIStream = IntPtr.Zero; 591return IntPtr.Zero; 598return IntPtr.Zero; 607IntPtr pIStream = IntPtr.Zero; 613return IntPtr.Zero; 620return IntPtr.Zero; 632IntPtr pStream = IntPtr.Zero;
System\Windows\Media\textformatting\TextFormatterContext.cs (14)
32_ploc = IntPtr.Zero; 39if(_ploc == System.IntPtr.Zero) 52contextInfo.pols = IntPtr.Zero; // This will be filled in the un-managed code 110IntPtr ploc = IntPtr.Zero; 111IntPtr ppenaltyModule = IntPtr.Zero; 165Invariant.Assert(_ploc != System.IntPtr.Zero); 241if(_ploc != System.IntPtr.Zero) 244_ploc = IntPtr.Zero; 256Invariant.Assert(_ploc != System.IntPtr.Zero); 286Invariant.Assert(_ploc != System.IntPtr.Zero); 312Invariant.Assert(_ploc != System.IntPtr.Zero); 334Invariant.Assert(_ploc != System.IntPtr.Zero); 353Invariant.Assert(_ploc != System.IntPtr.Zero); 373Invariant.Assert(_ploc != System.IntPtr.Zero);
System\Windows\Media\textformatting\TextLineBreak.cs (5)
34if (breakRecord == IntPtr.Zero) 69IntPtr pbreakrec = IntPtr.Zero; 71if (_breakRecord != IntPtr.Zero) 92if (_breakRecord != IntPtr.Zero) 96_breakRecord = IntPtr.Zero;
System\Windows\Media\textformatting\TextParagraphCache.cs (5)
48TextFormatterContext context = settings.Formatter.AcquireContext(_fullText, IntPtr.Zero); 52IntPtr ploparabreakValue = IntPtr.Zero; 59IntPtr.Zero, 148if(_ploparabreak != IntPtr.Zero) 152_ploparabreak = IntPtr.Zero;
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (2)
516if (ptr != IntPtr.Zero) 520ptr = IntPtr.Zero;
System\Windows\UIElement.cs (2)
1134HandleRef desktopWnd = new HandleRef(null, IntPtr.Zero); 1140if (dc == IntPtr.Zero)
PresentationFramework (702)
Microsoft\Win32\CommonDialog.cs (8)
67if (hwndOwner == IntPtr.Zero) 83if (hwndOwner == IntPtr.Zero) 85tempParentHwnd = new HwndWrapper(0, 0, 0, 0, 0, 0, 0, "", IntPtr.Zero, null); 137if (hwndOwner == IntPtr.Zero) 215return IntPtr.Zero; 254IntPtr hMonitor = IntPtr.Zero; 257if (_hwndOwnerWindow != IntPtr.Zero) 271if (hMonitor != IntPtr.Zero)
MS\Internal\AppModel\AppSecurityManager.cs (1)
93UnsafeNativeMethods.ShellExecute(new HandleRef(null, IntPtr.Zero), /*hwnd*/
MS\Internal\AppModel\IconHelper.cs (3)
217IntPtr bits = IntPtr.Zero; 219new HandleRef(null, IntPtr.Zero), // A device context. Pass null in if no DIB_PAL_COLORS is used. 227if (colorBitmap.IsInvalid || bits == IntPtr.Zero)
MS\Internal\AppModel\ShellProvider.cs (1)
955HRESULT hr = NativeMethods2.SHGetFolderPathEx(ref knownFolder, 0, IntPtr.Zero, pathBuilder, (uint)pathBuilder.Capacity);
MS\Internal\Controls\ActiveXHelper.cs (2)
87if (hDC != IntPtr.Zero) 106if (hDC != IntPtr.Zero)
MS\Internal\Controls\ActiveXSite.cs (2)
173if (hwnd != IntPtr.Zero) 261lpFrameInfo.hAccel = IntPtr.Zero;
MS\Internal\Controls\EnumUnknown.cs (2)
39if (pceltFetched != IntPtr.Zero) 65if (pceltFetched != IntPtr.Zero)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
283IntPtr hwnd = (hwndSource != null) ? hwndSource.Handle : IntPtr.Zero;
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (5)
178IntPtr pszVal = IntPtr.Zero; 179IntPtr pNative = IntPtr.Zero; 215Invariant.Assert(pNative != IntPtr.Zero); 222if (pszVal != IntPtr.Zero) 227if (pNative != IntPtr.Zero)
MS\Internal\IO\Packaging\ManagedIStream.cs (3)
44if (bytesReadPtr != IntPtr.Zero) 83if (newPositionPtr != IntPtr.Zero) 146if (bytesWrittenPtr != IntPtr.Zero)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
109if (pBuffer == IntPtr.Zero)
MS\Internal\Printing\NativeMethods.cs (18)
29public IntPtr hwndOwner = IntPtr.Zero; 30public IntPtr hDevMode = IntPtr.Zero; 31public IntPtr hDevNames = IntPtr.Zero; 32public IntPtr hDC = IntPtr.Zero; 38public IntPtr lpPageRanges = IntPtr.Zero; 42public IntPtr hInstance = IntPtr.Zero; 43public IntPtr lpPrintTemplateName = IntPtr.Zero; 44public IntPtr lpCallback = IntPtr.Zero; 46public IntPtr lphPropertyPages = IntPtr.Zero; 55public IntPtr hwndOwner = IntPtr.Zero; 56public IntPtr hDevMode = IntPtr.Zero; 57public IntPtr hDevNames = IntPtr.Zero; 58public IntPtr hDC = IntPtr.Zero; 64public IntPtr lpPageRanges = IntPtr.Zero; 68public IntPtr hInstance = IntPtr.Zero; 69public IntPtr lpPrintTemplateName = IntPtr.Zero; 70public IntPtr lpCallback = IntPtr.Zero; 72public IntPtr lphPropertyPages = IntPtr.Zero;
MS\Internal\Printing\PrintDlgExMarshaler.cs (27)
45_unmanagedPrintDlgEx = IntPtr.Zero; 87if (_unmanagedPrintDlgEx == IntPtr.Zero) 150if (_unmanagedPrintDlgEx != IntPtr.Zero) 158if (_ownerHandle == IntPtr.Zero) 187if (_unmanagedPrintDlgEx != IntPtr.Zero) 190_unmanagedPrintDlgEx = IntPtr.Zero; 227IntPtr devNamesHandle = IntPtr.Zero; 228IntPtr pageRangePtr = IntPtr.Zero; 255(pageRangePtr != IntPtr.Zero)) 269if (devNamesHandle != IntPtr.Zero) 271IntPtr pDevNames = IntPtr.Zero; 282if (pDevNames != IntPtr.Zero) 364IntPtr pDevMode = IntPtr.Zero; 375if (pDevMode != IntPtr.Zero) 441IntPtr unmanagedBuffer = IntPtr.Zero; 506pdex.lpPageRanges = IntPtr.Zero; 585pdex.lpPageRanges = IntPtr.Zero; 615if (unmanagedBuffer != IntPtr.Zero) 618unmanagedBuffer = IntPtr.Zero; 641if (unmanagedBuffer == IntPtr.Zero) 646IntPtr devModeHandle = IntPtr.Zero; 647IntPtr devNamesHandle = IntPtr.Zero; 648IntPtr pageRangePtr = IntPtr.Zero; 668if (devModeHandle != IntPtr.Zero) 673if (devNamesHandle != IntPtr.Zero) 678if (pageRangePtr != IntPtr.Zero) 714IntPtr hDevNames = IntPtr.Zero;
MS\Internal\Printing\Win32PrintDialog.cs (2)
57IntPtr owner = IntPtr.Zero; 118if (owner == IntPtr.Zero)
MS\Internal\PtsHost\BaseParaClient.cs (2)
38_paraHandle = IntPtr.Zero; 64Debug.Assert(_paraHandle == IntPtr.Zero || _paraHandle == pfspara);
MS\Internal\PtsHost\CellParaClient.cs (10)
117if(_paraHandle != IntPtr.Zero) 154if(CellParagraph.StructuralCache.DtrList != null && breakRecordIn != IntPtr.Zero) 173bool suppressTopSpace = (breakRecordIn != IntPtr.Zero) ? true : false; 177IntPtr.Zero, 194if (pmcsclientOut != IntPtr.Zero) 200pmcsclientOut = IntPtr.Zero; 244if (pmcsclientOut != IntPtr.Zero) 250pmcsclientOut = IntPtr.Zero; 291if (pmcsclientOut != IntPtr.Zero) 297pmcsclientOut = IntPtr.Zero;
MS\Internal\PtsHost\CellParagraph.cs (4)
94ppfscell = IntPtr.Zero; 103if (pfsbrkcellOut != IntPtr.Zero) 106pfsbrkcellOut = IntPtr.Zero; 109ppfscell = IntPtr.Zero;
MS\Internal\PtsHost\ContainerParagraph.cs (23)
159firstParaName = (_firstChild != null) ? _firstChild.Handle : IntPtr.Zero; 255nextParaName = IntPtr.Zero; 314nmpBeforeChange = IntPtr.Zero; 474if (mcs != null && pbrkrecIn != IntPtr.Zero) 507if (pbrkrecIn == IntPtr.Zero) 528(mcsContainer != null) ? mcsContainer.Handle : IntPtr.Zero, fskclearIn, 560if (pmcsclientOut != IntPtr.Zero) 564pmcsclientOut = IntPtr.Zero; 575pmcsclientOut = (mcsNew != null) ? mcsNew.Handle : IntPtr.Zero; 601paraClient.SetChunkInfo(pbrkrecIn == IntPtr.Zero, pbrkrecOut == IntPtr.Zero); 671(mcsContainer != null) ? mcsContainer.Handle : IntPtr.Zero, fskclearIn, fInterruptable, 690if (pmcsclientOut != IntPtr.Zero) 694pmcsclientOut = IntPtr.Zero; 699pmcsclientOut = (mcsNew != null) ? mcsNew.Handle : IntPtr.Zero; 715Debug.Assert(pmcsclientOut == IntPtr.Zero); 716pfspara = IntPtr.Zero; 801(mcsContainer != null) ? mcsContainer.Handle : IntPtr.Zero, fskclearIn, fInterruptable, 820if (pmcsclientOut != IntPtr.Zero) 824pmcsclientOut = IntPtr.Zero; 829pmcsclientOut = (mcsNew != null) ? mcsNew.Handle : IntPtr.Zero; 845Debug.Assert(pmcsclientOut == IntPtr.Zero); 846pfspara = IntPtr.Zero;
MS\Internal\PtsHost\FigureParaClient.cs (2)
40if (SubpageHandle != IntPtr.Zero) 43SubpageHandle = IntPtr.Zero;
MS\Internal\PtsHost\FigureParagraph.cs (11)
172CreateSubpageFiniteHelper(PtsContext, IntPtr.Zero, PTS.False, _mainTextSegment.Handle, IntPtr.Zero, PTS.False, PTS.True, 178if(brParaOut != IntPtr.Zero) 195if (pfsFigureContent != IntPtr.Zero) 199if (pmcsclientOut != IntPtr.Zero) 204pmcsclientOut = IntPtr.Zero; 215CreateSubpageFiniteHelper(PtsContext, IntPtr.Zero, PTS.False, _mainTextSegment.Handle, IntPtr.Zero, PTS.False, PTS.True, 221if(brParaOut != IntPtr.Zero) 239if (pmcsclientOut != IntPtr.Zero) 244pmcsclientOut = IntPtr.Zero;
MS\Internal\PtsHost\FloaterParagraph.cs (27)
195pbrkrecOut = IntPtr.Zero; 196pfsFloatContent = IntPtr.Zero; 250Debug.Assert(pmcsclientOut == IntPtr.Zero); 269if (pfsFloatContent != IntPtr.Zero) 272pfsFloatContent = IntPtr.Zero; 274if (pbrkrecOut != IntPtr.Zero) 277pbrkrecOut = IntPtr.Zero; 279if (pmcsclientOut != IntPtr.Zero) 284pmcsclientOut = IntPtr.Zero; 304if (pmcsclientOut != IntPtr.Zero) 309pmcsclientOut = IntPtr.Zero; 337if (pfsFloatContent != IntPtr.Zero) 340pfsFloatContent = IntPtr.Zero; 342if (pbrkrecOut != IntPtr.Zero) 345pbrkrecOut = IntPtr.Zero; 405pfsFloatContent = IntPtr.Zero; 447if (pfsFloatContent != IntPtr.Zero) 451if (pmcsclientOut != IntPtr.Zero) 456pmcsclientOut = IntPtr.Zero; 474if (pmcsclientOut != IntPtr.Zero) 479pmcsclientOut = IntPtr.Zero; 495if (pfsFloatContent != IntPtr.Zero) 500Debug.Assert(pmcsclientOut == IntPtr.Zero); 502pfsFloatContent = IntPtr.Zero; 519Debug.Assert(pmcsclientOut == IntPtr.Zero); 522pfsFloatContent = IntPtr.Zero; 570pmcsclientOut = IntPtr.Zero;
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
422if (_ptsPage.PageHandle == IntPtr.Zero) 491if (columnDesc.pfstrack != IntPtr.Zero)
MS\Internal\PtsHost\PageBreakRecord.cs (2)
35Invariant.Assert(br != IntPtr.Zero, "Invalid break record object."); 150_br = IntPtr.Zero;
MS\Internal\PtsHost\PtsCache.cs (8)
329Invariant.Assert(_contextPool[index].PtsHost.Context != IntPtr.Zero, "PTS Context handle is not valid."); 331Invariant.Assert(_contextPool[index].InstalledObjects != IntPtr.Zero, "Installed Objects handle is not valid."); 401Invariant.Assert(_contextPool[index].PtsHost.Context != IntPtr.Zero, "PTS Context handle is not valid."); 403Invariant.Assert(_contextPool[index].InstalledObjects != IntPtr.Zero, "Installed Objects handle is not valid."); 617subtrackParaInfo.pfnGetFootnoteInfoWord = IntPtr.Zero; 680tableobjInit.tableobjcbk.pfnGetDvrUsedForFloatTable = IntPtr.Zero; 710tableobjInit.tablecbkcell.pfnGetCellFootnoteInfo = IntPtr.Zero; 711tableobjInit.tablecbkcell.pfnGetCellFootnoteInfoWord = IntPtr.Zero;
MS\Internal\PtsHost\PtsContext.cs (8)
84Invariant.Assert(((IntPtr)_pageBreakRecords[index]) != IntPtr.Zero, "Invalid break record object"); 102Invariant.Assert(((IntPtr)_pages[index]) != IntPtr.Zero, "Invalid break record object"); 283Invariant.Assert(ptsPage != IntPtr.Zero, "Invalid page object."); 298Invariant.Assert(ptsPage != IntPtr.Zero, "Invalid page object."); 324Invariant.Assert(br != IntPtr.Zero, "Invalid break record object."); 338Invariant.Assert(br != IntPtr.Zero, "Invalid break record object."); 473Invariant.Assert(ptsPage != IntPtr.Zero, "Invalid page object."); 510Invariant.Assert(br != IntPtr.Zero, "Invalid break record object.");
MS\Internal\PtsHost\PtsHelper.cs (5)
123if (trackDesc.pfstrack != IntPtr.Zero) 213bool emptyTrack = (trackDesc.pfstrack == IntPtr.Zero); 316if (trackDesc.pfstrack != IntPtr.Zero) 373if (trackDesc.pfstrack == IntPtr.Zero) { return null; } 448if (trackDesc.pfstrack == IntPtr.Zero)
MS\Internal\PtsHost\PtsHost.cs (97)
36_context = IntPtr.Zero; 63get { Invariant.Assert(_context != IntPtr.Zero); return _context; } 64set { Invariant.Assert(_context == IntPtr.Zero); _context = value; } 327fSuccess = 0; nmsNext = IntPtr.Zero; 333fSuccess = 0; nmsNext = IntPtr.Zero; 422nmSegment = IntPtr.Zero; 428nmSegment = IntPtr.Zero; 457fHeaderPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirHeader = 0; nmsHeader = IntPtr.Zero; 463fHeaderPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirHeader = 0; nmsHeader = IntPtr.Zero; 492fFooterPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirFooter = 0; nmsFooter = IntPtr.Zero; 498fFooterPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirFooter = 0; nmsFooter = IntPtr.Zero; 601fSuccessful = 0; nmp = IntPtr.Zero; 607fSuccessful = 0; nmp = IntPtr.Zero; 631fFound = 0; nmpNext = IntPtr.Zero; 637fFound = 0; nmpNext = IntPtr.Zero; 659fFound = fChangeFirst = 0; nmpBeforeChange = IntPtr.Zero; 665fFound = fChangeFirst = 0; nmpBeforeChange = IntPtr.Zero; 738pfsparaclient = IntPtr.Zero; 744pfsparaclient = IntPtr.Zero; 825nmsEndnoteSeparator = nmsEndnoteContSeparator = nmsEndnoteContNotice = IntPtr.Zero; 831nmsEndnoteSeparator = nmsEndnoteContSeparator = nmsEndnoteContNotice = IntPtr.Zero; 852fEndnotesPresent = 0; nmsEndnotes = IntPtr.Zero; 858fEndnotesPresent = 0; nmsEndnotes = IntPtr.Zero; 893nmsFtnSeparator = nmsFtnContSeparator = nmsFtnContNotice = IntPtr.Zero; 932nmsFootnote = IntPtr.Zero; 975pmcsclientNew = IntPtr.Zero; 981pmcsclientNew = IntPtr.Zero; 1017if (pmcsclient1 == IntPtr.Zero || pmcsclient2 == IntPtr.Zero) 1063if (pmcsclient != IntPtr.Zero) 1102pObjectInfo = IntPtr.Zero; 1144if(pfsbreakreclineclient != IntPtr.Zero) 1160ppfsparabreakingsession = IntPtr.Zero; 1168ppfsparabreakingsession = IntPtr.Zero; 1272pfsdropc = IntPtr.Zero; 1324pmcsclientOut = IntPtr.Zero; 1329pmcsclientOut = IntPtr.Zero; 1335pmcsclientOut = IntPtr.Zero; 1387pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1394pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1446pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = 0; 1453pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = 0; 1489if(pbrlineIn != IntPtr.Zero) 1541rgfslinevariant[breakIndex].pfsbreakreclineclient = IntPtr.Zero; 1626pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1633pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1663pbrlineDup = IntPtr.Zero; 1669pbrlineDup = IntPtr.Zero; 1869pmcsclientAfterPara = IntPtr.Zero; 2252fsfmtr = new PTS.FSFMTR(); pfsFloatContent = pbrkrecpara = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2258fsfmtr = new PTS.FSFMTR(); pfsFloatContent = pbrkrecpara = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2295pfsFloatContent = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2302pfsFloatContent = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2583if (pmcsclientIn != IntPtr.Zero) 2592pmcsclientOut = IntPtr.Zero; 2598pmcsclientOut = IntPtr.Zero; 2619if (pmcsclientIn != IntPtr.Zero) 2700if (pmcsclientIn != IntPtr.Zero) 2711fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 2718fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 2757if (pmcsclientIn != IntPtr.Zero) 2768pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 2776pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 2814if (pmcsclientIn != IntPtr.Zero) 2826pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 2834pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3015if (pmcsclientIn != IntPtr.Zero) 3026fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 3033fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 3071if (pmcsclientIn != IntPtr.Zero) 3083pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3091pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3129if (pmcsclientIn != IntPtr.Zero) 3141pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3149pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3368ppmcsclientOut = IntPtr.Zero; 3374ppmcsclientOut = IntPtr.Zero; 3398pnmFirstHeaderRow = IntPtr.Zero; 3405pnmFirstHeaderRow = IntPtr.Zero; 3430pnmNextHeaderRow = IntPtr.Zero; 3437pnmNextHeaderRow = IntPtr.Zero; 3461pnmFirstFooterRow = IntPtr.Zero; 3468pnmFirstFooterRow = IntPtr.Zero; 3493pnmNextFooterRow = IntPtr.Zero; 3500pnmNextFooterRow = IntPtr.Zero; 3523pnmFirstRow = IntPtr.Zero; 3530pnmFirstRow = IntPtr.Zero; 3554pnmNextRow = IntPtr.Zero; 3561pnmNextRow = IntPtr.Zero; 3629pnmRowBeforeChange = IntPtr.Zero; 3637pnmRowBeforeChange = IntPtr.Zero; 3893ppfscell = IntPtr.Zero; 3894pfsbrkcellOut = IntPtr.Zero; 3902ppfscell = IntPtr.Zero; 3903pfsbrkcellOut = IntPtr.Zero; 3938ppfscell = IntPtr.Zero; 3946ppfscell = IntPtr.Zero;
MS\Internal\PtsHost\PtsPage.cs (12)
48_ptsPage = IntPtr.Zero; 299_ptsPage = IntPtr.Zero; 391IntPtr brIn = (breakRecord != null) ? breakRecord.BreakRecord : IntPtr.Zero; 401_ptsPage = IntPtr.Zero; 402brOut = IntPtr.Zero; 409if (brOut != IntPtr.Zero) 452IntPtr brIn = (breakRecord != null) ? breakRecord.BreakRecord : IntPtr.Zero; 468if (brOut != IntPtr.Zero) 721_ptsPage = IntPtr.Zero; 1430if (_ptsPage != IntPtr.Zero) 1433_ptsPage = IntPtr.Zero; 1451return (_ptsPage == IntPtr.Zero);
MS\Internal\PtsHost\RowParagraph.cs (2)
83paraClientHandle = IntPtr.Zero; 199if(rgpfsCell[index] != IntPtr.Zero)
MS\Internal\PtsHost\Section.cs (7)
176nmsNext = IntPtr.Zero; 286nmsHeader = IntPtr.Zero; 330nmsFooter = IntPtr.Zero; 380nmsEndnotes = IntPtr.Zero; 400nmsEndnoteSeparator = IntPtr.Zero; 401nmsEndnoteContSeparator = IntPtr.Zero; 402nmsEndnoteContNotice = IntPtr.Zero;
MS\Internal\PtsHost\SubpageParaClient.cs (2)
46if (_paraHandle != IntPtr.Zero) 49_paraHandle = IntPtr.Zero;
MS\Internal\PtsHost\SubpageParagraph.cs (19)
137if (mcs != null && pbrkrecIn != IntPtr.Zero) 167if (pbrkrecIn == IntPtr.Zero) 233if (pbrkrecIn == IntPtr.Zero) // if first chunk 240if (pmcsclientOut != IntPtr.Zero) 244pmcsclientOut = IntPtr.Zero; 264pmcsclientOut = (mcsBottom != null) ? mcsBottom.Handle : IntPtr.Zero; 266if (pmcsclientOut == IntPtr.Zero) // if last chunk 294paraClient.SetChunkInfo(pbrkrecIn == IntPtr.Zero, pbrkrecOut == IntPtr.Zero); 404if (pmcsclientOut != IntPtr.Zero) 408pmcsclientOut = IntPtr.Zero; 411pmcsclientOut = (mcsBottom != null) ? mcsBottom.Handle : IntPtr.Zero; 441Debug.Assert(pmcsclientOut == IntPtr.Zero); 442pfspara = IntPtr.Zero; 563if (pmcsclientOut != IntPtr.Zero) 567pmcsclientOut = IntPtr.Zero; 570pmcsclientOut = (mcsBottom != null) ? mcsBottom.Handle : IntPtr.Zero; 600Debug.Assert(pmcsclientOut == IntPtr.Zero); 601pfspara = IntPtr.Zero;
MS\Internal\PtsHost\TableParaClient.cs (13)
126if (arrayFsCell[iC] == IntPtr.Zero) 340if (arrayFsCell[iC] == IntPtr.Zero) 388if (arrayFsCell[iC] == IntPtr.Zero) 462if (arrayFsCell[iC] == IntPtr.Zero) 553if (arrayFsCell[iC] == IntPtr.Zero) 629if (arrayFsCell[iC] == IntPtr.Zero) 750if(arrayFsCell[iC] != IntPtr.Zero && 846if (arrayFsCell[iC] == IntPtr.Zero) 913if (arrayFsCell[iC] == IntPtr.Zero) 973if (arrayFsCell[iC] == IntPtr.Zero) 1052if (arrayFsCell[iC] == IntPtr.Zero) 1551arrayFsCell[iC] == IntPtr.Zero 1669if (arrayFsCell[iC] == IntPtr.Zero)
MS\Internal\PtsHost\TableParagraph.cs (9)
171ppmcsclientOut = IntPtr.Zero; 175if (pmcsclientIn != IntPtr.Zero) 197pnmFirstHeaderRow = IntPtr.Zero; 214pnmNextHeaderRow = IntPtr.Zero; 229pnmFirstFooterRow = IntPtr.Zero; 246pnmNextFooterRow = IntPtr.Zero; 287pnmFirstRow = IntPtr.Zero; 362pnmNextRow = IntPtr.Zero; 399pnmRowBeforeChange = IntPtr.Zero;
MS\Internal\PtsHost\TextParaClient.cs (2)
522IntPtr breakRecLine = IntPtr.Zero; 981IntPtr breakRecLine = IntPtr.Zero;
MS\Internal\PtsHost\TextParagraph.cs (4)
253mcsClient = IntPtr.Zero; 546ppbrlineOut = IntPtr.Zero; 727ppbrlineOut = IntPtr.Zero; 1312if(pbrLineIn != IntPtr.Zero)
MS\Internal\PtsHost\UIElementParagraph.cs (6)
191pbrkrecOut = IntPtr.Zero; 192pfsFloatContent = IntPtr.Zero; 233pfsFloatContent = IntPtr.Zero; 251pbrkrecOut = IntPtr.Zero; 289pfsFloatContent = IntPtr.Zero; 369pmcsclientOut = IntPtr.Zero;
MS\Internal\PtsHost\UnmanagedHandle.cs (1)
42_handle = IntPtr.Zero;
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (19)
39if (thisPtr == IntPtr.Zero) return null; 49public static bool operator ==(AlternateWordForm x, AlternateWordForm y) => (x?.ThisPtr ?? IntPtr.Zero) == (y?.ThisPtr ?? IntPtr.Zero); 72ppv = IntPtr.Zero; 257if (thisPtr == IntPtr.Zero) return null; 267public static bool operator ==(WordSegment x, WordSegment y) => (x?.ThisPtr ?? IntPtr.Zero) == (y?.ThisPtr ?? IntPtr.Zero); 290ppv = IntPtr.Zero; 362if (thisPtr == IntPtr.Zero) return null; 372public static bool operator ==(WordsSegmenter x, WordsSegmenter y) => (x?.ThisPtr ?? IntPtr.Zero) == (y?.ThisPtr ?? IntPtr.Zero); 397ppv = IntPtr.Zero; 423public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 425public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Data.Text.AlternateWordForm obj) => obj is null ? IntPtr.Zero : CreateMarshaler(obj).GetRef(); 1547public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 1549public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegment obj) => obj is null ? IntPtr.Zero : CreateMarshaler(obj).GetRef(); 1625public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler managedDelegate) => CreateMarshaler(managedDelegate)?.GetRef() ?? IntPtr.Zero; 1656public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 1658public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordsSegmenter obj) => obj is null ? IntPtr.Zero : CreateMarshaler(obj).GetRef();
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (6)
134if (thisPtr == IntPtr.Zero) return null; 144public static bool operator ==(Language x, Language y) => (x?.ThisPtr ?? IntPtr.Zero) == (y?.ThisPtr ?? IntPtr.Zero); 177ppv = IntPtr.Zero; 836public static IntPtr GetAbi(IObjectReference value) => value is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(value); 838public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Globalization.Language obj) => obj is null ? IntPtr.Zero : CreateMarshaler(obj).GetRef();
MS\Internal\WindowsRuntime\Generated\WinRT.cs (6)
45if (functionPtr == IntPtr.Zero) 123_moduleHandle = Platform.LoadLibraryExW(System.IO.Path.Combine(_currentModuleDirectory, fileName), IntPtr.Zero, /* LOAD_WITH_ALTERED_SEARCH_PATH */ 8); 125if (_moduleHandle == IntPtr.Zero) 135if (_moduleHandle == IntPtr.Zero) 143if (canUnloadNow != IntPtr.Zero) 164if ((_moduleHandle != IntPtr.Zero) && !Platform.FreeLibrary(_moduleHandle))
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (7)
43IntPtr winRTErrorModule = Platform.LoadLibraryExW("api-ms-win-core-winrt-error-l1-1-1.dll", IntPtr.Zero, (uint)DllImportSearchPath.System32); 44if (winRTErrorModule != IntPtr.Zero) 53winRTErrorModule = Platform.LoadLibraryExW("api-ms-win-core-winrt-error-l1-1-0.dll", IntPtr.Zero, (uint)DllImportSearchPath.System32); 54if (winRTErrorModule != IntPtr.Zero) 98if (restrictedErrorInfoPtr != IntPtr.Zero) 189hstring = IntPtr.Zero; 313if (restrictedErrorInfoPtr != IntPtr.Zero)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (16)
129source = IntPtr.Zero; 147description = IntPtr.Zero; 165helpFile = IntPtr.Zero; 183helpFileContent = IntPtr.Zero; 227return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 241return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 255return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 269return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 305IntPtr __return_value__ = IntPtr.Zero; 414IntPtr _description = IntPtr.Zero; 415IntPtr _restrictedDescription = IntPtr.Zero; 416IntPtr _capabilitySid = IntPtr.Zero; 420description = _description != IntPtr.Zero ? Marshal.PtrToStringBSTR(_description) : string.Empty; 421restrictedDescription = _restrictedDescription != IntPtr.Zero ? Marshal.PtrToStringBSTR(_restrictedDescription) : string.Empty; 422capabilitySid = _capabilitySid != IntPtr.Zero ? Marshal.PtrToStringBSTR(_capabilitySid) : string.Empty; 438return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IContextCallback.cs (1)
77Marshal.ThrowExceptionForHR(_obj.Vftbl.ContextCallback_4(ThisPtr, pfnCallback, pParam, ref riid, iMethod, IntPtr.Zero));
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (31)
66public static IntPtr GetAbi(MarshalString m) => m is null ? IntPtr.Zero : m._handle; 68public static IntPtr GetAbi(object box) => box is null ? IntPtr.Zero : ((MarshalString)box)._handle; 80if (hstring != IntPtr.Zero) 92if (value == IntPtr.Zero) 103return IntPtr.Zero; 122if (_array != IntPtr.Zero) 196return (0, IntPtr.Zero); 198IntPtr data = IntPtr.Zero; 204data = IntPtr.Zero; 305return (0, IntPtr.Zero); 437if (_array != IntPtr.Zero) 506if (abi.data == IntPtr.Zero) 524return (0, IntPtr.Zero); 526IntPtr data = IntPtr.Zero; 532data = IntPtr.Zero; 600if (abi.data == IntPtr.Zero) return; 619if (_array != IntPtr.Zero) 684return (0, IntPtr.Zero); 686IntPtr data = IntPtr.Zero; 692data = IntPtr.Zero; 754if (abi.data == IntPtr.Zero) return; 761return objRef?.ThisPtr ?? IntPtr.Zero; 771if (ptr == IntPtr.Zero) return; 786if (ptr == IntPtr.Zero) 835value is null ? IntPtr.Zero : MarshalInterfaceHelper<T>.GetAbi(value); 845return IntPtr.Zero; 853(value is null) ? IntPtr.Zero : CreateMarshaler(value).GetRef(); 918objRef is null ? IntPtr.Zero : MarshalInterfaceHelper<object>.GetAbi(objRef); 922if (ptr == IntPtr.Zero) 953return objRef?.GetRef() ?? IntPtr.Zero; 959*(IntPtr*)dest.ToPointer() = objRef?.GetRef() ?? IntPtr.Zero;
MS\Internal\WindowsRuntime\Generated\WinRT\ObjectReference.cs (5)
39if (thisPtr == IntPtr.Zero) 156if (thisPtr == IntPtr.Zero) 161thisPtr = IntPtr.Zero; 184if (thisPtr == IntPtr.Zero) 195if (thisPtr == IntPtr.Zero)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (8)
41objRef?.ThisPtr ?? IntPtr.Zero; 44thisPtr == IntPtr.Zero ? null : new IEnumerable<T>(ObjRefFromAbi(thisPtr)); 47(value is null) ? IntPtr.Zero : CreateMarshaler(value).GetRef(); 143if (thisPtr == IntPtr.Zero) 198objRef?.ThisPtr ?? IntPtr.Zero; 201thisPtr == IntPtr.Zero ? null : new IEnumerator<T>(ObjRefFromAbi(thisPtr)); 207(value is null) ? IntPtr.Zero : CreateMarshaler(value).GetRef(); 548if (thisPtr == IntPtr.Zero)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (4)
36objRef?.ThisPtr ?? IntPtr.Zero; 39thisPtr == IntPtr.Zero ? null : new IReadOnlyList<T>(ObjRefFromAbi(thisPtr)); 42(value is null) ? IntPtr.Zero : CreateMarshaler(value).GetRef(); 340if (thisPtr == IntPtr.Zero)
System\Windows\Appearance\WindowBackdropManager.cs (5)
44if (handle == IntPtr.Zero) 56if (hwnd == IntPtr.Zero) 99if (hwnd != IntPtr.Zero) 114if (hwnd != IntPtr.Zero) 117if (windowSource?.Handle != IntPtr.Zero && windowSource.CompositionTarget != null)
System\Windows\Application.cs (5)
1927return IntPtr.Zero; 2071IntPtr.Zero, 2078IntPtr retInt = IntPtr.Zero; 2134refInt = IntPtr.Zero; 2284UnsafeNativeMethods.PlaySound(soundFile, IntPtr.Zero, PLAYSOUND_FLAGS);
System\Windows\Automation\Peers\HwndHostAutomationPeer.cs (1)
39if(hwnd != IntPtr.Zero)
System\Windows\Automation\Peers\WindowAutomationPeer.cs (1)
71if(windowHandle != IntPtr.Zero) //it is Zero on a window that was just closed
System\Windows\Controls\ComboBox.cs (1)
1689if (comboBox.IsDropDownOpen && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
System\Windows\Controls\PopupControlService.cs (1)
97if (MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
System\Windows\Controls\Primitives\MenuBase.cs (2)
550if (menu.IsMenuMode && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero) 611HwndSource hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ? HwndSource.CriticalFromHwnd(hwndWithFocus) : null;
System\Windows\Controls\Primitives\Popup.cs (23)
1228bool reestablishCapture = e.OriginalSource != root && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero; 1760if (wParam == IntPtr.Zero) 1793return IntPtr.Zero; 2674if (monitor != IntPtr.Zero) 2755if (hCursor != IntPtr.Zero) 3083UnsafeNativeMethods.SetWindowPos(new HandleRef(null, Handle), new HandleRef(null, IntPtr.Zero), 3092if (parent != IntPtr.Zero) 3105if (hwnd != IntPtr.Zero) 3173lastWebOCHwnd == IntPtr.Zero ? NativeMethods.HWND_TOP : new HandleRef(null, lastWebOCHwnd), 3211while (lastHwnd != IntPtr.Zero) 3311IntPtr parent = IntPtr.Zero; 3343if ( parent != IntPtr.Zero ) 3351if ((parent != IntPtr.Zero) && ConnectedToForegroundWindow(parent)) 3381while (window != IntPtr.Zero) 3400return (hwnd!=null ? hwnd.Handle : IntPtr.Zero); 3408if (child != IntPtr.Zero) 3414return IntPtr.Zero; 3433if (Handle != IntPtr.Zero && (UnsafeNativeMethods.IsWinEventHookInstalled(NativeMethods.EVENT_OBJECT_FOCUS) || UnsafeNativeMethods.IsWinEventHookInstalled(NativeMethods.EVENT_OBJECT_STATECHANGE))) 3438if (popupRootAutomationPeer.Hwnd == IntPtr.Zero) 3441IntPtr lResult = AutomationInteropProvider.ReturnRawElementProvider(Handle, IntPtr.Zero, new IntPtr(NativeMethods.OBJID_CLIENT), RootProviderForHwnd); 3442if (lResult != IntPtr.Zero) 3447hr = UnsafeNativeMethods.ObjectFromLresult(lResult, ref iid, IntPtr.Zero, ref acc); 3525return DpiUtil.GetProcessDpiAwareness(IntPtr.Zero) == NativeMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE;
System\Windows\Controls\WebBrowser.cs (4)
277rgvarg = IntPtr.Zero 299dp.rgvarg = (args == null) ? IntPtr.Zero : UnsafeNativeMethods.ArrayToVARIANTHelper.ArrayToVARIANTVector(args); 301dp.rgdispidNamedArgs = IntPtr.Zero; 329if (dp.rgvarg != IntPtr.Zero)
System\windows\Documents\CaretElement.cs (2)
966IntPtr hwnd = IntPtr.Zero; 974if (hwnd != IntPtr.Zero)
System\Windows\Documents\ImmComposition.cs (22)
185IntPtr hwnd = IntPtr.Zero; 190if (himc != IntPtr.Zero) 323IntPtr lret = IntPtr.Zero; 402if (himc == IntPtr.Zero) 413size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_RESULTSTR, IntPtr.Zero, 0); 427size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_COMPSTR, IntPtr.Zero, 0); 439cursorPos = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_CURSORPOS, IntPtr.Zero, 0); 447deltaStart = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_DELTASTART, IntPtr.Zero, 0); 455size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_COMPATTR, IntPtr.Zero, 0); 569if (himc != IntPtr.Zero) 751if (himc != IntPtr.Zero) 1276IntPtr lret = IntPtr.Zero; 1311return IntPtr.Zero; 1333if (lParam != IntPtr.Zero) 1493return IntPtr.Zero; 1498return IntPtr.Zero; 1507return IntPtr.Zero; 1726IntPtr hwnd = IntPtr.Zero; 1732IntPtr lret = IntPtr.Zero; 1733if (himc != IntPtr.Zero) 1735IntPtr hwndDefIme = IntPtr.Zero; 1741return (lret != IntPtr.Zero) ? true : false;
System\Windows\Documents\MoveSizeWinEventHandler.cs (1)
71while (hwndTemp != IntPtr.Zero)
System\Windows\Documents\NaturalLanguageHyphenator.cs (2)
71if (!_disposed && _hyphenatorResource != IntPtr.Zero) 113if (_hyphenatorResource == IntPtr.Zero)
System\windows\Documents\TextEditorContextMenu.cs (1)
301IntPtr hwnd = IntPtr.Zero;
System\windows\Documents\TextEditorDragDrop.cs (2)
652IntPtr hwnd = IntPtr.Zero; 659if (hwnd != IntPtr.Zero)
System\windows\Documents\TextEditorTyping.cs (1)
1603IntPtr hwnd = IntPtr.Zero;
System\Windows\Documents\TextStore.cs (3)
1168hwnd = IntPtr.Zero; 2617IntPtr hwnd = IntPtr.Zero; 3282IntPtr hwnd = IntPtr.Zero;
System\Windows\Documents\WinEventHandler.cs (4)
84_hHook = UnsafeNativeMethods.SetWinEventHook(_eventMin, _eventMax, IntPtr.Zero, _winEventProc, 86if (_hHook == IntPtr.Zero ) 96if (_hHook != IntPtr.Zero ) 99_hHook = IntPtr.Zero ;
System\Windows\Input\KeyboardNavigation.cs (1)
3277if (activeWindow != IntPtr.Zero)
System\Windows\Interop\ActiveXHost.cs (4)
143if (ControlHandle.Handle == IntPtr.Zero) 145IntPtr inplaceWindow = IntPtr.Zero; 499IntPtr.Zero, 520if (this.ParentHandle.Handle != IntPtr.Zero)
System\Windows\Interop\HwndHost.cs (33)
68if (_hwnd.Handle != IntPtr.Zero) 72_hwnd = new HandleRef(null, IntPtr.Zero); 301if (Handle != IntPtr.Zero && (hwndFocus.Handle == _hwnd.Handle || UnsafeNativeMethods.IsChild(_hwnd, hwndFocus))) 338if (( Handle != IntPtr.Zero) && IsVisible) 554_hwnd = new HandleRef(null, IntPtr.Zero); 612return IntPtr.Zero ; 627IntPtr result = IntPtr.Zero; 656new HandleRef(null, IntPtr.Zero), 694if(Handle != IntPtr.Zero) 726if(Handle != IntPtr.Zero) 733HandleRef hdcScreen = new HandleRef(this, UnsafeNativeMethods.GetDC(new HandleRef(this, IntPtr.Zero))); 734if(hdcScreen.Handle != IntPtr.Zero) 736HandleRef hdcBitmap = new HandleRef(this, IntPtr.Zero); 737HandleRef hBitmap = new HandleRef(this, IntPtr.Zero); 742if(hdcBitmap.Handle != IntPtr.Zero) 746if(hBitmap.Handle != IntPtr.Zero) 778UnsafeNativeMethods.CriticalRedrawWindow(_hwnd, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN); 783System.Windows.Media.Imaging.BitmapSource bitmapSource = Imaging.CriticalCreateBitmapSourceFromHBitmap(hBitmap.Handle, IntPtr.Zero, Int32Rect.Empty, null, WICBitmapAlphaChannelOption.WICBitmapIgnoreAlpha); 798UnsafeNativeMethods.ReleaseDC(new HandleRef(this, IntPtr.Zero), hdcScreen); 799hdcScreen = new HandleRef(null, IntPtr.Zero); 801if(hBitmap.Handle != IntPtr.Zero) 804hBitmap = new HandleRef(this, IntPtr.Zero); 807if(hdcBitmap.Handle != IntPtr.Zero) 810hdcBitmap = new HandleRef(this, IntPtr.Zero); 924IntPtr hwndParent = IntPtr.Zero; 950if(hwndParent != IntPtr.Zero) 952if(_hwnd.Handle == IntPtr.Zero) 968else if (Handle != IntPtr.Zero) 1011if(_hwnd.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(_hwnd)) 1077if( Handle == IntPtr.Zero) 1093_hwnd = new HandleRef(null, IntPtr.Zero); 1106IntPtr result = IntPtr.Zero ;
System\Windows\Interop\WindowInteropHelper.cs (1)
96if (Handle == IntPtr.Zero)
System\Windows\MessageBox.cs (8)
107return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, defaultResult, options); 122return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, defaultResult, 0); 136return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, 0, 0); 149return ShowCore(IntPtr.Zero, messageBoxText, caption, button, MessageBoxImage.None, 0, 0); 159return ShowCore(IntPtr.Zero, messageBoxText, caption, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 169return ShowCore(IntPtr.Zero, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 395if (owner != IntPtr.Zero) 402if (owner == IntPtr.Zero)
System\Windows\Shell\WindowChromeWorker.cs (23)
146if (IntPtr.Zero != _hwnd) 216if (_chromeInfo != null && _hwnd != IntPtr.Zero) 232if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed) 256NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 357return IntPtr.Zero; 442IntPtr retVal = IntPtr.Zero; 518if (IntPtr.Zero != lRet) 543return IntPtr.Zero; 563return IntPtr.Zero; 592return IntPtr.Zero; 600return IntPtr.Zero; 670if (IntPtr.Zero != hmenu) 713if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed) 735NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 741NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd)); 777IntPtr hrgn = IntPtr.Zero; 782hrgn = IntPtr.Zero; 809IntPtr hrgn = IntPtr.Zero; 859hrgn = IntPtr.Zero; 895IntPtr hrgn = IntPtr.Zero; 943if (IntPtr.Zero == _hwnd) 1143if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero) 1161NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
System\Windows\Standard\MessageWindow.cs (7)
71IntPtr.Zero, 72IntPtr.Zero, 73IntPtr.Zero, 113_dispatcher.BeginInvoke(DispatcherPriority.Normal, (DispatcherOperationCallback)_DestroyWindowCallback, new object [] { IntPtr.Zero, className }); 115else if (Handle != IntPtr.Zero) 130Handle = IntPtr.Zero; 143IntPtr ret = IntPtr.Zero;
System\Windows\Standard\NativeMethods.cs (28)
1408if (!_hwnd.HasValue || _hwnd.Value == IntPtr.Zero) 1423dc = NativeMethods.CreateDC(deviceName, null, IntPtr.Zero, IntPtr.Zero); 1445IntPtr hPtr = IntPtr.Zero; 1493return GetDC(IntPtr.Zero); 1504_hwnd = IntPtr.Zero, 1560handle = IntPtr.Zero; 1596handle = IntPtr.Zero; 2347IntPtr argv = IntPtr.Zero; 2353if (argv == IntPtr.Zero) 2371Assert.AreEqual(IntPtr.Zero, p); 2387hBitmap = _CreateDIBSectionIntPtr(IntPtr.Zero, ref bitmapInfo, DIB_RGB_COLORS, out ppvBits, hSection, dwOffset); 2408if (IntPtr.Zero == ret) 2421if (IntPtr.Zero == ret) 2434if (IntPtr.Zero == ret) 2474if (IntPtr.Zero == ret) 2710if (retPtr == IntPtr.Zero) 2737if (retPtr == IntPtr.Zero) 2753IntPtr ret = IntPtr.Zero; 2762if (IntPtr.Zero == ret) 2899if (ret == IntPtr.Zero) 3041if (ret == IntPtr.Zero) 3054if (ret == IntPtr.Zero) 3141if (!_UpdateLayeredWindowIntPtr(hwnd, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, crKey, ref pblend, dwFlags))
System\Windows\Standard\Utilities.cs (3)
190gdiObject = IntPtr.Zero; 191if (IntPtr.Zero != p) 200hwnd = IntPtr.Zero;
System\Windows\SystemCommands.cs (5)
31if (hwnd == IntPtr.Zero || !NativeMethods.IsWindow(hwnd)) 36NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr((int)command), IntPtr.Zero); 80if (hwnd == IntPtr.Zero || !NativeMethods.IsWindow(hwnd)) 87uint cmd = NativeMethods.TrackPopupMenuEx(hmenu, TPM_LEFTBUTTON | TPM_RIGHTBUTTON | TPM_RETURNCMD, (int)physicalScreenLocation.X, (int)physicalScreenLocation.Y, hwnd, IntPtr.Zero); 90NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr(cmd), IntPtr.Zero);
System\Windows\SystemParameters.cs (2)
5757HandleRef desktopWnd = new HandleRef(null, IntPtr.Zero); 5762if (dc == IntPtr.Zero)
System\Windows\SystemResources.cs (3)
1106parent: IntPtr.Zero, 1423return IntPtr.Zero ; 1510return DpiUtil.GetProcessDpiAwarenessContextValue(IntPtr.Zero);
System\Windows\Window.cs (46)
251UnsafeNativeMethods.SendMessage( Handle, WindowMessage.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_MOUSEMOVE, IntPtr.Zero); 252UnsafeNativeMethods.SendMessage( Handle, WindowMessage.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero); 292_dialogOwnerHandle = IntPtr.Zero; 302if (_dialogOwnerHandle == IntPtr.Zero) 309if ((_dialogOwnerHandle != IntPtr.Zero) && 312_dialogOwnerHandle = IntPtr.Zero; 317if (_dialogOwnerHandle != IntPtr.Zero) 322while (_dialogOwnerHandle != IntPtr.Zero) 358if (hWndCapture != IntPtr.Zero) 426if ( (_dialogPreviousActiveHandle != IntPtr.Zero) && 1292SetOwnerHandle(_ownerWindow != null ? _ownerWindow.Handle: IntPtr.Zero); 2610if (handle != IntPtr.Zero) 2839new HandleRef(null, IntPtr.Zero), 2922new HandleRef(null, IntPtr.Zero), 3023new HandleRef(null, IntPtr.Zero), 3197return IntPtr.Zero; 3785IntPtr hMonitor = IntPtr.Zero; 3786if ((_ownerHandle == IntPtr.Zero) || 3798if (hMonitor != IntPtr.Zero) 3822if (Owner.Handle == IntPtr.Zero) 3840if ((_ownerHandle != IntPtr.Zero) && UnsafeNativeMethods.IsWindow(new HandleRef(null, _ownerHandle))) 3879Debug.Assert(hMonitor != IntPtr.Zero); 3888if (hMonitor == IntPtr.Zero) 4168if (_ownerHandle == ownerHandle && _ownerHandle == IntPtr.Zero) 4176_ownerHandle = (IntPtr.Zero == ownerHandle && !ShowInTaskbar) 4249IntPtr retInt = IntPtr.Zero ; 4479(_dialogPreviousActiveHandle != IntPtr.Zero) && 5996if (hMonitor != IntPtr.Zero) 6239new HandleRef(null, IntPtr.Zero), 6359IntPtr.Zero, 6382if (_ownerHandle == IntPtr.Zero) 6404SetOwnerHandle(IntPtr.Zero); 6412UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), WM_APPLYTASKBARITEMINFO, IntPtr.Zero, IntPtr.Zero); 6747nativeTB.hIcon = IntPtr.Zero; 6864if (manager.Dirty && Handle != IntPtr.Zero) 6931SetOwnerHandle(IntPtr.Zero); 7236private IntPtr _ownerHandle = IntPtr.Zero; // no need to dispose this 7290private IntPtr _dialogOwnerHandle = IntPtr.Zero; 7392return IntPtr.Zero; 7411if ( monitor != IntPtr.Zero ) 7818return DpiUtil.GetProcessDpiAwareness(IntPtr.Zero) == NativeMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE; 7833var nullHandle = new HandleRef(null, IntPtr.Zero); 7837IntPtr.Zero, 7839IntPtr.Zero);
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
46return IntPtr.Zero;
PresentationUI (5)
MS\Internal\Documents\Application\FileController.cs (1)
455IntPtr.Zero, originalUri, doc.DestinationToken.Location);
MS\Internal\Documents\PeoplePickerWrapper.cs (4)
178pPersistQuery = IntPtr.Zero, //We aren't persisting this query anywhere 179pFormParameters = IntPtr.Zero //We aren't pre-populating the form 267if( hWndParent != IntPtr.Zero ) 326Invariant.Assert(_ptrToDsObjectNames != IntPtr.Zero, "Invalid pointer to DsObjectNames data.");
ReachFramework (23)
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
76this._compstuiHandle = UnsafeNativeMethods.LoadLibraryExW("compstui.dll", IntPtr.Zero, SafeLoadLibraryFlags);
MS\Internal\Printing\Configuration\DevMode.cs (1)
455if (devModeWPointer == IntPtr.Zero)
MS\Internal\Printing\Configuration\SafeWinSpoolPrinterHandle.cs (2)
16: base(IntPtr.Zero, true) 26return (base.handle == IntPtr.Zero);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
64if (hdc != IntPtr.Zero)
PrintConfig\FallbackPTProvider.cs (7)
55if (!UnsafeNativeMethods.OpenPrinterW(deviceName, out this._deviceHandle, new HandleRef(this, IntPtr.Zero))) 510result = UnsafeNativeMethods.DocumentPropertiesW(new HandleRef(this, IntPtr.Zero), this._deviceHandle, this._deviceName, outPtr, buffer, flags); 752if (pPrinterName != IntPtr.Zero) 759if (pPortName != IntPtr.Zero) 766if (pDriverName != IntPtr.Zero) 773if (pDevMode != IntPtr.Zero) 818if (pDevMode != IntPtr.Zero)
PrintConfig\PTProvider.cs (9)
44private SafePTProviderHandle() : base(IntPtr.Zero, true) 58return (IsClosed || (handle == IntPtr.Zero)); 422if (umDevMode != IntPtr.Zero) 425umDevMode = IntPtr.Zero; 458IntPtr umDevMode = IntPtr.Zero; 487if (umDevMode != IntPtr.Zero) 490umDevMode = IntPtr.Zero; 791uint hResult = UnsafeNativeMethods.CreateStreamOnHGlobal(SafeMemoryHandle.Wrap(IntPtr.Zero), true, out result); 811stream.Seek(0, 0 /*STREAM_SEEK_SET*/ , IntPtr.Zero);
PrintSystemExceptions\PrintSystemException.cs (2)
271IntPtr.Zero, 276IntPtr.Zero);
Replay (1)
src\Compilers\Core\CommandLine\NativeMethods.cs (1)
54internal static readonly IntPtr NullPtr = IntPtr.Zero;
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.cs (1)
211var isInException = Marshal.GetExceptionPointers() != IntPtr.Zero;
System.CodeDom (3)
System\CodeDom\Compiler\Executor.cs (3)
28ExecWaitWithCapture(IntPtr.Zero, cmd, currentDir, tempFiles, ref outputName, ref errorName); 31ExecWaitWithCapture(IntPtr.Zero, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName); 35if (userToken != IntPtr.Zero)
System.Data.Odbc (15)
Common\System\Data\ProviderBase\DbBuffer.cs (5)
17protected DbBuffer(int initialSize) : base(IntPtr.Zero, true) 28if (IntPtr.Zero == base.handle) 45return (IntPtr.Zero == base.handle); 375base.handle = IntPtr.Zero; 376if (IntPtr.Zero != ptr)
System\Data\Odbc\OdbcDataReader.cs (1)
2420cbActual = IntPtr.Zero;
System\Data\Odbc\OdbcHandle.cs (8)
17protected OdbcHandle(ODBC32.SQL_HANDLE handleType, OdbcHandle? parentHandle) : base(IntPtr.Zero, true) 31retcode = Interop.Odbc.SQLAllocHandle(handleType, IntPtr.Zero, out base.handle); 55if (IntPtr.Zero != base.handle) 78internal OdbcHandle(OdbcStatementHandle parentHandle, ODBC32.SQL_ATTR attribute) : base(IntPtr.Zero, true) 98if (IntPtr.Zero != base.handle) 131return (IntPtr.Zero == base.handle); 139base.handle = IntPtr.Zero; 141if (IntPtr.Zero != handle)
System\Data\Odbc\OdbcParameter.cs (1)
1074parameterBuffer.WriteIntPtr(_preparedIntOffset, IntPtr.Zero);
System.Diagnostics.Process (4)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
26: this(IntPtr.Zero)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
69EntryPointAddress = IntPtr.Zero // unknown
System\Diagnostics\Process.Linux.cs (1)
214minWorkingSet = IntPtr.Zero; // no defined limit available
System\Diagnostics\Process.Unix.cs (1)
1061public IntPtr MainWindowHandle => IntPtr.Zero;
System.Diagnostics.StackTrace (5)
System\Diagnostics\StackTraceSymbols.cs (5)
119if (loadedPeAddress == IntPtr.Zero && assemblyPath == null && inMemoryPdbAddress == IntPtr.Zero) 127provider = inMemoryPdbAddress != IntPtr.Zero ? 145Debug.Assert(inMemoryPdbAddress != IntPtr.Zero); 171if (loadedPeAddress != IntPtr.Zero && loadedPeSize > 0)
System.Drawing.Common.Tests (87)
mono\System.Drawing\GraphicsTests.cs (1)
2147Assert.Throws<ArgumentException>(() => g.ReleaseHdcInternal(IntPtr.Zero));
System\Drawing\BitmapTests.cs (18)
197yield return new object[] { 10, 10, 0, PixelFormat.Format8bppIndexed, IntPtr.Zero }; 198yield return new object[] { 5, 15, int.MaxValue, PixelFormat.Format32bppArgb, IntPtr.Zero }; 199yield return new object[] { 5, 15, int.MinValue, PixelFormat.Format24bppRgb, IntPtr.Zero }; 200yield return new object[] { 1, 1, 1, PixelFormat.Format1bppIndexed, IntPtr.Zero }; 226AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, 0, PixelFormat.Format16bppArgb1555, IntPtr.Zero)); 241AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, 0, PixelFormat.Format16bppArgb1555, IntPtr.Zero)); 258AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, 1, 0, format, IntPtr.Zero)); 601Assert.NotEqual(IntPtr.Zero, handle); 655Assert.Throws<ExternalException>(() => Image.FromHbitmap(IntPtr.Zero)); 698Assert.NotEqual(IntPtr.Zero, handle); 760AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromHicon(IntPtr.Zero)); 774AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromResource(IntPtr.Zero, "Name")); 781AssertExtensions.Throws<ArgumentException>(null, () => Bitmap.FromResource(IntPtr.Zero, "Name")); 1117Assert.Equal(IntPtr.Zero, bitmapData.Scan0); 1138Assert.Equal(IntPtr.Zero, bitmapData.Scan0); 1167Assert.Equal(IntPtr.Zero, bitmapData.Scan0); 1179Assert.Equal(IntPtr.Zero, bitmapData.Scan0); 1214data.Scan0 = IntPtr.Zero;
System\Drawing\BrushTests.cs (2)
13brush.PublicSetNativeBrush(IntPtr.Zero); 16brush.PublicSetNativeBrush(IntPtr.Zero);
System\Drawing\BufferedGraphicsTests.cs (1)
120graphics.Render(IntPtr.Zero);
System\Drawing\FontTests.cs (4)
461AssertExtensions.Throws<ArgumentException>(null, () => Font.FromHdc(IntPtr.Zero)); 483AssertExtensions.Throws<ArgumentException>(null, () => Font.FromHfont(IntPtr.Zero)); 816Assert.NotEqual(IntPtr.Zero, hfont); 829Assert.NotEqual(IntPtr.Zero, hfont);
System\Drawing\GraphicsTests.cs (9)
26Assert.NotEqual(IntPtr.Zero, hdc); 93using Graphics graphics = Graphics.FromHdc(hdc, IntPtr.Zero); 110AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero)); 116Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdcInternal(IntPtr.Zero)); 122Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdc(IntPtr.Zero, 10)); 191AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdc(IntPtr.Zero)); 192AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(IntPtr.Zero)); 203AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdc(IntPtr.Zero)); 204AssertExtensions.Throws<ArgumentException>(null, () => graphics.ReleaseHdcInternal(IntPtr.Zero));
System\Drawing\IconTests.cs (2)
325Assert.NotEqual(IntPtr.Zero, handle); 700AssertExtensions.Throws<ArgumentException>("handle", null, () => Icon.FromHandle(IntPtr.Zero));
System\Drawing\Imaging\BitmapDataTests.cs (1)
15Assert.Equal(IntPtr.Zero, bd.Scan0);
System\Drawing\Imaging\EncoderParameterTests.cs (12)
176yield return new object[] { 0, EncoderParameterValueType.ValueTypeAscii, IntPtr.Zero }; 177yield return new object[] { 0, EncoderParameterValueType.ValueTypeByte, IntPtr.Zero }; 178yield return new object[] { 0, EncoderParameterValueType.ValueTypeLong, IntPtr.Zero }; 179yield return new object[] { 0, EncoderParameterValueType.ValueTypeLongRange, IntPtr.Zero }; 180yield return new object[] { 0, EncoderParameterValueType.ValueTypeRational, IntPtr.Zero }; 181yield return new object[] { 0, EncoderParameterValueType.ValueTypeRationalRange, IntPtr.Zero }; 182yield return new object[] { 0, EncoderParameterValueType.ValueTypeShort, IntPtr.Zero }; 183yield return new object[] { 0, EncoderParameterValueType.ValueTypeUndefined, IntPtr.Zero }; 184yield return new object[] { 0, EncoderParameterValueType.ValueTypeUndefined, IntPtr.Zero }; 210Assert.Throws<InvalidOperationException>(() => new EncoderParameter(s_anyEncoder, 1, (EncoderParameterValueType)999, IntPtr.Zero)); 310Assert.Throws(expected, () => new EncoderParameter(s_anyEncoder, numberOfValues, type, IntPtr.Zero)); 320IntPtr anyValue = IntPtr.Zero;
System\Drawing\Imaging\MetafileTests.cs (28)
43AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, false)); 158AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, EmfType.EmfOnly)); 181AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, EmfType.EmfOnly, description)); 277AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, _rectangleF)); 278AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, _rectangleF, MetafileFrameUnit.Pixel)); 280new Metafile(IntPtr.Zero, _rectangleF, MetafileFrameUnit.Pixel, EmfType.EmfOnly)); 282new Metafile(IntPtr.Zero, _rectangleF, MetafileFrameUnit.Pixel, EmfType.EmfOnly, "description")); 284AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, _rectangle)); 285AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(IntPtr.Zero, _rectangle, MetafileFrameUnit.Pixel)); 287new Metafile(IntPtr.Zero, _rectangle, MetafileFrameUnit.Pixel, EmfType.EmfOnly)); 289new Metafile(IntPtr.Zero, _rectangle, MetafileFrameUnit.Pixel, EmfType.EmfOnly, "description")); 389AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero)); 390AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, EmfType.EmfOnly)); 391AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, EmfType.EmfOnly, "description")); 617AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangleF)); 618AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.GdiCompatible)); 620new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly)); 622new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, "description")); 624AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangle)); 625AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible)); 627new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly)); 629new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, "description")); 787AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, IntPtr.Zero, _rectangle)); 788AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible)); 790new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly)); 792new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, "description")); 848AssertExtensions.Throws<ArgumentException>(null, () => Metafile.GetMetafileHeader(IntPtr.Zero)); 911Assert.NotEqual(IntPtr.Zero, metafile.GetHenhmetafile());
System\Drawing\Printing\PrinterSettingsTests.cs (1)
581AssertExtensions.Throws<ArgumentException>(null, () => printerSettings.SetHdevmode(IntPtr.Zero));
System\Drawing\RegionTests.cs (7)
914Assert.NotEqual(IntPtr.Zero, handle1); 930AssertExtensions.Throws<ArgumentException>(null, () => Region.FromHrgn(IntPtr.Zero)); 938Assert.NotEqual(IntPtr.Zero, handle); 942Assert.Equal(IntPtr.Zero, region.GetHrgn(s_graphic)); 949Assert.Equal(IntPtr.Zero, region.GetHrgn(s_graphic)); 953Assert.NotEqual(IntPtr.Zero, handle); 974AssertExtensions.Throws<ArgumentNullException>("regionHandle", () => region.ReleaseHrgn(IntPtr.Zero));
System\Drawing\Text\PrivateFontCollectionTests.cs (1)
159AssertExtensions.Throws<ArgumentException>(null, () => fontCollection.AddMemoryFont(IntPtr.Zero, 100));
System.IO.Compression (2)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (2)
20internal static readonly IntPtr ZNullPtr = IntPtr.Zero; 172SetHandle(IntPtr.Zero);
System.IO.Compression.Brotli (13)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBrotliHandle.cs (4)
11public SafeBrotliEncoderHandle() : base(IntPtr.Zero, true) { } 19public override bool IsInvalid => handle == IntPtr.Zero; 24public SafeBrotliDecoderHandle() : base(IntPtr.Zero, true) { } 32public override bool IsInvalid => handle == IntPtr.Zero;
System\IO\Compression\dec\BrotliDecoder.cs (3)
19_state = Interop.Brotli.BrotliDecoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
System\IO\Compression\enc\BrotliEncoder.cs (6)
27_state = Interop.Brotli.BrotliEncoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero); 42_state = Interop.Brotli.BrotliEncoderCreateInstance(IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
System.IO.MemoryMappedFiles (3)
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (3)
84IntPtr.Zero, // don't specify an address; let the system choose one 99IntPtr.Zero, 108if (addr == IntPtr.Zero) // note that shim uses null pointer, not non-null MAP_FAILED sentinel
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (2)
340ProtectedInvokeCallback(result, IntPtr.Zero); 346ProtectedInvokeCallback(null, IntPtr.Zero);
System.Net.Mail (5)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (3)
324base.Complete(IntPtr.Zero); 355if (userToken != IntPtr.Zero || context == null) 367base.Complete(IntPtr.Zero);
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (2)
340ProtectedInvokeCallback(result, IntPtr.Zero); 346ProtectedInvokeCallback(null, IntPtr.Zero);
System.Net.Primitives (2)
System\Net\NetworkCredential.cs (2)
161IntPtr ptr = IntPtr.Zero; 170if (ptr != IntPtr.Zero)
System.Net.Quic (43)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
26if (ret == IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
102if (handle == IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Name.cs (2)
52base(IntPtr.Zero, ownsHandle: true) 64base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (4)
67base(IntPtr.Zero, ownsHandle: true) 74SetHandle(IntPtr.Zero); 80get { return handle == IntPtr.Zero; } 104base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (3)
75base(IntPtr.Zero, ownsHandle: true) 87SetHandle(IntPtr.Zero); 93get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (8)
12base(IntPtr.Zero, ownsHandle: true) 19SetHandle(IntPtr.Zero); 25get { return handle == IntPtr.Zero; } 32base(IntPtr.Zero, ownsHandle: true) 39SetHandle(IntPtr.Zero); 45get { return handle == IntPtr.Zero; } 52base(IntPtr.Zero, ownsHandle: true) 60base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (3)
16base(IntPtr.Zero, ownsHandle: true) 23SetHandle(IntPtr.Zero); 44return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (2)
28SetHandle(IntPtr.Zero); 38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (9)
31base(IntPtr.Zero, ownsHandle: true) 38SetHandle(IntPtr.Zero); 44get { return handle == IntPtr.Zero; } 51base(IntPtr.Zero, ownsHandle: true) 58SetHandle(IntPtr.Zero); 64get { return handle == IntPtr.Zero; } 71base(IntPtr.Zero, ownsHandle: true) 78SetHandle(IntPtr.Zero); 84get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (3)
13base(IntPtr.Zero, ownsHandle: true) 20SetHandle(IntPtr.Zero); 26get { return handle == IntPtr.Zero; }
System\Net\Quic\Internal\MsQuicApi.cs (1)
79IntPtr msQuicHandle = IntPtr.Zero;
System\Net\Quic\Internal\MsQuicConfiguration.cs (3)
17=> certificate is X509Certificate2 certificate2 && certificate2.Handle != IntPtr.Zero && certificate2.HasPrivateKey; 225(void*)IntPtr.Zero, 277PrivateKeyPassword = (sbyte*)IntPtr.Zero
System\Net\Quic\Internal\MsQuicSafeHandle.cs (2)
28public override bool IsInvalid => handle == IntPtr.Zero; 62SetHandle(IntPtr.Zero);
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
83if (certificatePtr != IntPtr.Zero)
System.Net.Requests (8)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (3)
324base.Complete(IntPtr.Zero); 355if (userToken != IntPtr.Zero || context == null) 367base.Complete(IntPtr.Zero);
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (2)
340ProtectedInvokeCallback(result, IntPtr.Zero); 346ProtectedInvokeCallback(null, IntPtr.Zero);
System\Net\TimerThread.cs (3)
205if (_thisHandle == IntPtr.Zero) 245if (_thisHandle != IntPtr.Zero) 248_thisHandle = IntPtr.Zero;
System.Net.Security (88)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (5)
24if (_data == IntPtr.Zero || _length == 0) 43if (_data == IntPtr.Zero || _length == 0) 54internal unsafe ReadOnlySpan<byte> Span => (_data != IntPtr.Zero && _length != 0) ? 60if (_data != IntPtr.Zero) 63_data = IntPtr.Zero;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
26if (ret == IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
102if (handle == IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (2)
108handle = IntPtr.Zero; 123handle = IntPtr.Zero;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (11)
276Interop.Ssl.SslCtxSetAlpnSelectCb(sslCtx, &AlpnServerSelectCallback, IntPtr.Zero); 421Debug.Assert(Interop.Ssl.SslGetData(sslHandle) == IntPtr.Zero); 737if (sslData == IntPtr.Zero) 792Debug.Assert(ssl != IntPtr.Zero); 793Debug.Assert(session != IntPtr.Zero); 802if (ptr != IntPtr.Zero) 806Debug.Assert(name != IntPtr.Zero); 825Debug.Assert(ctx != IntPtr.Zero && session != IntPtr.Zero); 828if (ptr == IntPtr.Zero) 842Debug.Assert(name != IntPtr.Zero);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (5)
436get { return handle == IntPtr.Zero; } 461Interop.Ssl.SslSetData(handle, IntPtr.Zero); 466SetHandle(IntPtr.Zero); 494public SafeSslHandle() : base(IntPtr.Zero, true) 498internal SafeSslHandle(IntPtr validSslPointer, bool ownsHandle) : base(IntPtr.Zero, ownsHandle)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (10)
82: base(IntPtr.Zero, true) 93get { return handle == IntPtr.Zero; } 135Interop.Ssl.SslCtxSetData(handle, IntPtr.Zero); 152SetHandle(IntPtr.Zero); 170Debug.Assert(_sslSessions != null && session != IntPtr.Zero); 172if (_sslSessions == null || namePtr == IntPtr.Zero) 187IntPtr oldSession = IntPtr.Zero; 200if (oldSession != IntPtr.Zero) 227IntPtr oldSession = IntPtr.Zero; 258Debug.Assert(Interop.Ssl.SslGetData(sslHandle) == IntPtr.Zero);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Name.cs (2)
52base(IntPtr.Zero, ownsHandle: true) 64base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (4)
67base(IntPtr.Zero, ownsHandle: true) 74SetHandle(IntPtr.Zero); 80get { return handle == IntPtr.Zero; } 104base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (3)
75base(IntPtr.Zero, ownsHandle: true) 87SetHandle(IntPtr.Zero); 93get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (8)
12base(IntPtr.Zero, ownsHandle: true) 19SetHandle(IntPtr.Zero); 25get { return handle == IntPtr.Zero; } 32base(IntPtr.Zero, ownsHandle: true) 39SetHandle(IntPtr.Zero); 45get { return handle == IntPtr.Zero; } 52base(IntPtr.Zero, ownsHandle: true) 60base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs (9)
52get { return handle == IntPtr.Zero; } 58SetHandle(IntPtr.Zero); 63: base(IntPtr.Zero, true) 134: base(IntPtr.Zero, true) 140get { return handle == IntPtr.Zero; } 146SetHandle(IntPtr.Zero); 159: base(IntPtr.Zero, true) 165get { return handle == IntPtr.Zero; } 171SetHandle(IntPtr.Zero);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (3)
16base(IntPtr.Zero, ownsHandle: true) 23SetHandle(IntPtr.Zero); 44return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (2)
28SetHandle(IntPtr.Zero); 38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (9)
31base(IntPtr.Zero, ownsHandle: true) 38SetHandle(IntPtr.Zero); 44get { return handle == IntPtr.Zero; } 51base(IntPtr.Zero, ownsHandle: true) 58SetHandle(IntPtr.Zero); 64get { return handle == IntPtr.Zero; } 71base(IntPtr.Zero, ownsHandle: true) 78SetHandle(IntPtr.Zero); 84get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (3)
13base(IntPtr.Zero, ownsHandle: true) 20SetHandle(IntPtr.Zero); 26get { return handle == IntPtr.Zero; }
src\libraries\Common\src\System\Net\Security\Unix\SafeDeleteContext.cs (1)
26get { return (IntPtr.Zero == handle); }
System\Net\CertificateValidationPal.Unix.cs (6)
42if (remoteCertificate == IntPtr.Zero) 68if (certPtr != IntPtr.Zero) 86if (remoteCertificate != IntPtr.Zero) 109return Interop.Ssl.SslGetCertificate(ssl) != IntPtr.Zero; 124Debug.Assert(session != IntPtr.Zero); 125return Interop.Ssl.SslSessionGetData(session) != IntPtr.Zero;
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (2)
59public override bool IsInvalid => handle == IntPtr.Zero; 64SetHandle(IntPtr.Zero);
System\Net\Security\SslStream.Protocol.cs (1)
289if (certificate.Handle != IntPtr.Zero)
System.Net.Sockets (1)
System\Net\Sockets\SocketPal.Unix.cs (1)
628IntPtr fd = IntPtr.Zero;
System.Net.WebSockets (3)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (2)
20internal static readonly IntPtr ZNullPtr = IntPtr.Zero; 172SetHandle(IntPtr.Zero);
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
161_stream.NextIn = IntPtr.Zero;
System.Private.CoreLib (219)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (4)
771IntPtr pReversePInvokePropagationCallback = IntPtr.Zero; 772IntPtr pReversePInvokePropagationContext = IntPtr.Zero; 845if (pCatchHandler == null && pReversePInvokePropagationCallback == IntPtr.Zero && !isExceptionIntercepted 862Debug.Assert(pCatchHandler != null || pReversePInvokePropagationCallback != IntPtr.Zero || unwoundReversePInvoke || isExceptionIntercepted, "We should have a handler if we're starting the second pass");
src\libraries\Common\src\Interop\Interop.ICU.cs (2)
17Debug.Assert(icuuc != IntPtr.Zero); 18Debug.Assert(icuin != IntPtr.Zero);
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
32GetMessage(errorCode, IntPtr.Zero); 37if (moduleHandle != IntPtr.Zero) 46int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero); 61int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (10)
70if (functionHandle != IntPtr.Zero) 83ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 122ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 123ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 193ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 194ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 235if (functionHandle != IntPtr.Zero) 264ArgumentOutOfRangeException.ThrowIfNotEqual(loadContext, IntPtr.Zero); 265ArgumentOutOfRangeException.ThrowIfNotEqual(reserved, IntPtr.Zero); 318if (delegateTypeNative == IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\IsolatedComponentLoadContext.cs (1)
51return IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\CriticalHandleZeroOrMinusOneIsInvalid.cs (2)
13: base(IntPtr.Zero) 17public override bool IsInvalid => handle == IntPtr.Zero || handle == new IntPtr(-1);
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeHandleZeroOrMinusOneIsInvalid.cs (2)
12protected SafeHandleZeroOrMinusOneIsInvalid(bool ownsHandle) : base(IntPtr.Zero, ownsHandle) 16public override bool IsInvalid => handle == IntPtr.Zero || handle == new IntPtr(-1);
src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
89if (argument == IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\ComAwareWeakReference.cs (1)
64Debug.Assert(pComWeakRef != IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackFrameExtensions.cs (3)
13return stackFrame.GetNativeImageBase() != IntPtr.Zero; 35return IntPtr.Zero; 40return IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventProvider.cs (1)
110if (eventHandle != IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1263return IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (9)
250private IntPtr m_writeEventStringEventHandle = IntPtr.Zero; 814Debug.Assert(eventHandle != IntPtr.Zero); 1937decoded = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1); 2158args[i] = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1); 2265m_etwProvider?.WriteEvent(ref descr, IntPtr.Zero, null, null, 1, (IntPtr)((void*)&data)); 2269if (m_writeEventStringEventHandle == IntPtr.Zero) 2278if (m_writeEventStringEventHandle == IntPtr.Zero) 2948if (!m_etwProvider.WriteEvent(ref manifestDescr, IntPtr.Zero, null, null, 2, (IntPtr)dataDescrs)) 3527metadata.EventHandle = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.cs (2)
261ThreadPoolIOEnqueue((IntPtr)registeredWaitHandle.GetHashCode(), IntPtr.Zero, registeredWaitHandle.Repeating); 300ThreadPoolIODequeue((IntPtr)registeredWaitHandle.GetHashCode(), IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\NameInfo.cs (2)
77if ((eventHandle = eventHandleTable[descriptor.EventId]) == IntPtr.Zero) 81if ((eventHandle = eventHandleTable[descriptor.EventId]) == IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventHandleTable.cs (1)
26IntPtr ret = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (3)
420Debug.Assert(eventHandle != IntPtr.Zero); 530Debug.Assert(eventHandle != IntPtr.Zero); 598Debug.Assert(eventHandle != IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (4)
29return Interop.Kernel32.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType | CAL_RETURN_NUMBER, IntPtr.Zero, 0, out data) != 0; 39int ret = Interop.Kernel32.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType, (IntPtr)buffer, BUFFER_LENGTH, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (12)
22return IntPtr.Zero; 26int ret = Interop.Kernel32.LCMapStringEx(cultureName, Interop.Kernel32.LCMAP_SORTHANDLE, null, 0, &handle, IntPtr.Size, null, null, IntPtr.Zero); 41return IntPtr.Zero; 140int sortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName, 162if (Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName, 214string? localeName = _sortHandle != IntPtr.Zero ? null : _sortName; 267string? localeName = _sortHandle != IntPtr.Zero ? null : _sortName; 395int sortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName, 409if (Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName, 494actualSortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName, 546sortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName, 574return Interop.Kernel32.IsNLSDefinedString(Interop.Kernel32.COMPARE_STRING, 0, IntPtr.Zero, pText, text.Length);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (3)
126Interop.Kernel32.EnumSystemLocalesEx(&EnumSystemLocalesProc, Interop.Kernel32.LOCALE_SPECIFICDATA | Interop.Kernel32.LOCALE_SUPPLEMENTAL, &context, IntPtr.Zero); 497Interop.Kernel32.EnumSystemLocalesEx(&EnumAllSystemLocalesProc, flags, &context, IntPtr.Zero); 525Interop.Kernel32.EnumSystemLocalesEx(&EnumAllSystemLocalesProc, Interop.Kernel32.LOCALE_REPLACEMENT, &context, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (1)
179IntPtr byteOffset = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.Utf8.cs (2)
174IntPtr byteOffset = IntPtr.Zero; 484IntPtr byteOffset = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.Nls.cs (1)
25int ret = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _textInfoName,
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (7)
40if (_directoryHandle == IntPtr.Zero) 72if (handle == IntPtr.Zero) 77return IntPtr.Zero; 86IntPtr handle = Interlocked.Exchange(ref _directoryHandle, IntPtr.Zero); 87if (handle != IntPtr.Zero) 217_directoryHandle = IntPtr.Zero; 219while (_directoryHandle == IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\QCallHandles.cs (2)
109_assembly = assembly?.GetUnderlyingNativeHandle() ?? IntPtr.Zero; 122_handle = type?.GetUnderlyingNativeHandle() ?? IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
78IntPtr handle = Interlocked.Exchange(ref _handle, IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (3)
41public readonly bool IsAllocated => _handle != IntPtr.Zero; 94if (handle != IntPtr.Zero) 96_handle = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (15)
562if (ptr == IntPtr.Zero) 606if (ptr == IntPtr.Zero) 644public static Exception? GetExceptionForHR(int errorCode) => GetExceptionForHR(errorCode, IntPtr.Zero); 922return IntPtr.Zero; 944return IntPtr.Zero; 967return IntPtr.Zero; 985return IntPtr.Zero; 1008return IntPtr.Zero; 1026return IntPtr.Zero; 1167if (s == IntPtr.Zero) 1182if (s == IntPtr.Zero) 1192if (s == IntPtr.Zero) 1202if (s == IntPtr.Zero) 1212if (s == IntPtr.Zero) 1224return IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (2)
33private static bool IsNullOrWin32Atom(IntPtr ptr) => ptr == IntPtr.Zero; 86return IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (6)
158if (_typeUnion._unionTypes._unknown != IntPtr.Zero) 165if (_typeUnion._unionTypes._record._recordInfo != IntPtr.Zero) 168if (_typeUnion._unionTypes._record._record != IntPtr.Zero) 185if (_typeUnion._unionTypes._unknown != IntPtr.Zero) 193if (versionedStream != null && versionedStream->_stream != IntPtr.Zero) 495if (_typeUnion._unionTypes._bstr == IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (8)
59return handle != IntPtr.Zero; 131return handle != IntPtr.Zero; 142if (handle == IntPtr.Zero) 178return address != IntPtr.Zero; 236return IntPtr.Zero; 241return IntPtr.Zero; 253IntPtr result = IntPtr.Zero; 261if (result == IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (3)
43public readonly bool IsAllocated => _handle != IntPtr.Zero; 128if (handle != IntPtr.Zero) 130_handle = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (3)
42public readonly bool IsAllocated => _handle != IntPtr.Zero; 102if (handle != IntPtr.Zero) 104_handle = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (3)
456return IntPtr.Zero; 798if (resolvedDll != IntPtr.Zero) 804return IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (4)
57Debug.Assert((IntPtr)valuesPtr != IntPtr.Zero); 77Debug.Assert((IntPtr)_slowContainsValuesPtr == IntPtr.Zero); 95Debug.Assert((IntPtr)_slowContainsValuesPtr != IntPtr.Zero); 107Debug.Assert((IntPtr)_slowContainsValuesPtr != IntPtr.Zero);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (6)
315IntPtr ptr = IntPtr.Zero; 326ptr = IntPtr.Zero; 332if (ptr != IntPtr.Zero) 353IntPtr ptr = IntPtr.Zero; 389ptr = IntPtr.Zero; 395if (ptr != IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelMonitor.Unix.cs (3)
15if (_nativeMonitor == IntPtr.Zero) 23if (_nativeMonitor == IntPtr.Zero) 29_nativeMonitor = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (3)
113UserUnregisterWaitHandleValue = UserUnregisterWaitHandle?.DangerousGetHandle() ?? IntPtr.Zero; 143UserUnregisterWaitHandleValue = IntPtr.Zero; 173if (handleValue != IntPtr.Zero && handleValue != InvalidHandleValue)
src\libraries\System.Private.CoreLib\src\System\Threading\Win32ThreadPoolNativeOverlapped.cs (2)
53while ((freePtr = Volatile.Read(ref s_freeList)) != IntPtr.Zero) 60overlapped->_nextFree = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.cs (1)
66IntPtr regionPtr = IntPtr.Zero;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
292if (dirHandle == IntPtr.Zero) 352if (dirHandle != IntPtr.Zero)
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (2)
67if (_type == IntPtr.Zero) 78internal bool IsNull => Unsafe.IsNullRef(ref _value) && _type == IntPtr.Zero;
src\System\ComAwareWeakReference.CoreCLR.cs (1)
53return IntPtr.Zero;
src\System\Delegate.CoreCLR.cs (7)
105if (_methodPtrAux == IntPtr.Zero) 107if (d._methodPtrAux != IntPtr.Zero) 118if (d._methodPtrAux == IntPtr.Zero) 153if (_methodPtrAux == IntPtr.Zero) 175if (_methodPtrAux == IntPtr.Zero) 473if (method == IntPtr.Zero) 555return (_methodPtrAux == IntPtr.Zero) ? _target : null;
src\System\Diagnostics\StackFrame.CoreCLR.cs (1)
73if (method.Value == IntPtr.Zero)
src\System\Diagnostics\StackFrameHelper.cs (1)
164if (mh == IntPtr.Zero)
src\System\Reflection\LoaderAllocator.cs (1)
34if (m_nativeLoaderAllocator == IntPtr.Zero)
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
147if (loaderAllocatorHandle != IntPtr.Zero)
src\System\Runtime\CompilerServices\GenericsHelpers.cs (6)
27return GenericHandleWorker(methodHnd, IntPtr.Zero, signature, 0xFFFFFFFF, IntPtr.Zero); 33return GenericHandleWorker(methodHnd, IntPtr.Zero, pArgs->signature, pArgs->dictionaryIndexAndSlot, pArgs->module); 39return GenericHandleWorker(IntPtr.Zero, classHnd, signature, 0xFFFFFFFF, IntPtr.Zero); 45return GenericHandleWorker(IntPtr.Zero, classHnd, pArgs->signature, pArgs->dictionaryIndexAndSlot, pArgs->module);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
495if (buffer == IntPtr.Zero) 540if (tls->ArgBuffer != IntPtr.Zero && *(int*)tls->ArgBuffer == 1 /* TAILCALLARGBUFFER_INSTARG_ONLY */)
src\System\Runtime\CompilerServices\StaticsHelpers.cs (1)
203if (objHandle != IntPtr.Zero)
src\System\Runtime\InteropServices\ComWrappers.cs (6)
46unknown = IntPtr.Zero; 67if (unknown == IntPtr.Zero) 201if (!TryGetOrCreateObjectForComInstanceInternal(this, externalComObject, IntPtr.Zero, flags, null, out obj)) 242return GetOrRegisterObjectForComInstance(externalComObject, flags, wrapper, IntPtr.Zero); 296if (innerMaybe != IntPtr.Zero && !flags.HasFlag(CreateObjectFlags.Aggregation)) 392ppObject = IntPtr.Zero;
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (2)
116IntPtr pNativeHome = IntPtr.Zero; 183IntPtr pNativeHome = IntPtr.Zero;
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (1)
162if (ptrAssemblyLoadContext == IntPtr.Zero)
src\System\RuntimeHandles.cs (10)
61if (handle == IntPtr.Zero) 441if (handle == IntPtr.Zero) 511else if (_handle.Value != IntPtr.Zero) 515return !(_handle.Value == IntPtr.Zero); 699IntPtr retTypeHandle = IntPtr.Zero; 714if (retTypeHandle == IntPtr.Zero) 907return m_handle == IntPtr.Zero; 996public IntPtr Value => m_value != null ? m_value.Value.Value : IntPtr.Zero; 1370return m_handle == IntPtr.Zero; 1444public IntPtr Value => m_ptr != null ? m_ptr.Value.Value : IntPtr.Zero;
src\System\RuntimeType.CoreCLR.cs (6)
2420if (m_cache != IntPtr.Zero) 2435if (m_cache != IntPtr.Zero) 2451if (m_cache == IntPtr.Zero) 2455IntPtr gcHandle = Interlocked.CompareExchange(ref m_cache, newgcHandle, IntPtr.Zero); 2456if (gcHandle != IntPtr.Zero) 2476if (Volatile.Read(ref m_cache) == IntPtr.Zero)
src\System\StubHelpers.cs (24)
57return IntPtr.Zero; 124if (IntPtr.Zero == cstr) 202return IntPtr.Zero; 221if (pNative == IntPtr.Zero) 236return IntPtr.Zero; 252if (pNativeBuffer != IntPtr.Zero) 289if (IntPtr.Zero == bstr) 343return IntPtr.Zero; 380if (IntPtr.Zero == pNative) 390if (IntPtr.Zero != pNative) 403return IntPtr.Zero; 426if (IntPtr.Zero == bstr) 650if (nativeHome != IntPtr.Zero) 806*pNativeHome = IntPtr.Zero; 816if (*pNativeHome == IntPtr.Zero) 829if (*pNativeHome == IntPtr.Zero) 902Debug.Assert(pvArrayMarshaler != IntPtr.Zero, "pvArrayMarshaler must not be null"); 957IntPtr.Zero, // not needed as we marshal primitive VTs only 960IntPtr.Zero); // not needed as we marshal primitive VTs only 996IntPtr.Zero); // unmanaged buffer will be allocated 1122return IntPtr.Zero; 1183if (pNativeHome == IntPtr.Zero) 1199if (pNativeHome == IntPtr.Zero) 1218if (pNativeHome != IntPtr.Zero)
src\System\Threading\Thread.CoreCLR.cs (1)
79if (thread == IntPtr.Zero)
System.Private.Windows.Core (2)
Windows\Win32\System\Variant\VARIANT.cs (2)
393result[i] = data[i] == IntPtr.Zero ? null : ComHelpers.GetObjectForIUnknown((IUnknown*)data[i]); 597if (data == IntPtr.Zero)
System.Private.Windows.Core.TestUtilities (1)
CommonTestHelper.cs (1)
55IntPtr.Zero,
System.Reflection.Metadata (6)
System\Reflection\Internal\MemoryBlocks\NativeHeapMemoryBlock.cs (2)
46IntPtr ptr = Interlocked.Exchange(ref _pointer, IntPtr.Zero); 47if (ptr != IntPtr.Zero)
System\Reflection\Metadata\MetadataReaderProvider.cs (2)
50/// <exception cref="ArgumentNullException"><paramref name="start"/> is <see cref="IntPtr.Zero"/>.</exception> 64/// <exception cref="ArgumentNullException"><paramref name="start"/> is <see cref="IntPtr.Zero"/>.</exception>
System\Reflection\PortableExecutable\PEReader.cs (2)
50/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is <see cref="IntPtr.Zero"/>.</exception> 68/// <exception cref="ArgumentNullException"><paramref name="peImage"/> is <see cref="IntPtr.Zero"/>.</exception>
System.Security.Cryptography (110)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
26if (ret == IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs (1)
86if (objCurveName != IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
102if (handle == IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs (5)
32s_evpMd5 != IntPtr.Zero ? s_evpMd5 : (s_evpMd5 = CryptoNative_EvpMd5()); 38s_evpSha1 != IntPtr.Zero ? s_evpSha1 : (s_evpSha1 = CryptoNative_EvpSha1()); 44s_evpSha256 != IntPtr.Zero ? s_evpSha256 : (s_evpSha256 = CryptoNative_EvpSha256()); 50s_evpSha384 != IntPtr.Zero ? s_evpSha384 : (s_evpSha384 = CryptoNative_EvpSha384()); 56s_evpSha512 != IntPtr.Zero ? s_evpSha512 : (s_evpSha512 = CryptoNative_EvpSha512());
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (9)
294IntPtr extraHandle = IntPtr.Zero; 295IntPtr evpPKeyHandle = IntPtr.Zero; 303Debug.Assert(evpPKeyHandle == IntPtr.Zero && extraHandle == IntPtr.Zero, "both handles should be null if provider is not supported"); 307if (evpPKeyHandle == IntPtr.Zero || extraHandle == IntPtr.Zero) 309Debug.Assert(evpPKeyHandle == IntPtr.Zero, "extraHandle should not be null if evpPKeyHandle is not null"); 317if (evpPKeyHandle != IntPtr.Zero || extraHandle != IntPtr.Zero)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs (1)
19Debug.Assert(rsa != IntPtr.Zero);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (2)
108handle = IntPtr.Zero; 123handle = IntPtr.Zero;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs (4)
67base(IntPtr.Zero, ownsHandle: true) 74SetHandle(IntPtr.Zero); 80get { return handle == IntPtr.Zero; } 104base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs (3)
75base(IntPtr.Zero, ownsHandle: true) 87SetHandle(IntPtr.Zero); 93get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs (8)
12base(IntPtr.Zero, ownsHandle: true) 19SetHandle(IntPtr.Zero); 25get { return handle == IntPtr.Zero; } 32base(IntPtr.Zero, ownsHandle: true) 39SetHandle(IntPtr.Zero); 45get { return handle == IntPtr.Zero; } 52base(IntPtr.Zero, ownsHandle: true) 60base(IntPtr.Zero, ownsHandle: true)
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs (3)
13base(IntPtr.Zero, ownsHandle: true) 25SetHandle(IntPtr.Zero); 31get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs (3)
16base(IntPtr.Zero, ownsHandle: true) 23SetHandle(IntPtr.Zero); 44return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs (4)
14base(IntPtr.Zero, ownsHandle: true) 21SetHandle(IntPtr.Zero); 27get { return handle == IntPtr.Zero; } 32Debug.Assert(handle != IntPtr.Zero);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs (4)
14base(IntPtr.Zero, ownsHandle: true) 21SetHandle(IntPtr.Zero); 27get { return handle == IntPtr.Zero; } 32Debug.Assert(handle != IntPtr.Zero);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs (3)
13base(IntPtr.Zero, ownsHandle: true) 20SetHandle(IntPtr.Zero); 26get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs (2)
13base(IntPtr.Zero, ownsHandle: true) 25get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs (3)
12base(IntPtr.Zero, ownsHandle: true) 19SetHandle(IntPtr.Zero); 25get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs (2)
28SetHandle(IntPtr.Zero); 38return handle == IntPtr.Zero || (_parent != null && _parent.IsInvalid);
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafePkcs7Handle.Unix.cs (3)
12base(IntPtr.Zero, ownsHandle: true) 19SetHandle(IntPtr.Zero); 25get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (9)
31base(IntPtr.Zero, ownsHandle: true) 38SetHandle(IntPtr.Zero); 44get { return handle == IntPtr.Zero; } 51base(IntPtr.Zero, ownsHandle: true) 58SetHandle(IntPtr.Zero); 64get { return handle == IntPtr.Zero; } 71base(IntPtr.Zero, ownsHandle: true) 78SetHandle(IntPtr.Zero); 84get { return handle == IntPtr.Zero; }
src\libraries\Common\src\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs (3)
13base(IntPtr.Zero, ownsHandle: true) 20SetHandle(IntPtr.Zero); 26get { return handle == IntPtr.Zero; }
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
189IntPtr hashAlgorithm = IntPtr.Zero; 256IntPtr hashAlgorithm = IntPtr.Zero;
System\Security\Cryptography\AesCcm.OpenSsl.cs (1)
162return IntPtr.Zero;
System\Security\Cryptography\AesGcm.OpenSsl.cs (1)
133return IntPtr.Zero;
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (2)
13Interop.Crypto.EvpChaCha20Poly1305() != IntPtr.Zero; 128return IntPtr.Zero;
System\Security\Cryptography\DSAOpenSsl.cs (1)
75if (handle == IntPtr.Zero)
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (1)
60if (handle == IntPtr.Zero)
System\Security\Cryptography\ECDsaOpenSsl.cs (1)
60if (handle == IntPtr.Zero)
System\Security\Cryptography\FixedMemoryKeyBox.cs (2)
12internal FixedMemoryKeyBox(ReadOnlySpan<byte> key) : base(IntPtr.Zero, ownsHandle: true) 29public override bool IsInvalid => handle == IntPtr.Zero;
System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs (1)
48Debug.Assert(evpType != IntPtr.Zero);
System\Security\Cryptography\HashProviderDispenser.Unix.cs (2)
41Debug.Assert(evpType != IntPtr.Zero); 59Debug.Assert(evpType != IntPtr.Zero);
System\Security\Cryptography\LiteHash.Unix.cs (3)
40Debug.Assert(algorithm != IntPtr.Zero); 125Debug.Assert(algorithm != IntPtr.Zero); 214Debug.Assert(algorithm != IntPtr.Zero);
System\Security\Cryptography\OidLookup.OpenSsl.cs (3)
20IntPtr friendlyNamePtr = IntPtr.Zero; 26Debug.Assert(friendlyNamePtr != IntPtr.Zero); 45if (sharedObject == IntPtr.Zero)
System\Security\Cryptography\OpenSslCipherLite.cs (1)
32Debug.Assert(algorithm != IntPtr.Zero);
System\Security\Cryptography\RC2Implementation.OpenSsl.cs (1)
53if (algorithm == IntPtr.Zero)
System\Security\Cryptography\RSAOpenSsl.cs (1)
43if (handle == IntPtr.Zero)
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (4)
26base(IntPtr.Zero, ownsHandle: true) 49ExtraHandle = IntPtr.Zero; 51SetHandle(IntPtr.Zero); 57get { return handle == IntPtr.Zero; }
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
138if (nextUpdatePtr == IntPtr.Zero)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (2)
27if (handle == IntPtr.Zero) 257get { return _cert == null ? IntPtr.Zero : _cert.DangerousGetHandle(); }
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (2)
218IntPtr lastCert = IntPtr.Zero; 886if (elementCertPtr == IntPtr.Zero)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
264public IntPtr Handle => Pal is null ? IntPtr.Zero : Pal.Handle;
System\Security\Cryptography\X509Certificates\X509Chain.cs (2)
69return IntPtr.Zero; 110if (customCertificate == null || customCertificate.Handle == IntPtr.Zero)
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
94return IntPtr.Zero;
System.Security.Cryptography.ProtectedData (11)
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
32GetMessage(errorCode, IntPtr.Zero); 37if (moduleHandle != IntPtr.Zero) 46int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero); 61int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
System\Security\Cryptography\ProtectedData.cs (7)
358Interop.Crypt32.CryptProtectData(in userDataBlob, null, ref optionalEntropyBlob, IntPtr.Zero, IntPtr.Zero, flags, out outputBlob) : 359Interop.Crypt32.CryptUnprotectData(in userDataBlob, IntPtr.Zero, ref optionalEntropyBlob, IntPtr.Zero, IntPtr.Zero, flags, out outputBlob); 375if (outputBlob.pbData == IntPtr.Zero) 402if (outputBlob.pbData != IntPtr.Zero)
System.Text.Encoding.CodePages (3)
Microsoft\Win32\SafeHandles\SafeAllocHHandle.cs (2)
21get { return new SafeAllocHHandle(IntPtr.Zero); } 26if (handle != IntPtr.Zero)
System\Text\BaseCodePageEncoding.cs (1)
408if (safeNativeMemoryHandle != null && safeNativeMemoryHandle.DangerousGetHandle() == IntPtr.Zero)
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
355if (hDc == IntPtr.Zero)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1582if (monitorPtr != IntPtr.Zero)
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
168if (monitor != IntPtr.Zero)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
997if (hwnd != IntPtr.Zero) 1020IntPtr capturedHwnd = IntPtr.Zero; 1027if (capturedHwnd != IntPtr.Zero && 1042(capturedHwnd == IntPtr.Zero ||
System.Windows.Forms (113)
System\Windows\Forms\ActiveX\AxHost.cs (3)
110private IntPtr _wndprocAddr = IntPtr.Zero; 1244if (!IsHandleCreated || _wndprocAddr == IntPtr.Zero) 3447_wndprocAddr = IntPtr.Zero;
System\Windows\Forms\Control.cs (9)
1330cp.Parent = _parent is null ? IntPtr.Zero : _parent.InternalHandle; 1335cp.Parent = IntPtr.Zero; 1357if (cp.Parent == IntPtr.Zero && IsActiveX) 4509if (cp.Parent == IntPtr.Zero && (cp.Style & (int)WINDOW_STYLE.WS_CHILD) != 0) 7431accObj.Handle = IntPtr.Zero; 7438nonClientAccessibleObject.Handle = IntPtr.Zero; 9206if (_window.Handle == IntPtr.Zero) 9264if (PInvoke.SetParent(this, parentHandle) == IntPtr.Zero) 10147if (value == IntPtr.Zero)
System\Windows\Forms\Control.Ime.cs (10)
698HIMC oldContext = PInvoke.ImmAssociateContext((HWND)handle, (HIMC)IntPtr.Zero); 699if (oldContext != IntPtr.Zero) 715if (inputContext == IntPtr.Zero) 717if (s_originalImeContext == IntPtr.Zero) 720if (inputContext != IntPtr.Zero) 748HIMC inputContext = (HIMC)IntPtr.Zero; 762if (inputContext == IntPtr.Zero) 808if (inputContext != IntPtr.Zero) 825if (inputContext != IntPtr.Zero) 934if (inputContext != IntPtr.Zero)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1506if (handle != IntPtr.Zero)
System\Windows\Forms\Controls\ListView\ListView.cs (7)
4104IntPtr hGlobalColumns = IntPtr.Zero; 4139Debug.Assert(result != IntPtr.Zero, "Groups not enabled"); 4141Debug.Assert(result != IntPtr.Zero, $"Doesn't contain group id: {lvItem.iGroupId}"); 4146if (lvItem.cColumns > maxColumns || hGlobalColumns == IntPtr.Zero) 4148if (hGlobalColumns != IntPtr.Zero) 4226if (hGlobalColumns != IntPtr.Zero) 5232if (result == IntPtr.Zero)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
87Parent = IntPtr.Zero,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
257if (s_moduleHandle == IntPtr.Zero) 2094if (txrg.lpstrText != IntPtr.Zero)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
472IntPtr handle = (value is not null) ? value.Handle : IntPtr.Zero;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
71? (int)IntPtr.Zero
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1073if (inputContext != IntPtr.Zero)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
673if (_dropDownOwnerWindow.Handle == IntPtr.Zero) 1750if (_hwndThatLostFocus == IntPtr.Zero)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
86if (_activeHwnd.Handle != IntPtr.Zero)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (3)
33_messageHookHandle == IntPtr.Zero, 72if (_messageHookHandle != IntPtr.Zero) 77Debug.Assert(_messageHookHandle != IntPtr.Zero, "Failed to install mouse hook");
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
585if (_nativeMenuCommandID == -1 || _nativeMenuHandle == IntPtr.Zero) 605if (_nativeMenuCommandID == -1 || _nativeMenuHandle == IntPtr.Zero)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (9)
294if (HTREEITEMInternal == IntPtr.Zero) 328if (HTREEITEMInternal != IntPtr.Zero && _treeView is not null && !_treeView.IsDisposed) 484if (HTREEITEMInternal == IntPtr.Zero && TreeView is not null) 613if (HTREEITEMInternal == IntPtr.Zero) 954if (HTREEITEMInternal == IntPtr.Zero) 1277if (HTREEITEMInternal != IntPtr.Zero) 1980if (HTREEITEMInternal != IntPtr.Zero) 1988HTREEITEMInternal = (HTREEITEM)IntPtr.Zero; 2125if (HTREEITEMInternal == IntPtr.Zero)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (2)
300if (node.HTREEITEMInternal != IntPtr.Zero) 436if (node.HTREEITEMInternal != IntPtr.Zero)
System\Windows\Forms\Controls\TreeView\TreeView.cs (17)
1093if (hItem == IntPtr.Zero) 1306return (hitem == IntPtr.Zero ? null : NodeFromHandle(hitem)); 1693IntPtr handle = (ImageList is null) ? IntPtr.Zero : ImageList.Handle; 1746IntPtr handle = IntPtr.Zero; 2002if ((handleOld != IntPtr.Zero) && (handleOld != handle)) 2013if (handle != IntPtr.Zero) 2422if (item.hItem == IntPtr.Zero) 2437if (item.hItem == IntPtr.Zero) 2462if (item.hItem == IntPtr.Zero) 2491if (nmtv->itemNew.hItem == IntPtr.Zero) 2524if (nmtv->itemNew.hItem != IntPtr.Zero) 2545if (nmtv->itemOld.hItem != IntPtr.Zero) 2557if (nmtvdi.item.hItem == IntPtr.Zero) 2559return (LRESULT)IntPtr.Zero; 2593if (nmtvdi.item.hItem == IntPtr.Zero) 3197if (item->hItem != IntPtr.Zero) 3352_mouseDownNode = IntPtr.Zero;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
581internal IntPtr GetHandleNoCreate() => IsHandleCreated ? Handle : IntPtr.Zero;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
87return IntPtr.Zero; 143return IntPtr.Zero;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
496return IntPtr.Zero; 573return IntPtr.Zero;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (13)
205/// Gets the window handle of the task dialog window, or <see cref="IntPtr.Zero"/> 229internal bool IsShown => _instanceHandlePtr != IntPtr.Zero; 244internal bool IsHandleCreated => _handle != IntPtr.Zero; 331=> ShowDialogAsync(IntPtr.Zero, page.OrThrowIfNull(), startupLocation); 374/// The handle of the owner window, or <see cref="IntPtr.Zero"/> to show a modeless dialog. 462=> ShowDialog(IntPtr.Zero, page.OrThrowIfNull(), startupLocation); 504/// The handle of the owner window, or <see cref="IntPtr.Zero"/> to show a 654Debug.Assert(_handle == IntPtr.Zero); 694_instanceHandlePtr = IntPtr.Zero; 1158_boundPage.Expander!.HandleExpandoButtonClicked((nint)wParam != IntPtr.Zero); 1162_boundPage.Verification!.HandleCheckBoxClicked((nint)wParam != IntPtr.Zero); 1293IntPtr.Zero, 1625if (Handle == IntPtr.Zero)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
138/// <param name="iconHandle">A handle to an instance of an icon, or <see cref="IntPtr.Zero"/> to not show an icon.</param>
System\Windows\Forms\Form.cs (2)
1932if (_ownerWindow.Handle == IntPtr.Zero) 4668if (_ctlClient is not null && _ctlClient.Handle != IntPtr.Zero &&
System\Windows\Forms\MDI\MDIClient.cs (3)
144if (Handle == IntPtr.Zero) 173if (site is not null && site.DesignMode && Handle != IntPtr.Zero) 333if (ParentInternal is not null && ParentInternal.Site is not null && ParentInternal.Site.DesignMode && Handle != IntPtr.Zero)
System\Windows\Forms\NativeWindow.cs (3)
555=> handle != IntPtr.Zero ? GetWindowFromTable((HWND)handle) : null; 567/// <see cref="IntPtr.Zero"/>. 609Debug.Assert(DefaultWindowProc != IntPtr.Zero, "We have active windows but no user window proc?");
System\Windows\Forms\NotifyIcon.cs (2)
573if (_window.Handle == IntPtr.Zero) 646if (_window.Handle == IntPtr.Zero)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1470IntPtr.Zero);
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
161IntPtr IDeviceContext.GetHdc() => Graphics?.GetHdc() ?? IntPtr.Zero;
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
134IntPtr IDeviceContext.GetHdc() => Graphics?.GetHdc() ?? IntPtr.Zero;
System\Windows\Forms\Rendering\ScreenDcCache.cs (4)
48item = Interlocked.Exchange(ref _itemsCache[i], IntPtr.Zero); 49if (item != IntPtr.Zero) 73if (temp == IntPtr.Zero) 90if (hdc != IntPtr.Zero)
System\Windows\Forms\Rendering\TextRenderer.cs (1)
637|| graphics.Clip.GetHrgn(graphics) == IntPtr.Zero,
System\Windows\Forms\ToolTip\ToolTip.cs (3)
837if (result == IntPtr.Zero) 967internal bool GetHandleCreated() => _window is not null && _window.Handle != IntPtr.Zero; 1796if (toolInfo.SendMessage(this, PInvoke.TTM_GETTOOLINFOW) != IntPtr.Zero)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
61supported = hTheme != IntPtr.Zero;
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
157PInvokeCore.SetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT, IntPtr.Zero);
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (3)
36Debug.Assert(_hInstance != IntPtr.Zero, "Dialog has been disposed"); 47if (_hInstance != IntPtr.Zero) 50_hInstance = IntPtr.Zero;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
175return _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, pt); 188return _behaviorServiceSource.MapAdornerWindowPoint(IntPtr.Zero, pt); 698controlRect.Location = _behaviorServiceTarget.MapAdornerWindowPoint(IntPtr.Zero, controlRect.Location);
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (1)
79Debug.Assert(_handle != IntPtr.Zero, "Handle for control not created");
System\Windows\Forms\Design\ControlDesigner.DesignerWindowTarget.cs (1)
38if (newHandle != IntPtr.Zero)
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
31if (control is not null && control.Handle != IntPtr.Zero)
System\Windows\Forms\Design\ToolStripInSituService.cs (1)
215IntPtr hWnd = IntPtr.Zero;
System.Windows.Forms.Design.Tests (13)
ControlDesignerTests.cs (2)
369var msg = Message.Create(_designer._control.Handle, 0x0202, IntPtr.Zero, IntPtr.Zero);
System\ComponentModel\Design\ByteViewerTests.cs (10)
144Assert.Equal(IntPtr.Zero, createParams.Parent); 234Assert.NotEqual(IntPtr.Zero, control.Handle); 287Assert.NotEqual(IntPtr.Zero, control.Handle); 359Assert.NotEqual(IntPtr.Zero, control.Handle); 475Assert.NotEqual(IntPtr.Zero, control.Handle); 550Assert.NotEqual(IntPtr.Zero, control.Handle); 653Assert.NotEqual(IntPtr.Zero, control.Handle); 766Assert.NotEqual(IntPtr.Zero, control.Handle); 950Assert.NotEqual(IntPtr.Zero, control.Handle); 978Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\Design\ToolStripInSituServiceTests.cs (1)
103result.Should().Be(IntPtr.Zero);
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
454(!switchToMainWindow && foregroundWindow != IntPtr.Zero))
System.Windows.Forms.Interop.Tests (3)
AccessibleObjectTests.cs (2)
502AssertSuccess(Test_IOleWindowGetWindow(o, IntPtr.Zero, HRESULT.E_FAIL)); 512AssertSuccess(Test_IOleWindowGetWindow(o, IntPtr.Zero, HRESULT.E_FAIL));
PropertyGridTests.cs (1)
91if (handle == IntPtr.Zero)
System.Windows.Forms.Primitives (5)
Microsoft\Win32\SafeHandles\CoTaskMemSafeHandle.cs (3)
10internal CoTaskMemSafeHandle() : base(IntPtr.Zero, true) 14public override bool IsInvalid => IsClosed || handle == IntPtr.Zero; 19handle = IntPtr.Zero;
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
83&& PInvoke.SetThreadDpiAwarenessContext(_originalDpiAwarenessContext) == IntPtr.Zero)
Windows\Win32\PInvoke.LoadLibrary.cs (1)
40/// <returns>A handle to the loaded module, if successful; <see cref="IntPtr.Zero"/> otherwise.</returns>
System.Windows.Forms.Primitives.Tests (5)
Interop\Oleaut32\ITypeInfoTests.cs (1)
114Assert.NotEqual(IntPtr.Zero, (IntPtr)pFuncDesc->lprgelemdescParam);
System\Windows\Forms\Internals\ArgumentValidationTests.cs (4)
66nint param = IntPtr.Zero; 75nint param = IntPtr.Zero; 91HDC param = new(IntPtr.Zero); 106HDC param = new(IntPtr.Zero);
System.Windows.Forms.Tests (3032)
CheckedListBoxTests.cs (4)
192Assert.NotEqual(IntPtr.Zero, control.Handle); 300Assert.NotEqual(IntPtr.Zero, control.Handle); 330Assert.NotEqual(IntPtr.Zero, control.Handle); 435Assert.NotEqual(IntPtr.Zero, control.Handle);
MaskedTextBoxTests.cs (5)
104control.Handle.Should().NotBe(IntPtr.Zero); 177control.Handle.Should().NotBe(IntPtr.Zero); 236control.Handle.Should().NotBe(IntPtr.Zero); 277control.Handle.Should().NotBe(IntPtr.Zero); 351control.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (3)
608yield return new object[] { IntPtr.Zero }; 672yield return new object[] { IntPtr.Zero, 0 }; 674yield return new object[] { IntPtr.Zero, unchecked((int)0xFFFFFFFC) };
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (3)
13Assert.Throws<ArgumentNullException>(() => new ComboBox.ChildAccessibleObject(null, IntPtr.Zero)); 22var accessibleObject = new ComboBox.ChildAccessibleObject(control, IntPtr.Zero); 38var accessibleObject = new ComboBox.ChildAccessibleObject(control, IntPtr.Zero);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (9)
71Assert.Equal(IntPtr.Zero, accessibleObject.HandleInternal); 88Assert.NotEqual(IntPtr.Zero, ownerControl.Handle); 135Assert.Equal(IntPtr.Zero, controlAccessibleObject.HandleInternal); 160Assert.Equal(IntPtr.Zero, controlAccessibleObject.Handle); 169Assert.Equal(IntPtr.Zero, accessibleObject.HandleInternal); 193Assert.NotEqual(IntPtr.Zero, controlAccessibleObject.Handle); 244IntPtr.Zero, 1077Assert.NotEqual(IntPtr.Zero, ownerControl.Handle); 1096Assert.NotEqual(IntPtr.Zero, ownerControl.Handle);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (11)
157Assert.NotEqual(IntPtr.Zero, listView.Handle); 226Assert.NotEqual(IntPtr.Zero, listView.Handle); 395Assert.NotEqual(IntPtr.Zero, listView.Handle); 487Assert.NotEqual(IntPtr.Zero, listView.Handle); 521Assert.NotEqual(IntPtr.Zero, listView.Handle); 604Assert.NotEqual(IntPtr.Zero, listView.Handle); 690Assert.NotEqual(IntPtr.Zero, listView.Handle); 728Assert.NotEqual(IntPtr.Zero, listView.Handle); 760Assert.NotEqual(IntPtr.Zero, listView.Handle); 1277Assert.NotEqual(IntPtr.Zero, listView.Handle); 1465Assert.NotEqual(IntPtr.Zero, listView.Handle);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (6)
74Assert.NotEqual(IntPtr.Zero, listView.Handle); 654Assert.NotEqual(IntPtr.Zero, listView.Handle); 716Assert.NotEqual(IntPtr.Zero, listView.Handle); 850Assert.NotEqual(IntPtr.Zero, listView.Handle); 898Assert.NotEqual(IntPtr.Zero, listView.Handle); 933Assert.NotEqual(IntPtr.Zero, listView.Handle);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (1)
44Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ApplicationContextTests.cs (4)
81Assert.NotEqual(IntPtr.Zero, mainForm.Handle); 110Assert.NotEqual(IntPtr.Zero, mainForm.Handle); 113Assert.NotEqual(IntPtr.Zero, newMainForm.Handle); 144Assert.NotEqual(IntPtr.Zero, mainForm.Handle);
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (20)
158Assert.NotEqual(IntPtr.Zero, control.Handle); 406Assert.NotEqual(IntPtr.Zero, control.Handle); 429Assert.NotEqual(IntPtr.Zero, control.Handle); 455Assert.NotEqual(IntPtr.Zero, control.Handle); 558Assert.NotEqual(IntPtr.Zero, control.Handle); 594Assert.NotEqual(IntPtr.Zero, control.Handle); 625Assert.NotEqual(IntPtr.Zero, control.Handle); 673Assert.NotEqual(IntPtr.Zero, control.Handle); 721Assert.NotEqual(IntPtr.Zero, control.Handle); 839Assert.NotEqual(IntPtr.Zero, control.Handle); 870Assert.NotEqual(IntPtr.Zero, control.Handle); 899Assert.NotEqual(IntPtr.Zero, control.Handle); 931Assert.NotEqual(IntPtr.Zero, control.Handle); 960Assert.NotEqual(IntPtr.Zero, control.Handle); 1003Assert.NotEqual(IntPtr.Zero, control.Handle); 1047Assert.NotEqual(IntPtr.Zero, control.Handle); 1099Assert.NotEqual(IntPtr.Zero, control.Handle); 1147Assert.NotEqual(IntPtr.Zero, control.Handle); 1195Assert.NotEqual(IntPtr.Zero, control.Handle); 1249Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\AxHostTests.cs (33)
240Assert.Equal(IntPtr.Zero, createParams.Parent); 280Assert.Equal(IntPtr.Zero, createParams.Parent); 454Assert.NotEqual(IntPtr.Zero, control.Handle); 810Assert.NotEqual(IntPtr.Zero, control.Handle); 904Assert.NotEqual(IntPtr.Zero, control.Handle); 1297Assert.NotEqual(IntPtr.Zero, control.Handle); 1312Assert.NotEqual(IntPtr.Zero, control.Handle); 1325Assert.NotEqual(IntPtr.Zero, control.Handle); 1375Assert.NotEqual(IntPtr.Zero, control.Handle); 1417Assert.NotEqual(IntPtr.Zero, control.Handle); 1459Assert.NotEqual(IntPtr.Zero, iFont.hFont); 1488Assert.NotEqual(IntPtr.Zero, iFont.hFont); 1534Assert.NotEqual(IntPtr.Zero, iFont.hFont); 1555Assert.NotEqual(IntPtr.Zero, iFont.hFont); 2092Assert.NotEqual(IntPtr.Zero, control.Handle); 2158Assert.NotEqual(IntPtr.Zero, control.Handle); 2228Assert.NotEqual(IntPtr.Zero, control.Handle); 2347Assert.NotEqual(IntPtr.Zero, control.Handle); 2389Assert.NotEqual(IntPtr.Zero, control.Handle); 2429Assert.NotEqual(IntPtr.Zero, control.Handle); 2469Assert.NotEqual(IntPtr.Zero, control.Handle); 2511Assert.NotEqual(IntPtr.Zero, control.Handle); 2555Assert.NotEqual(IntPtr.Zero, control.Handle); 2605Assert.NotEqual(IntPtr.Zero, control.Handle); 2649Assert.NotEqual(IntPtr.Zero, control.Handle); 2706Assert.NotEqual(IntPtr.Zero, control.Handle); 2754Assert.NotEqual(IntPtr.Zero, control.Handle); 2802Assert.NotEqual(IntPtr.Zero, control.Handle); 2848Assert.NotEqual(IntPtr.Zero, control.Handle); 2905Assert.NotEqual(IntPtr.Zero, control.Handle); 2953Assert.NotEqual(IntPtr.Zero, control.Handle); 3001Assert.NotEqual(IntPtr.Zero, control.Handle); 3055Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ButtonBaseTests.cs (222)
137Assert.Equal(IntPtr.Zero, createParams.Parent); 170Assert.Equal(IntPtr.Zero, createParams.Parent); 240Assert.Equal(IntPtr.Zero, createParams.Parent); 278Assert.NotEqual(IntPtr.Zero, control.Handle); 376Assert.NotEqual(IntPtr.Zero, control.Handle); 425Assert.NotEqual(IntPtr.Zero, control.Handle); 705Assert.NotEqual(IntPtr.Zero, control.Handle); 908Assert.NotEqual(IntPtr.Zero, control.Handle); 963Assert.NotEqual(IntPtr.Zero, control.Handle); 1204Assert.NotEqual(IntPtr.Zero, control.Handle); 1265Assert.NotEqual(IntPtr.Zero, control.Handle); 1328Assert.NotEqual(IntPtr.Zero, parent.Handle); 1329Assert.NotEqual(IntPtr.Zero, control.Handle); 1619Assert.NotEqual(IntPtr.Zero, control.Handle); 1671Assert.NotEqual(IntPtr.Zero, control.Handle); 1725Assert.NotEqual(IntPtr.Zero, parent.Handle); 1726Assert.NotEqual(IntPtr.Zero, control.Handle); 1806Assert.NotEqual(IntPtr.Zero, control.Handle); 1949Assert.NotEqual(IntPtr.Zero, control.Handle); 1997Assert.NotEqual(IntPtr.Zero, parent.Handle); 1998Assert.NotEqual(IntPtr.Zero, control.Handle); 2182Assert.NotEqual(IntPtr.Zero, control.Handle); 2333Assert.NotEqual(IntPtr.Zero, control.Handle); 2440Assert.NotEqual(IntPtr.Zero, control.Handle); 2481Assert.NotEqual(IntPtr.Zero, control.Handle); 2545Assert.NotEqual(IntPtr.Zero, control.Handle); 2590Assert.NotEqual(IntPtr.Zero, imageList1.Handle); 2613Assert.NotEqual(IntPtr.Zero, control.Handle); 2620Assert.NotEqual(IntPtr.Zero, imageList1.Handle); 2762Assert.NotEqual(IntPtr.Zero, control.Handle); 2917Assert.NotEqual(IntPtr.Zero, control.Handle); 2965Assert.NotEqual(IntPtr.Zero, control.Handle); 3137Assert.NotEqual(IntPtr.Zero, control.Handle); 3178Assert.NotEqual(IntPtr.Zero, parent.Handle); 3179Assert.NotEqual(IntPtr.Zero, control.Handle); 3384Assert.NotEqual(IntPtr.Zero, control.Handle); 3440Assert.NotEqual(IntPtr.Zero, parent.Handle); 3441Assert.NotEqual(IntPtr.Zero, control.Handle); 3613Assert.NotEqual(IntPtr.Zero, control.Handle); 3666Assert.NotEqual(IntPtr.Zero, parent.Handle); 3667Assert.NotEqual(IntPtr.Zero, control.Handle); 3819Assert.NotEqual(IntPtr.Zero, control.Handle); 3864Assert.NotEqual(IntPtr.Zero, control.Handle); 4038Assert.NotEqual(IntPtr.Zero, control.Handle); 4093Assert.NotEqual(IntPtr.Zero, parent.Handle); 4094Assert.NotEqual(IntPtr.Zero, control.Handle); 4206Assert.NotEqual(IntPtr.Zero, control.Handle); 4247Assert.NotEqual(IntPtr.Zero, control.Handle); 4308Assert.NotEqual(IntPtr.Zero, control.Handle); 4435Assert.NotEqual(IntPtr.Zero, control.Handle); 4490Assert.NotEqual(IntPtr.Zero, control.Handle); 5039Assert.NotEqual(IntPtr.Zero, control.Handle); 5215Assert.NotEqual(IntPtr.Zero, control.Handle); 5273Assert.NotEqual(IntPtr.Zero, control.Handle); 5338Assert.NotEqual(IntPtr.Zero, control.Handle); 5403Assert.NotEqual(IntPtr.Zero, control.Handle); 5456Assert.NotEqual(IntPtr.Zero, control.Handle); 5592Assert.NotEqual(IntPtr.Zero, control.Handle); 5651Assert.NotEqual(IntPtr.Zero, control.Handle); 5706Assert.NotEqual(IntPtr.Zero, control.Handle); 5730Assert.NotEqual(IntPtr.Zero, control.Handle); 5857Assert.NotEqual(IntPtr.Zero, control.Handle); 5921Assert.NotEqual(IntPtr.Zero, control.Handle); 5985Assert.NotEqual(IntPtr.Zero, control.Handle); 6009Assert.NotEqual(IntPtr.Zero, control.Handle); 6056Assert.NotEqual(IntPtr.Zero, control.Handle); 6169Assert.NotEqual(IntPtr.Zero, control.Handle); 6317Assert.NotEqual(IntPtr.Zero, control.Handle); 6376Assert.NotEqual(IntPtr.Zero, control.Handle); 6471Assert.NotEqual(IntPtr.Zero, control.Handle); 6649Assert.NotEqual(IntPtr.Zero, control.Handle); 6716Assert.NotEqual(IntPtr.Zero, control.Handle); 6784Assert.NotEqual(IntPtr.Zero, control.Handle); 6886Assert.NotEqual(IntPtr.Zero, control.Handle); 7044Assert.NotEqual(IntPtr.Zero, control.Handle); 7102Assert.NotEqual(IntPtr.Zero, control.Handle); 7250Assert.NotEqual(IntPtr.Zero, control.Handle); 7298Assert.NotEqual(IntPtr.Zero, parent.Handle); 7299Assert.NotEqual(IntPtr.Zero, control.Handle); 7474Assert.NotEqual(IntPtr.Zero, control.Handle); 7532Assert.NotEqual(IntPtr.Zero, control.Handle); 7582Assert.NotEqual(IntPtr.Zero, control.Handle); 7622Assert.Equal(IntPtr.Zero, m.Result); 7628Assert.Equal(IntPtr.Zero, m.Result); 7653Assert.Equal(IntPtr.Zero, m.Result); 7659Assert.Equal(IntPtr.Zero, m.Result); 7685Assert.Equal(IntPtr.Zero, m.Result); 7691Assert.Equal(IntPtr.Zero, m.Result); 7724Assert.Equal(IntPtr.Zero, m.Result); 7730Assert.Equal(IntPtr.Zero, m.Result); 7749Assert.NotEqual(IntPtr.Zero, control.Handle); 7765Assert.Equal(IntPtr.Zero, m.Result); 7774Assert.Equal(IntPtr.Zero, m.Result); 7794Assert.NotEqual(IntPtr.Zero, control.Handle); 7810Assert.Equal(IntPtr.Zero, m.Result); 7819Assert.Equal(IntPtr.Zero, m.Result); 7837Assert.NotEqual(IntPtr.Zero, control.Handle); 7853Assert.Equal(IntPtr.Zero, m.Result); 7862Assert.Equal(IntPtr.Zero, m.Result); 7879Assert.NotEqual(IntPtr.Zero, control.Handle); 7902Assert.Equal(IntPtr.Zero, m.Result); 7911Assert.Equal(IntPtr.Zero, m.Result); 7947Assert.Equal(IntPtr.Zero, m.Result); 7953Assert.Equal(IntPtr.Zero, m.Result); 7983Assert.Equal(IntPtr.Zero, m.Result); 7989Assert.Equal(IntPtr.Zero, m.Result); 8020Assert.Equal(IntPtr.Zero, m.Result); 8026Assert.Equal(IntPtr.Zero, m.Result); 8064Assert.Equal(IntPtr.Zero, m.Result); 8070Assert.Equal(IntPtr.Zero, m.Result); 8089Assert.NotEqual(IntPtr.Zero, control.Handle); 8110Assert.Equal(IntPtr.Zero, m.Result); 8119Assert.Equal(IntPtr.Zero, m.Result); 8139Assert.NotEqual(IntPtr.Zero, control.Handle); 8160Assert.Equal(IntPtr.Zero, m.Result); 8169Assert.Equal(IntPtr.Zero, m.Result); 8187Assert.NotEqual(IntPtr.Zero, control.Handle); 8208Assert.Equal(IntPtr.Zero, m.Result); 8217Assert.Equal(IntPtr.Zero, m.Result); 8234Assert.NotEqual(IntPtr.Zero, control.Handle); 8262Assert.Equal(IntPtr.Zero, m.Result); 8271Assert.Equal(IntPtr.Zero, m.Result); 8355Assert.NotEqual(IntPtr.Zero, control.Handle); 8395Assert.NotEqual(IntPtr.Zero, control.Handle); 8452Assert.Equal(IntPtr.Zero, m.Result); 8458Assert.Equal(IntPtr.Zero, m.Result); 8488Assert.Equal(IntPtr.Zero, m.Result); 8494Assert.Equal(IntPtr.Zero, m.Result); 8525Assert.Equal(IntPtr.Zero, m.Result); 8531Assert.Equal(IntPtr.Zero, m.Result); 8569Assert.Equal(IntPtr.Zero, m.Result); 8575Assert.Equal(IntPtr.Zero, m.Result); 8594Assert.NotEqual(IntPtr.Zero, control.Handle); 8615Assert.Equal(IntPtr.Zero, m.Result); 8624Assert.Equal(IntPtr.Zero, m.Result); 8644Assert.NotEqual(IntPtr.Zero, control.Handle); 8665Assert.Equal(IntPtr.Zero, m.Result); 8674Assert.Equal(IntPtr.Zero, m.Result); 8692Assert.NotEqual(IntPtr.Zero, control.Handle); 8713Assert.Equal(IntPtr.Zero, m.Result); 8722Assert.Equal(IntPtr.Zero, m.Result); 8739Assert.NotEqual(IntPtr.Zero, control.Handle); 8767Assert.Equal(IntPtr.Zero, m.Result); 8776Assert.Equal(IntPtr.Zero, m.Result); 8797Assert.NotEqual(IntPtr.Zero, control.Handle); 8818Assert.Equal(IntPtr.Zero, m.Result); 8828yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 }; 8829yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 }; 8830yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 }; 8831yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 }; 8832yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 }; 8833yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 }; 8835yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 }; 8836yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 }; 8837yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 }; 8838yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 }; 8839yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 }; 8840yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 }; 8842yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 }; 8843yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 }; 8844yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 }; 8845yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 }; 8846yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 }; 8847yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 }; 8849yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 }; 8850yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 }; 8851yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 }; 8852yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 }; 8853yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 }; 8854yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 }; 8856yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 }; 8859yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 }; 8860yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 }; 8861yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 }; 8863yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 }; 8866yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 }; 8867yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 }; 8868yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 }; 8977Assert.NotEqual(IntPtr.Zero, control.Handle); 9021Assert.NotEqual(IntPtr.Zero, control.Handle); 9069Assert.NotEqual(IntPtr.Zero, control.Handle); 9097yield return new object[] { FlatStyle.Flat, IntPtr.Zero, IntPtr.Zero, 0 }; 9098yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9099yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9100yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 }; 9102yield return new object[] { FlatStyle.Popup, IntPtr.Zero, IntPtr.Zero, 0 }; 9103yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9104yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9105yield return new object[] { FlatStyle.Popup, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 }; 9107yield return new object[] { FlatStyle.Standard, IntPtr.Zero, IntPtr.Zero, 0 }; 9108yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9109yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9110yield return new object[] { FlatStyle.Standard, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 }; 9112yield return new object[] { FlatStyle.System, IntPtr.Zero, (IntPtr)250, 1 }; 9157Assert.NotEqual(IntPtr.Zero, control.Handle); 9192yield return new object[] { FlatStyle.System, IntPtr.Zero }; 9227Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ButtonTests.cs (43)
135Assert.Equal(IntPtr.Zero, createParams.Parent); 159Assert.Equal(IntPtr.Zero, createParams.Parent); 192Assert.Equal(IntPtr.Zero, createParams.Parent); 262Assert.Equal(IntPtr.Zero, createParams.Parent); 416Assert.NotEqual(IntPtr.Zero, control.Handle); 464Assert.NotEqual(IntPtr.Zero, parent.Handle); 537Assert.NotEqual(IntPtr.Zero, parent.Handle); 636Assert.NotEqual(IntPtr.Zero, control.Handle); 853Assert.NotEqual(IntPtr.Zero, control.Handle); 894Assert.NotEqual(IntPtr.Zero, parent.Handle); 895Assert.NotEqual(IntPtr.Zero, control.Handle); 1859Assert.NotEqual(IntPtr.Zero, control.Handle); 1980Assert.NotEqual(IntPtr.Zero, control.Handle); 2028Assert.NotEqual(IntPtr.Zero, control.Handle); 2149Assert.NotEqual(IntPtr.Zero, control.Handle); 2202Assert.NotEqual(IntPtr.Zero, control.Handle); 2317Assert.NotEqual(IntPtr.Zero, control.Handle); 2459Assert.NotEqual(IntPtr.Zero, control.Handle); 2517Assert.NotEqual(IntPtr.Zero, control.Handle); 2607Assert.NotEqual(IntPtr.Zero, control.Handle); 2754Assert.NotEqual(IntPtr.Zero, control.Handle); 2821Assert.NotEqual(IntPtr.Zero, control.Handle); 2984Assert.NotEqual(IntPtr.Zero, control.Handle); 3032Assert.NotEqual(IntPtr.Zero, parent.Handle); 3033Assert.NotEqual(IntPtr.Zero, control.Handle); 3161Assert.NotEqual(IntPtr.Zero, control.Handle); 3208Assert.NotEqual(IntPtr.Zero, control.Handle); 3366yield return new object[] { true, true, opaque, IntPtr.Zero }; 3367yield return new object[] { true, false, opaque, IntPtr.Zero }; 3368yield return new object[] { false, true, opaque, IntPtr.Zero }; 3369yield return new object[] { false, false, opaque, IntPtr.Zero }; 3437Assert.Equal(IntPtr.Zero, m.Result); 3456Assert.NotEqual(IntPtr.Zero, control.Handle); 3472Assert.Equal(IntPtr.Zero, m.Result); 3488Assert.NotEqual(IntPtr.Zero, control.Handle); 3510Assert.Equal(IntPtr.Zero, m.Result); 3531Assert.NotEqual(IntPtr.Zero, control.Handle); 3552Assert.Equal(IntPtr.Zero, m.Result); 3562yield return new object[] { FlatStyle.Flat, IntPtr.Zero, (IntPtr)250, 1 }; 3567yield return new object[] { FlatStyle.Popup, IntPtr.Zero, (IntPtr)250, 1 }; 3572yield return new object[] { FlatStyle.Standard, IntPtr.Zero, (IntPtr)250, 1 }; 3577yield return new object[] { FlatStyle.System, IntPtr.Zero, (IntPtr)250, 1 }; 3635Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\CheckBoxRendererTests.cs (4)
24form.Handle.Should().NotBe(IntPtr.Zero); 60form.Handle.Should().NotBe(IntPtr.Zero); 97form.Handle.Should().NotBe(IntPtr.Zero); 132form.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\CheckBoxTests.cs (7)
138Assert.Equal(IntPtr.Zero, createParams.Parent); 321control.Handle.Should().NotBe(IntPtr.Zero); 340control.Handle.Should().NotBe(IntPtr.Zero); 350control.Handle.Should().NotBe(IntPtr.Zero); 386control.Handle.Should().NotBe(IntPtr.Zero); 405control.Handle.Should().NotBe(IntPtr.Zero); 415control.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\ColorDialogTests.cs (3)
27Assert.NotEqual(IntPtr.Zero, dialog.Instance); 52Assert.NotEqual(IntPtr.Zero, dialog.Instance); 349Assert.NotEqual(IntPtr.Zero, dialog.Instance);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (4)
460Assert.NotEqual(IntPtr.Zero, listView.Handle); 511Assert.NotEqual(IntPtr.Zero, listView.Handle); 977Assert.NotEqual(IntPtr.Zero, listView.Handle); 1016Assert.NotEqual(IntPtr.Zero, listView.Handle);
System\Windows\Forms\ColumnHeaderTests.cs (22)
165Assert.NotEqual(IntPtr.Zero, listView.Handle); 220Assert.NotEqual(IntPtr.Zero, listView.Handle); 407Assert.NotEqual(IntPtr.Zero, listView.Handle); 443Assert.NotEqual(IntPtr.Zero, listView.Handle); 472Assert.NotEqual(IntPtr.Zero, listView.Handle); 497Assert.NotEqual(IntPtr.Zero, listView.Handle); 624Assert.NotEqual(IntPtr.Zero, listView.Handle); 663Assert.NotEqual(IntPtr.Zero, listView.Handle); 694Assert.NotEqual(IntPtr.Zero, listView.Handle); 711Assert.NotEqual(IntPtr.Zero, listView.Handle); 815Assert.NotEqual(IntPtr.Zero, listView.Handle); 990Assert.NotEqual(IntPtr.Zero, listView.Handle); 1008Assert.NotEqual(IntPtr.Zero, listView.Handle); 1161Assert.NotEqual(IntPtr.Zero, listView.Handle); 1200Assert.NotEqual(IntPtr.Zero, listView.Handle); 1234Assert.NotEqual(IntPtr.Zero, listView.Handle); 1258Assert.NotEqual(IntPtr.Zero, listView.Handle); 1324Assert.NotEqual(IntPtr.Zero, listView.Handle); 1362Assert.NotEqual(IntPtr.Zero, listView.Handle); 1380Assert.NotEqual(IntPtr.Zero, listView.Handle); 1423Assert.NotEqual(IntPtr.Zero, listView.Handle); 1617m.Result = IntPtr.Zero;
System\Windows\Forms\ColumnStyleTests.cs (1)
103Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ComboBoxTests.cs (18)
147Assert.Equal(IntPtr.Zero, createParams.Parent); 199Assert.NotEqual(IntPtr.Zero, control.Handle); 235if (control.Handle != IntPtr.Zero) 338control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.FromHwnd(IntPtr.Zero), 0, 0)); 343control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.FromHwnd(IntPtr.Zero), 0, 0)); 919Assert.NotEqual(IntPtr.Zero, control.Handle); 1087Assert.NotEqual(IntPtr.Zero, control.Handle); 1200Assert.NotEqual(IntPtr.Zero, control.Handle); 1384Assert.NotEqual(IntPtr.Zero, control.Handle); 1410Assert.NotEqual(IntPtr.Zero, control.Handle); 1437Assert.NotEqual(IntPtr.Zero, control.Handle); 1883Assert.NotEqual(IntPtr.Zero, control.Handle); 1917Assert.NotEqual(IntPtr.Zero, control.Handle); 2078Assert.NotEqual(IntPtr.Zero, control.Handle); 2123Assert.NotEqual(IntPtr.Zero, control.Handle); 2687Assert.NotEqual(IntPtr.Zero, control.Handle); 2700control.Handle.Should().NotBe(IntPtr.Zero); 2711control.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\CommonDialogTests.cs (16)
89Assert.Equal(IntPtr.Zero, dialog.HookProc(IntPtr.Zero, msg, IntPtr.Zero, IntPtr.Zero)); 117.Returns(IntPtr.Zero); 141.Returns(IntPtr.Zero); 191Assert.NotEqual(IntPtr.Zero, owner.Handle); 213Assert.NotEqual(IntPtr.Zero, owner.Handle); 245Assert.Equal(IntPtr.Zero, dialog.OwnerWndProc(IntPtr.Zero, (int)(MessageId)field.GetValue(null), IntPtr.Zero, IntPtr.Zero)); 265Assert.Equal(IntPtr.Zero, dialog.OwnerWndProc(IntPtr.Zero, (int)(MessageId)field.GetValue(null) + 1, IntPtr.Zero, IntPtr.Zero));
System\Windows\Forms\ContainerControlTests.cs (6)
138Assert.Equal(IntPtr.Zero, createParams.Parent); 1224Assert.NotEqual(IntPtr.Zero, control.Handle); 1245Assert.Equal(IntPtr.Zero, m.Result); 1261Assert.NotEqual(IntPtr.Zero, control.Handle); 1275Assert.Equal(IntPtr.Zero, m.Result); 1292Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ControlPaintTests.cs (3)
89foreach (IntPtr monochromeMask in new IntPtr[] { IntPtr.Zero, 1 }) 172HBITMAP hBitmap = (HBITMAP)ControlPaint.CreateHBitmapColorMask(bitmap, IntPtr.Zero); 195Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmapColorMask(null, IntPtr.Zero));
System\Windows\Forms\ControlTests.ControlCollection.cs (19)
337Assert.NotEqual(IntPtr.Zero, owner.Handle); 366Assert.NotEqual(IntPtr.Zero, control.Handle); 395Assert.NotEqual(IntPtr.Zero, owner.Handle); 402Assert.NotEqual(IntPtr.Zero, control.Handle); 434Assert.NotEqual(IntPtr.Zero, owner.Handle); 441Assert.NotEqual(IntPtr.Zero, control.Handle); 591Assert.NotEqual(IntPtr.Zero, control.Handle); 813Assert.NotEqual(IntPtr.Zero, control.Handle); 1039Assert.NotEqual(IntPtr.Zero, control.Handle); 1129Assert.NotEqual(IntPtr.Zero, owner.Handle); 1153Assert.NotEqual(IntPtr.Zero, control.Handle); 2063Assert.NotEqual(IntPtr.Zero, child1.Handle); 2139Assert.NotEqual(IntPtr.Zero, owner.Handle); 2291Assert.NotEqual(IntPtr.Zero, control.Handle); 2510Assert.NotEqual(IntPtr.Zero, control.Handle); 2706Assert.NotEqual(IntPtr.Zero, control.Handle); 3181Assert.NotEqual(IntPtr.Zero, child1.Handle); 3260Assert.NotEqual(IntPtr.Zero, owner.Handle); 3354Assert.NotEqual(IntPtr.Zero, owner.Handle);
System\Windows\Forms\ControlTests.cs (9)
510Assert.Equal(IntPtr.Zero, createParams.Parent); 534Assert.Equal(IntPtr.Zero, createParams.Parent); 560Assert.Equal(IntPtr.Zero, createParams.Parent); 585Assert.Equal(IntPtr.Zero, createParams.Parent); 599Assert.NotEqual(IntPtr.Zero, parent.Handle); 633Assert.Equal(IntPtr.Zero, createParams.Parent); 660Assert.Equal(IntPtr.Zero, createParams.Parent); 686Assert.Equal(IntPtr.Zero, createParams.Parent); 712Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\ControlTests.Handlers.cs (45)
70Assert.NotEqual(IntPtr.Zero, control.Handle); 109Assert.NotEqual(IntPtr.Zero, control.Handle); 260Assert.NotEqual(IntPtr.Zero, control.Handle); 304Assert.NotEqual(IntPtr.Zero, control.Handle); 463Assert.NotEqual(IntPtr.Zero, control.Handle); 609Assert.NotEqual(IntPtr.Zero, control.Handle); 877Assert.NotEqual(IntPtr.Zero, control.Handle); 935Assert.NotEqual(IntPtr.Zero, control.Handle); 1438Assert.NotEqual(IntPtr.Zero, control.Handle); 1472Assert.NotEqual(IntPtr.Zero, control.Handle); 1698Assert.NotEqual(IntPtr.Zero, control.Handle); 1841Assert.NotEqual(IntPtr.Zero, control.Handle); 1892Assert.NotEqual(IntPtr.Zero, control.Handle); 1936Assert.NotEqual(IntPtr.Zero, control.Handle); 2155Assert.NotEqual(IntPtr.Zero, control.Handle); 2197Assert.NotEqual(IntPtr.Zero, control.Handle); 2242Assert.NotEqual(IntPtr.Zero, control.Handle); 2277Assert.NotEqual(IntPtr.Zero, control.Handle); 2455Assert.NotEqual(IntPtr.Zero, control.Handle); 2488Assert.NotEqual(IntPtr.Zero, control.Handle); 2523Assert.NotEqual(IntPtr.Zero, control.Handle); 2558Assert.NotEqual(IntPtr.Zero, control.Handle); 2850Assert.NotEqual(IntPtr.Zero, control.Handle); 2920Assert.NotEqual(IntPtr.Zero, control.Handle); 2987Assert.NotEqual(IntPtr.Zero, control.Handle); 3099Assert.NotEqual(IntPtr.Zero, control.Handle); 3225Assert.NotEqual(IntPtr.Zero, control.Handle); 3280Assert.NotEqual(IntPtr.Zero, control.Handle); 3676Assert.NotEqual(IntPtr.Zero, control.Handle); 3711Assert.NotEqual(IntPtr.Zero, control.Handle); 3785Assert.NotEqual(IntPtr.Zero, control.Handle); 4044Assert.NotEqual(IntPtr.Zero, control.Handle); 4137Assert.NotEqual(IntPtr.Zero, parent.Handle); 4686Assert.NotEqual(IntPtr.Zero, control.Handle); 4717Assert.NotEqual(IntPtr.Zero, control.Handle); 4758Assert.NotEqual(IntPtr.Zero, control.Handle); 4811Assert.NotEqual(IntPtr.Zero, control.Handle); 4900Assert.NotEqual(IntPtr.Zero, control.Handle); 4964Assert.NotEqual(IntPtr.Zero, control.Handle); 5007Assert.NotEqual(IntPtr.Zero, control.Handle); 5161Assert.NotEqual(IntPtr.Zero, control.Handle); 5218Assert.NotEqual(IntPtr.Zero, control.Handle); 5324Assert.NotEqual(IntPtr.Zero, control.Handle); 5628Assert.NotEqual(IntPtr.Zero, control.Handle); 5674Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ControlTests.Internals.cs (2)
20Assert.Equal(IntPtr.Zero, intptr); 94Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ControlTests.Methods.ClipboardTests.cs (1)
44Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ControlTests.Methods.cs (364)
55Assert.NotEqual(IntPtr.Zero, control.Handle); 102Assert.NotEqual(IntPtr.Zero, control.Handle); 196Assert.NotEqual(IntPtr.Zero, child1.Handle); 251Assert.NotEqual(IntPtr.Zero, parent.Handle); 318Assert.NotEqual(IntPtr.Zero, parent.Handle); 368Assert.NotEqual(IntPtr.Zero, control.Handle); 425Assert.NotEqual(IntPtr.Zero, handle1); 432Assert.NotEqual(IntPtr.Zero, handle2); 446Assert.NotEqual(IntPtr.Zero, control.Handle); 467Assert.NotEqual(IntPtr.Zero, control.Handle); 483Assert.NotEqual(IntPtr.Zero, control.Handle); 498Assert.NotEqual(IntPtr.Zero, control.Handle); 515Assert.NotEqual(IntPtr.Zero, control.Handle); 530Assert.NotEqual(IntPtr.Zero, handle1); 541Assert.NotEqual(IntPtr.Zero, handle2); 559Assert.NotEqual(IntPtr.Zero, parent.Handle); 560Assert.NotEqual(IntPtr.Zero, control.Handle); 591Assert.NotEqual(IntPtr.Zero, control.Handle); 632Assert.NotEqual(IntPtr.Zero, control.Handle); 654Assert.NotEqual(IntPtr.Zero, control.Handle); 670Assert.NotEqual(IntPtr.Zero, control.Handle); 685Assert.NotEqual(IntPtr.Zero, control.Handle); 702Assert.NotEqual(IntPtr.Zero, control.Handle); 718Assert.NotEqual(IntPtr.Zero, parent.Handle); 719Assert.NotEqual(IntPtr.Zero, control.Handle); 731Assert.NotEqual(IntPtr.Zero, control.Handle); 751Assert.NotEqual(IntPtr.Zero, control.Handle); 829Assert.NotEqual(IntPtr.Zero, handle1); 838Assert.NotEqual(IntPtr.Zero, handle2); 850Assert.NotEqual(IntPtr.Zero, parent.Handle); 876Assert.NotEqual(IntPtr.Zero, handle1); 887Assert.NotEqual(IntPtr.Zero, handle2); 903Assert.NotEqual(IntPtr.Zero, handle1); 914Assert.NotEqual(IntPtr.Zero, handle2); 947Assert.NotEqual(IntPtr.Zero, handle); 963Assert.NotEqual(IntPtr.Zero, handle); 1199Assert.NotEqual(IntPtr.Zero, control.Handle); 1685Assert.NotEqual(IntPtr.Zero, control.Handle); 1748Assert.NotEqual(IntPtr.Zero, control.Handle); 1863Assert.NotEqual(IntPtr.Zero, control.Handle); 1953Assert.NotEqual(IntPtr.Zero, handle); 1967Assert.NotEqual(IntPtr.Zero, handle); 1984Assert.NotEqual(IntPtr.Zero, parentHandle); 1999Assert.Null(Control.FromChildHandle(IntPtr.Zero)); 2008Assert.NotEqual(IntPtr.Zero, handle); 2022Assert.NotEqual(IntPtr.Zero, handle); 2039Assert.NotEqual(IntPtr.Zero, parentHandle); 2054Assert.Null(Control.FromHandle(IntPtr.Zero)); 2997Assert.NotEqual(IntPtr.Zero, control.Handle); 3038Assert.NotEqual(IntPtr.Zero, control.Handle); 3112Assert.NotEqual(IntPtr.Zero, control.Handle); 3156Assert.NotEqual(IntPtr.Zero, control.Handle); 3250Assert.NotEqual(IntPtr.Zero, control.Handle); 3291Assert.NotEqual(IntPtr.Zero, control.Handle); 3391Assert.NotEqual(IntPtr.Zero, control.Handle); 3432Assert.NotEqual(IntPtr.Zero, control.Handle); 3528Assert.NotEqual(IntPtr.Zero, control.Handle); 3569Assert.NotEqual(IntPtr.Zero, control.Handle); 3671Assert.NotEqual(IntPtr.Zero, control.Handle); 3712Assert.NotEqual(IntPtr.Zero, control.Handle); 3757Assert.NotEqual(IntPtr.Zero, control.Handle); 3782Assert.NotEqual(IntPtr.Zero, control.Handle); 3808Assert.NotEqual(IntPtr.Zero, control.Handle); 3973Assert.NotEqual(IntPtr.Zero, control.Handle); 3999Assert.NotEqual(IntPtr.Zero, control.Handle); 4061Assert.NotEqual(IntPtr.Zero, control.Handle); 4142Assert.NotEqual(IntPtr.Zero, control.Handle); 4348Assert.NotEqual(IntPtr.Zero, control.Handle); 4460Assert.NotEqual(IntPtr.Zero, control.Handle); 4608Assert.NotEqual(IntPtr.Zero, control.Handle); 4678Assert.NotEqual(IntPtr.Zero, control.Handle); 4949Assert.NotEqual(IntPtr.Zero, control.Handle); 5223Assert.NotEqual(IntPtr.Zero, control.Handle); 6263Assert.NotEqual(IntPtr.Zero, handle1); 6268Assert.NotEqual(IntPtr.Zero, handle2); 6275Assert.NotEqual(IntPtr.Zero, handle3); 6308Assert.NotEqual(IntPtr.Zero, control.Handle); 6477Assert.NotEqual(IntPtr.Zero, control.Handle); 6790Assert.NotEqual(IntPtr.Zero, control.Handle); 7050Assert.NotEqual(IntPtr.Zero, child1.Handle); 7105Assert.NotEqual(IntPtr.Zero, parent.Handle); 7172Assert.NotEqual(IntPtr.Zero, parent.Handle); 7222Assert.NotEqual(IntPtr.Zero, control.Handle); 7300Assert.NotEqual(IntPtr.Zero, control.Handle); 7826Assert.NotEqual(IntPtr.Zero, control.Handle); 7966Assert.NotEqual(IntPtr.Zero, parent.Handle); 8683Assert.NotEqual(IntPtr.Zero, control.Handle); 8823Assert.NotEqual(IntPtr.Zero, parent.Handle); 9474Assert.NotEqual(IntPtr.Zero, control.Handle); 9606Assert.NotEqual(IntPtr.Zero, parent.Handle); 9857Assert.NotEqual(IntPtr.Zero, control.Handle); 9977Assert.NotEqual(IntPtr.Zero, control.Handle); 10051Assert.NotEqual(IntPtr.Zero, control.Handle); 10163Assert.NotEqual(IntPtr.Zero, control.Handle); 10211Assert.NotEqual(IntPtr.Zero, control.Handle); 10258Assert.NotEqual(IntPtr.Zero, control.Handle); 10305Assert.NotEqual(IntPtr.Zero, control.Handle); 10689Assert.NotEqual(IntPtr.Zero, control.Handle); 10756Assert.NotEqual(IntPtr.Zero, control.Handle); 10828Assert.NotEqual(IntPtr.Zero, parent.Handle); 11387Assert.NotEqual(IntPtr.Zero, control.Handle); 11508Assert.NotEqual(IntPtr.Zero, parent.Handle); 11885Assert.NotEqual(IntPtr.Zero, control.Handle); 12006Assert.NotEqual(IntPtr.Zero, parent.Handle); 12111Assert.NotEqual(IntPtr.Zero, handle); 12174Assert.NotEqual(IntPtr.Zero, control.Handle); 12206Assert.NotEqual(IntPtr.Zero, parent.Handle); 12239Assert.NotEqual(IntPtr.Zero, parent.Handle); 12284Assert.NotEqual(IntPtr.Zero, parent.Handle); 12331Assert.NotEqual(IntPtr.Zero, parent.Handle); 12389Assert.Equal(IntPtr.Zero, m.Result); 12399Assert.NotEqual(IntPtr.Zero, control.Handle); 12420Assert.Equal(IntPtr.Zero, m.Result); 12443Assert.Equal(IntPtr.Zero, m.Result); 12453Assert.NotEqual(IntPtr.Zero, control.Handle); 12469Assert.Equal(IntPtr.Zero, m.Result); 12507Assert.Equal(IntPtr.Zero, m.Result); 12518yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(0, 0), IntPtr.Zero, true }; 12519yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(1, 2), IntPtr.Zero, true }; 12521yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(-1, -2), IntPtr.Zero, true }; 12523yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero, false }; 12524yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true }; 12525yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true }; 12526yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true }; 12527yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, true }; 12564Assert.NotEqual(IntPtr.Zero, control.Handle); 12579Assert.Equal(IntPtr.Zero, m.Result); 12592yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(0, 0), IntPtr.Zero }; 12593yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(1, 2), IntPtr.Zero }; 12595yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(-1, -2), IntPtr.Zero }; 12597yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero }; 12598yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero }; 12599yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero }; 12600yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero }; 12601yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero }; 12614Assert.NotEqual(IntPtr.Zero, control.Handle); 12807yield return new object[] { true, false, opaque, IntPtr.Zero, false }; 12808yield return new object[] { false, true, opaque, IntPtr.Zero, false }; 12809yield return new object[] { false, false, opaque, IntPtr.Zero, false }; 12844yield return new object[] { false, true, opaque, IntPtr.Zero, false }; 12845yield return new object[] { false, false, opaque, IntPtr.Zero, false }; 12890yield return new object[] { true, false, opaque, IntPtr.Zero }; 12891yield return new object[] { false, true, opaque, IntPtr.Zero }; 12892yield return new object[] { false, false, opaque, IntPtr.Zero }; 12904Assert.NotEqual(IntPtr.Zero, control.Handle); 12934yield return new object[] { false, true, opaque, IntPtr.Zero }; 12935yield return new object[] { false, false, opaque, IntPtr.Zero }; 12947Assert.NotEqual(IntPtr.Zero, control.Handle); 12994Assert.Equal(IntPtr.Zero, m.Result); 13003Assert.NotEqual(IntPtr.Zero, control.Handle); 13017Assert.Equal(IntPtr.Zero, m.Result); 13038Assert.Equal(IntPtr.Zero, m.Result); 13048Assert.NotEqual(IntPtr.Zero, control.Handle); 13064Assert.Equal(IntPtr.Zero, m.Result); 13091Assert.Equal(IntPtr.Zero, m.Result); 13101Assert.NotEqual(IntPtr.Zero, control.Handle); 13122Assert.Equal(IntPtr.Zero, m.Result); 13133yield return new object[] { false, true, IntPtr.Zero, 0 }; 13134yield return new object[] { false, false, IntPtr.Zero, 0 }; 13188yield return new object[] { false, true, IntPtr.Zero, 0 }; 13189yield return new object[] { false, false, IntPtr.Zero, 0 }; 13230yield return new object[] { false, true, IntPtr.Zero, 0 }; 13231yield return new object[] { false, false, IntPtr.Zero, 0 }; 13243Assert.NotEqual(IntPtr.Zero, control.Handle); 13273Assert.NotEqual(IntPtr.Zero, control.Handle); 13300yield return new object[] { false, true, IntPtr.Zero, 0 }; 13301yield return new object[] { false, false, IntPtr.Zero, 0 }; 13313Assert.NotEqual(IntPtr.Zero, control.Handle); 13348yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 }; 13349yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 }; 13350yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 }; 13351yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 }; 13352yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 }; 13353yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 }; 13355yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 0, 0 }; 13356yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 1, 2 }; 13357yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, -1, -2 }; 13358yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 0, 0 }; 13359yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 1, 2 }; 13360yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, -1, -2 }; 13362yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 }; 13363yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 }; 13364yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 }; 13365yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 }; 13366yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 }; 13367yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 }; 13369yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 0, 0 }; 13370yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 1, 2 }; 13371yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, -1, -2 }; 13372yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 0, 0 }; 13373yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 1, 2 }; 13374yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, -1, -2 }; 13376yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 }; 13377yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 }; 13378yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 }; 13379yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 }; 13380yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 }; 13381yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 }; 13383yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 0, 0 }; 13384yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 1, 2 }; 13385yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, -1, -2 }; 13386yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 0, 0 }; 13387yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 1, 2 }; 13388yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, -1, -2 }; 13390yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 }; 13391yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 }; 13392yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 }; 13393yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 }; 13394yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 }; 13395yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 }; 13397yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 }; 13400yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 }; 13401yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 }; 13402yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 }; 13404yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 }; 13407yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 }; 13408yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 }; 13409yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 }; 13411yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 0, 0 }; 13412yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 1, 2 }; 13413yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, -1, -2 }; 13414yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 0, 0 }; 13415yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 1, 2 }; 13416yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, -1, -2 }; 13418yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, 0, 0 }; 13421yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 0, 0 }; 13422yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 1, 2 }; 13423yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, -1, -2 }; 13425yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, 0, 0 }; 13428yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 0, 0 }; 13429yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 1, 2 }; 13430yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, -1, -2 }; 13529Assert.Equal(IntPtr.Zero, m.Result); 13543Assert.NotEqual(IntPtr.Zero, control.Handle); 13587Assert.NotEqual(IntPtr.Zero, control.Handle); 13639Assert.NotEqual(IntPtr.Zero, control.Handle); 13655Assert.Equal(IntPtr.Zero, m.Result); 13684Assert.Equal(IntPtr.Zero, m.Result); 13694Assert.NotEqual(IntPtr.Zero, control.Handle); 13715Assert.Equal(IntPtr.Zero, m.Result); 13725yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 }; 13726yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 }; 13727yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 }; 13728yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 }; 13729yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 }; 13730yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 }; 13732yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 }; 13733yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 }; 13734yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 }; 13735yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 }; 13736yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 }; 13737yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 }; 13739yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 }; 13740yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 }; 13741yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 }; 13742yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 }; 13743yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 }; 13744yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 }; 13746yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 }; 13747yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 }; 13748yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 }; 13749yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 }; 13750yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 }; 13751yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 }; 13753yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 }; 13756yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 }; 13757yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 }; 13758yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 }; 13760yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 }; 13763yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 }; 13764yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 }; 13765yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONUP, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 }; 13860Assert.Equal(IntPtr.Zero, m.Result); 13874Assert.NotEqual(IntPtr.Zero, control.Handle); 13918Assert.NotEqual(IntPtr.Zero, control.Handle); 13966Assert.NotEqual(IntPtr.Zero, control.Handle); 13982Assert.Equal(IntPtr.Zero, m.Result); 14011Assert.Equal(IntPtr.Zero, m.Result); 14021Assert.NotEqual(IntPtr.Zero, control.Handle); 14042Assert.Equal(IntPtr.Zero, m.Result); 14059Assert.NotEqual(IntPtr.Zero, control.Handle); 14080Assert.Equal(IntPtr.Zero, m.Result); 14091yield return new object[] { true, true, IntPtr.Zero, 1, 1 }; 14093yield return new object[] { false, true, IntPtr.Zero, 0, 1 }; 14094yield return new object[] { false, false, IntPtr.Zero, 0, 1 }; 14108Assert.NotEqual(IntPtr.Zero, control.Handle); 14175Assert.NotEqual(IntPtr.Zero, control.Handle); 14196Assert.Equal(IntPtr.Zero, m.Result); 14219Assert.NotEqual(IntPtr.Zero, control.Handle); 14240Assert.Equal(IntPtr.Zero, m.Result); 14263Assert.NotEqual(IntPtr.Zero, control.Handle); 14284Assert.Equal(IntPtr.Zero, m.Result); 14307Assert.NotEqual(IntPtr.Zero, control.Handle); 14328Assert.Equal(IntPtr.Zero, m.Result); 14349Assert.Equal(IntPtr.Zero, m.Result); 14358Assert.NotEqual(IntPtr.Zero, control.Handle); 14372Assert.Equal(IntPtr.Zero, m.Result); 14385m.Result = IntPtr.Zero;
System\Windows\Forms\ControlTests.Properties.cs (84)
40Assert.NotEqual(IntPtr.Zero, control.Handle); 208Assert.NotEqual(IntPtr.Zero, control.Handle); 245Assert.NotEqual(IntPtr.Zero, control.Handle); 285Assert.NotEqual(IntPtr.Zero, control.Handle); 872Assert.NotEqual(IntPtr.Zero, control.Handle); 1067Assert.NotEqual(IntPtr.Zero, control.Handle); 1114Assert.NotEqual(IntPtr.Zero, parent.Handle); 1352Assert.NotEqual(IntPtr.Zero, control.Handle); 1415Assert.NotEqual(IntPtr.Zero, control.Handle); 1663Assert.NotEqual(IntPtr.Zero, control.Handle); 1785Assert.NotEqual(IntPtr.Zero, control.Handle); 2013Assert.NotEqual(IntPtr.Zero, control.Handle); 2111Assert.NotEqual(IntPtr.Zero, control.Handle); 2850Assert.NotEqual(IntPtr.Zero, control.Handle); 2967Assert.NotEqual(IntPtr.Zero, parent.Handle); 3054Assert.NotEqual(IntPtr.Zero, control.Handle); 3104Assert.NotEqual(IntPtr.Zero, control.Handle); 3124Assert.NotEqual(IntPtr.Zero, parent.Handle); 3155Assert.NotEqual(IntPtr.Zero, control.Handle); 3214Assert.NotEqual(IntPtr.Zero, control.Handle); 3437Assert.NotEqual(IntPtr.Zero, control.Handle); 3828Assert.NotEqual(IntPtr.Zero, control.Handle); 4352Assert.NotEqual(IntPtr.Zero, control.Handle); 4467Assert.NotEqual(IntPtr.Zero, control.Handle); 4533Assert.NotEqual(IntPtr.Zero, control.Handle); 4947Assert.NotEqual(IntPtr.Zero, control.Handle); 4993Assert.NotEqual(IntPtr.Zero, control.Handle); 5393Assert.NotEqual(IntPtr.Zero, control.Handle); 5456Assert.NotEqual(IntPtr.Zero, control.Handle); 5676Assert.NotEqual(IntPtr.Zero, intptr); 6139Assert.NotEqual(IntPtr.Zero, control.Handle); 6268Assert.NotEqual(IntPtr.Zero, parent.Handle); 6383Assert.NotEqual(IntPtr.Zero, control.Handle); 6490Assert.NotEqual(IntPtr.Zero, control.Handle); 6561Assert.NotEqual(IntPtr.Zero, control.Handle); 6574Assert.NotEqual(IntPtr.Zero, control.Handle); 6629Assert.NotEqual(IntPtr.Zero, control.Handle); 6640Assert.NotEqual(IntPtr.Zero, control.Handle); 6849Assert.NotEqual(IntPtr.Zero, control.Handle); 6942Assert.NotEqual(IntPtr.Zero, parent.Handle); 7066Assert.NotEqual(IntPtr.Zero, control.Handle); 7332Assert.NotEqual(IntPtr.Zero, control.Handle); 7425Assert.NotEqual(IntPtr.Zero, parent.Handle); 7551Assert.NotEqual(IntPtr.Zero, control.Handle); 7768Assert.NotEqual(IntPtr.Zero, control.Handle); 7807Assert.NotEqual(IntPtr.Zero, parent.Handle); 8203Assert.NotEqual(IntPtr.Zero, control.Handle); 8241Assert.NotEqual(IntPtr.Zero, control.Handle); 8279Assert.NotEqual(IntPtr.Zero, control.Handle); 8328Assert.NotEqual(IntPtr.Zero, parent.Handle); 8396Assert.NotEqual(IntPtr.Zero, parent.Handle); 8881Assert.NotEqual(IntPtr.Zero, control.Handle); 8941Assert.NotEqual(IntPtr.Zero, control.Handle); 9007Assert.NotEqual(IntPtr.Zero, control.Handle); 9077Assert.NotEqual(IntPtr.Zero, parent.Handle); 9166Assert.NotEqual(IntPtr.Zero, parent.Handle); 9509Assert.NotEqual(IntPtr.Zero, control.Handle); 9563Assert.NotEqual(IntPtr.Zero, parent.Handle); 9746Assert.NotEqual(IntPtr.Zero, control.Handle); 9921Assert.NotEqual(IntPtr.Zero, control.Handle); 9955Assert.NotEqual(IntPtr.Zero, control.Handle); 10152Assert.NotEqual(IntPtr.Zero, control.Handle); 10186Assert.NotEqual(IntPtr.Zero, control.Handle); 10249Assert.NotEqual(IntPtr.Zero, control.Handle); 10501Assert.NotEqual(IntPtr.Zero, control.Handle); 10529Assert.NotEqual(IntPtr.Zero, control.Handle); 10552Assert.NotEqual(IntPtr.Zero, control.Handle); 10560Assert.NotEqual(IntPtr.Zero, control.Handle); 10588Assert.NotEqual(IntPtr.Zero, control.Handle); 10611Assert.NotEqual(IntPtr.Zero, control.Handle); 10669Assert.NotEqual(IntPtr.Zero, control.Handle); 11543Assert.NotEqual(IntPtr.Zero, control.Handle); 11677Assert.NotEqual(IntPtr.Zero, parent.Handle); 11891Assert.NotEqual(IntPtr.Zero, control.Handle); 11983Assert.NotEqual(IntPtr.Zero, control.Handle); 12283Assert.NotEqual(IntPtr.Zero, control.Handle); 12374Assert.NotEqual(IntPtr.Zero, parent.Handle); 12498Assert.NotEqual(IntPtr.Zero, control.Handle); 12659Assert.NotEqual(IntPtr.Zero, control.Handle); 12777Assert.NotEqual(IntPtr.Zero, control.Handle); 12818Assert.NotEqual(IntPtr.Zero, parent.Handle); 13558Assert.NotEqual(IntPtr.Zero, control.Handle); 13687Assert.NotEqual(IntPtr.Zero, parent.Handle); 13793Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\CursorConverterTests.cs (1)
41Assert.NotEqual(IntPtr.Zero, cursor.Handle);
System\Windows\Forms\CursorsTests.cs (1)
54Assert.NotEqual(IntPtr.Zero, cursor.Handle);
System\Windows\Forms\CursorTests.cs (7)
55Assert.Throws<ArgumentException>("handle", () => new Cursor(IntPtr.Zero)); 70Assert.NotEqual(IntPtr.Zero, cursor.Handle); 121Assert.NotEqual(IntPtr.Zero, cursor.Handle); 158Assert.NotEqual(IntPtr.Zero, cursor.Handle); 232Assert.NotEqual(IntPtr.Zero, cursor.Handle); 331Assert.NotEqual(IntPtr.Zero, handle); 361Assert.NotEqual(IntPtr.Zero, cursor.Handle);
System\Windows\Forms\DataGridViewCellTests.cs (6)
511Assert.NotEqual(IntPtr.Zero, control.Handle); 570Assert.NotEqual(IntPtr.Zero, control.Handle); 1127Assert.NotEqual(IntPtr.Zero, control.Handle); 1171Assert.NotEqual(IntPtr.Zero, control.Handle); 4524Assert.NotEqual(IntPtr.Zero, control.Handle); 4584Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (11)
286Assert.NotEqual(IntPtr.Zero, control.Handle); 321Assert.NotEqual(IntPtr.Zero, control.Handle); 358Assert.NotEqual(IntPtr.Zero, control.Handle); 383Assert.NotEqual(IntPtr.Zero, control.Handle); 420Assert.NotEqual(IntPtr.Zero, control.Handle); 2721Assert.NotEqual(IntPtr.Zero, control.Handle); 2781Assert.NotEqual(IntPtr.Zero, control.Handle); 2810Assert.NotEqual(IntPtr.Zero, control.Handle); 2846Assert.NotEqual(IntPtr.Zero, control.Handle); 2873Assert.NotEqual(IntPtr.Zero, control.Handle); 2934Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\DataGridViewRowTests.cs (1)
1228Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\DataGridViewTests.cs (15)
198Assert.NotEqual(IntPtr.Zero, control.Handle); 265Assert.NotEqual(IntPtr.Zero, control.Handle); 550Assert.NotEqual(IntPtr.Zero, control.Handle); 584Assert.NotEqual(IntPtr.Zero, control.Handle); 888Assert.NotEqual(IntPtr.Zero, control.Handle); 1118Assert.NotEqual(IntPtr.Zero, control.Handle); 1189Assert.NotEqual(IntPtr.Zero, control.Handle); 1479Assert.NotEqual(IntPtr.Zero, control.Handle); 1517Assert.NotEqual(IntPtr.Zero, control.Handle); 1801Assert.NotEqual(IntPtr.Zero, control.Handle); 1892Assert.NotEqual(IntPtr.Zero, control.Handle); 1968Assert.NotEqual(IntPtr.Zero, control.Handle); 2160Assert.NotEqual(IntPtr.Zero, control.Handle); 2442Assert.NotEqual(IntPtr.Zero, control.Handle); 2641Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
167Assert.NotEqual(IntPtr.Zero, dataGridView.Handle);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (5)
145Assert.Equal(IntPtr.Zero, createParams.Parent); 422Assert.NotEqual(IntPtr.Zero, control.Handle); 491Assert.NotEqual(IntPtr.Zero, control.Handle); 1169Assert.NotEqual(IntPtr.Zero, control.Handle); 1278Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\DataObjectTests.cs (7)
2167result[0].ptd.Should().Be(IntPtr.Zero); 2177result[0].ptd.Should().Be(IntPtr.Zero); 2260result[0].ptd.Should().Be(IntPtr.Zero); 2270result[0].ptd.Should().Be(IntPtr.Zero); 2280result[0].ptd.Should().Be(IntPtr.Zero); 2357result[0].ptd.Should().Be(IntPtr.Zero); 2367result[0].ptd.Should().Be(IntPtr.Zero);
System\Windows\Forms\DateTimePickerTests.cs (1)
138Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
181Assert.Equal(IntPtr.Zero, createParams.Parent); 289Assert.NotEqual(IntPtr.Zero, control.Handle); 344Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (2)
141Assert.Equal(IntPtr.Zero, createParams.Parent); 402Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\DomainUpDownTests.cs (6)
179createParams.Parent.Should().Be(IntPtr.Zero); 206_control.Handle.Should().NotBe(IntPtr.Zero); 738_sub.Handle.Should().NotBe(IntPtr.Zero); 788_sub.Handle.Should().NotBe(IntPtr.Zero); 838_sub.Handle.Should().NotBe(IntPtr.Zero); 904_control.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\DragDropHelperTests.cs (1)
103ptd = IntPtr.Zero,
System\Windows\Forms\ErrorProviderTests.cs (1)
1183Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\FileDialogTests.cs (3)
36Assert.NotEqual(IntPtr.Zero, dialog.Instance); 74Assert.NotEqual(IntPtr.Zero, dialog.Instance); 630Assert.NotEqual(IntPtr.Zero, dialog.Instance);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
133Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\FontDialogTests.cs (19)
635yield return new object[] { showColor, (int)PInvokeCore.WM_INITDIALOG, IntPtr.Zero }; 636yield return new object[] { showColor, (int)PInvokeCore.WM_SETFOCUS, IntPtr.Zero }; 637yield return new object[] { showColor, (int)PInvokeCore.WM_COMMAND, IntPtr.Zero }; 640yield return new object[] { showColor, (int)CDM_SETDEFAULTFOCUS, IntPtr.Zero }; 642yield return new object[] { showColor, 0, IntPtr.Zero }; 643yield return new object[] { showColor, -1, IntPtr.Zero }; 657Assert.Equal(IntPtr.Zero, dialog.HookProc(IntPtr.Zero, msg, wparam, IntPtr.Zero)); 665yield return new object[] { showColor, (int)PInvokeCore.WM_INITDIALOG, IntPtr.Zero, 0 }; 666yield return new object[] { showColor, (int)PInvokeCore.WM_SETFOCUS, IntPtr.Zero, 0 }; 667yield return new object[] { showColor, (int)PInvokeCore.WM_COMMAND, IntPtr.Zero, 0 }; 671yield return new object[] { showColor, (int)CDM_SETDEFAULTFOCUS, IntPtr.Zero, 0 }; 673yield return new object[] { showColor, 0, IntPtr.Zero, 0 }; 674yield return new object[] { showColor, -1, IntPtr.Zero, 0 }; 689Assert.Equal(IntPtr.Zero, dialog.HookProc(control.Handle, msg, wparam, IntPtr.Zero)); 720Assert.Throws<ArgumentException>(() => dialog.HookProc(IntPtr.Zero, (int)PInvokeCore.WM_COMMAND, 0x402, IntPtr.Zero));
System\Windows\Forms\FormTests.cs (32)
182Assert.Equal(IntPtr.Zero, createParams.Parent); 196Assert.True(form.Handle != IntPtr.Zero); 407Assert.NotEqual(IntPtr.Zero, control.Handle); 460Assert.NotEqual(IntPtr.Zero, control.Handle); 507Assert.NotEqual(IntPtr.Zero, control.Handle); 715Assert.NotEqual(IntPtr.Zero, control.Handle); 754Assert.NotEqual(IntPtr.Zero, control.Handle); 797Assert.NotEqual(IntPtr.Zero, control.Handle); 842Assert.NotEqual(IntPtr.Zero, control.Handle); 896Assert.NotEqual(IntPtr.Zero, control.Handle); 1054Assert.True(form.Handle != IntPtr.Zero); 1126Assert.NotEqual(IntPtr.Zero, control.Handle); 1237Assert.True(parent.Handle != IntPtr.Zero); 1241Assert.True(control.Handle != IntPtr.Zero); 1424Assert.NotEqual(IntPtr.Zero, control.Handle); 1463Assert.NotEqual(IntPtr.Zero, control.Handle); 1498Assert.NotEqual(IntPtr.Zero, control.Handle); 1540Assert.NotEqual(IntPtr.Zero, control.Handle); 1572Assert.NotEqual(IntPtr.Zero, control.Handle); 1606Assert.NotEqual(IntPtr.Zero, control.Handle); 1642Assert.NotEqual(IntPtr.Zero, control.Handle); 1678Assert.NotEqual(IntPtr.Zero, control.Handle); 1710Assert.NotEqual(IntPtr.Zero, control.Handle); 1744Assert.NotEqual(IntPtr.Zero, control.Handle); 1793Assert.NotEqual(IntPtr.Zero, control.Handle); 1941Assert.NotEqual(IntPtr.Zero, control.Handle); 1995Assert.NotEqual(IntPtr.Zero, control.Handle); 2047Assert.NotEqual(IntPtr.Zero, control.Handle); 2296Assert.NotEqual(IntPtr.Zero, control.Handle); 2354Assert.NotEqual(IntPtr.Zero, control.Handle); 2498Assert.NotEqual(IntPtr.Zero, control.Handle); 2551Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\GroupBoxTests.cs (21)
118Assert.Equal(IntPtr.Zero, createParams.Parent); 146Assert.Equal(IntPtr.Zero, createParams.Parent); 386Assert.NotEqual(IntPtr.Zero, control.Handle); 434Assert.NotEqual(IntPtr.Zero, parent.Handle); 507Assert.NotEqual(IntPtr.Zero, parent.Handle); 707Assert.NotEqual(IntPtr.Zero, control.Handle); 761Assert.NotEqual(IntPtr.Zero, control.Handle); 824Assert.NotEqual(IntPtr.Zero, control.Handle); 887Assert.NotEqual(IntPtr.Zero, control.Handle); 986Assert.NotEqual(IntPtr.Zero, control.Handle); 1096Assert.NotEqual(IntPtr.Zero, control.Handle); 1128Assert.NotEqual(IntPtr.Zero, control.Handle); 1278Assert.NotEqual(IntPtr.Zero, control.Handle); 1323Assert.NotEqual(IntPtr.Zero, control.Handle); 1544Assert.NotEqual(IntPtr.Zero, control.Handle); 1902Assert.NotEqual(IntPtr.Zero, control.Handle); 2119Assert.NotEqual(IntPtr.Zero, control.Handle); 2180Assert.NotEqual(IntPtr.Zero, control.Handle); 2225Assert.NotEqual(IntPtr.Zero, control.Handle); 2268Assert.NotEqual(IntPtr.Zero, control.Handle); 2289Assert.Equal(IntPtr.Zero, m.Result);
System\Windows\Forms\HScrollBarTests.cs (1)
132Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (20)
20Assert.NotEqual(IntPtr.Zero, list.Handle); 30Assert.NotEqual(IntPtr.Zero, list.Handle); 112Assert.NotEqual(IntPtr.Zero, list.Handle); 288Assert.NotEqual(IntPtr.Zero, list.Handle); 490Assert.NotEqual(IntPtr.Zero, list.Handle); 559Assert.NotEqual(IntPtr.Zero, list.Handle); 628Assert.NotEqual(IntPtr.Zero, list.Handle); 705Assert.NotEqual(IntPtr.Zero, list.Handle); 774Assert.NotEqual(IntPtr.Zero, list.Handle); 847Assert.NotEqual(IntPtr.Zero, list.Handle); 929Assert.NotEqual(IntPtr.Zero, list.Handle); 1017Assert.NotEqual(IntPtr.Zero, list.Handle); 1040Assert.NotEqual(IntPtr.Zero, list.Handle); 1138Assert.NotEqual(IntPtr.Zero, list.Handle); 1201Assert.NotEqual(IntPtr.Zero, list.Handle); 1353Assert.NotEqual(IntPtr.Zero, list.Handle); 1457Assert.NotEqual(IntPtr.Zero, list.Handle); 1509Assert.NotEqual(IntPtr.Zero, list.Handle); 1571Assert.NotEqual(IntPtr.Zero, list.Handle); 1661Assert.NotEqual(IntPtr.Zero, list.Handle);
System\Windows\Forms\ImageListTests.cs (28)
111Assert.NotEqual(IntPtr.Zero, list.Handle); 127Assert.NotEqual(IntPtr.Zero, list.Handle); 142Assert.NotEqual(IntPtr.Zero, list.Handle); 149Assert.NotEqual(IntPtr.Zero, list.Handle); 157Assert.NotEqual(IntPtr.Zero, list.Handle); 165Assert.NotEqual(IntPtr.Zero, list.Handle); 216Assert.NotEqual(IntPtr.Zero, handle); 292Assert.NotEqual(IntPtr.Zero, list.Handle); 308Assert.NotEqual(IntPtr.Zero, list.Handle); 323Assert.NotEqual(IntPtr.Zero, list.Handle); 330Assert.NotEqual(IntPtr.Zero, list.Handle); 337Assert.NotEqual(IntPtr.Zero, list.Handle); 344Assert.NotEqual(IntPtr.Zero, list.Handle); 351Assert.NotEqual(IntPtr.Zero, list.Handle); 359Assert.NotEqual(IntPtr.Zero, list.Handle); 529Assert.NotEqual(IntPtr.Zero, sourceList.Handle); 554Assert.NotEqual(IntPtr.Zero, sourceList.Handle); 558Assert.NotEqual(IntPtr.Zero, list.Handle); 606Assert.NotEqual(IntPtr.Zero, list.Handle); 637Assert.NotEqual(IntPtr.Zero, list.Handle); 645Assert.NotEqual(IntPtr.Zero, list.Handle); 732Assert.NotEqual(IntPtr.Zero, list.Handle); 748Assert.NotEqual(IntPtr.Zero, list.Handle); 874Assert.NotEqual(IntPtr.Zero, list.Handle); 893Assert.NotEqual(IntPtr.Zero, list.Handle); 945Assert.NotEqual(IntPtr.Zero, list.Handle); 974Assert.NotEqual(IntPtr.Zero, list.Handle); 1012Assert.NotEqual(IntPtr.Zero, list.Handle);
System\Windows\Forms\InputLanguageTests.cs (2)
187language.Handle.Should().NotBe(IntPtr.Zero); 204Assert.NotEqual(IntPtr.Zero, language.Handle);
System\Windows\Forms\LabelTests.cs (4)
129Assert.Equal(IntPtr.Zero, createParams.Parent); 189Assert.NotEqual(IntPtr.Zero, control.Handle); 206Assert.NotEqual(IntPtr.Zero, control.Handle); 235Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the toolTip native window Handle
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (28)
144Assert.NotEqual(IntPtr.Zero, owner.Handle); 186Assert.NotEqual(IntPtr.Zero, owner.Handle); 346Assert.NotEqual(IntPtr.Zero, owner.Handle); 408Assert.NotEqual(IntPtr.Zero, owner.Handle); 526Assert.NotEqual(IntPtr.Zero, owner.Handle); 567Assert.NotEqual(IntPtr.Zero, owner.Handle); 670Assert.NotEqual(IntPtr.Zero, owner.Handle); 714Assert.NotEqual(IntPtr.Zero, owner.Handle); 881Assert.NotEqual(IntPtr.Zero, owner.Handle); 916Assert.NotEqual(IntPtr.Zero, owner.Handle); 951Assert.NotEqual(IntPtr.Zero, owner.Handle); 987Assert.NotEqual(IntPtr.Zero, owner.Handle); 1195Assert.NotEqual(IntPtr.Zero, owner.Handle); 1258Assert.NotEqual(IntPtr.Zero, owner.Handle); 1395Assert.NotEqual(IntPtr.Zero, owner.Handle); 1448Assert.NotEqual(IntPtr.Zero, owner.Handle); 1625Assert.NotEqual(IntPtr.Zero, owner.Handle); 1670Assert.NotEqual(IntPtr.Zero, owner.Handle); 1844Assert.NotEqual(IntPtr.Zero, owner.Handle); 1906Assert.NotEqual(IntPtr.Zero, owner.Handle); 2098Assert.NotEqual(IntPtr.Zero, owner.Handle); 2133Assert.NotEqual(IntPtr.Zero, owner.Handle); 2168Assert.NotEqual(IntPtr.Zero, owner.Handle); 2204Assert.NotEqual(IntPtr.Zero, owner.Handle); 2440Assert.NotEqual(IntPtr.Zero, owner.Handle); 2506Assert.NotEqual(IntPtr.Zero, owner.Handle); 2666Assert.NotEqual(IntPtr.Zero, owner.Handle); 2722Assert.NotEqual(IntPtr.Zero, owner.Handle);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (105)
501Assert.NotEqual(IntPtr.Zero, owner.Handle); 590Assert.NotEqual(IntPtr.Zero, owner.Handle); 914Assert.NotEqual(IntPtr.Zero, owner.Handle); 987Assert.NotEqual(IntPtr.Zero, owner.Handle); 1064Assert.NotEqual(IntPtr.Zero, owner.Handle); 1164Assert.NotEqual(IntPtr.Zero, owner.Handle); 1473Assert.NotEqual(IntPtr.Zero, owner.Handle); 1552Assert.NotEqual(IntPtr.Zero, owner.Handle); 1634Assert.NotEqual(IntPtr.Zero, owner.Handle); 1716Assert.NotEqual(IntPtr.Zero, owner.Handle); 1947Assert.NotEqual(IntPtr.Zero, owner.Handle); 1992Assert.NotEqual(IntPtr.Zero, owner.Handle); 2041Assert.NotEqual(IntPtr.Zero, owner.Handle); 2101Assert.NotEqual(IntPtr.Zero, owner.Handle); 2213Assert.NotEqual(IntPtr.Zero, owner.Handle); 2324Assert.NotEqual(IntPtr.Zero, owner.Handle); 2376Assert.NotEqual(IntPtr.Zero, owner.Handle); 2431Assert.NotEqual(IntPtr.Zero, owner.Handle); 2486Assert.NotEqual(IntPtr.Zero, owner.Handle); 2671Assert.NotEqual(IntPtr.Zero, owner.Handle); 2715Assert.NotEqual(IntPtr.Zero, owner.Handle); 2763Assert.NotEqual(IntPtr.Zero, owner.Handle); 2811Assert.NotEqual(IntPtr.Zero, owner.Handle); 2998Assert.NotEqual(IntPtr.Zero, owner.Handle); 3055Assert.NotEqual(IntPtr.Zero, owner.Handle); 3115Assert.NotEqual(IntPtr.Zero, owner.Handle); 3175Assert.NotEqual(IntPtr.Zero, owner.Handle); 3385Assert.NotEqual(IntPtr.Zero, owner.Handle); 3434Assert.NotEqual(IntPtr.Zero, owner.Handle); 3487Assert.NotEqual(IntPtr.Zero, owner.Handle); 3540Assert.NotEqual(IntPtr.Zero, owner.Handle); 3689Assert.NotEqual(IntPtr.Zero, owner.Handle); 3795Assert.NotEqual(IntPtr.Zero, owner.Handle); 3832Assert.NotEqual(IntPtr.Zero, owner.Handle); 3869Assert.NotEqual(IntPtr.Zero, owner.Handle); 3907Assert.NotEqual(IntPtr.Zero, owner.Handle); 4296Assert.NotEqual(IntPtr.Zero, owner.Handle); 4375Assert.NotEqual(IntPtr.Zero, owner.Handle); 4457Assert.NotEqual(IntPtr.Zero, owner.Handle); 4539Assert.NotEqual(IntPtr.Zero, owner.Handle); 4762Assert.NotEqual(IntPtr.Zero, owner.Handle); 4807Assert.NotEqual(IntPtr.Zero, owner.Handle); 4856Assert.NotEqual(IntPtr.Zero, owner.Handle); 4916Assert.NotEqual(IntPtr.Zero, owner.Handle); 5051Assert.NotEqual(IntPtr.Zero, owner.Handle); 5240Assert.NotEqual(IntPtr.Zero, owner.Handle); 5312Assert.NotEqual(IntPtr.Zero, owner.Handle); 5392Assert.NotEqual(IntPtr.Zero, owner.Handle); 5467Assert.NotEqual(IntPtr.Zero, owner.Handle); 5732Assert.NotEqual(IntPtr.Zero, owner.Handle); 5794Assert.NotEqual(IntPtr.Zero, owner.Handle); 5860Assert.NotEqual(IntPtr.Zero, owner.Handle); 5928Assert.NotEqual(IntPtr.Zero, owner.Handle); 6157Assert.NotEqual(IntPtr.Zero, owner.Handle); 6214Assert.NotEqual(IntPtr.Zero, owner.Handle); 6278Assert.NotEqual(IntPtr.Zero, owner.Handle); 6338Assert.NotEqual(IntPtr.Zero, owner.Handle); 6587Assert.NotEqual(IntPtr.Zero, owner.Handle); 6649Assert.NotEqual(IntPtr.Zero, owner.Handle); 6715Assert.NotEqual(IntPtr.Zero, owner.Handle); 6783Assert.NotEqual(IntPtr.Zero, owner.Handle); 7304Assert.NotEqual(IntPtr.Zero, owner.Handle); 7395Assert.NotEqual(IntPtr.Zero, owner.Handle); 7719Assert.NotEqual(IntPtr.Zero, owner.Handle); 7792Assert.NotEqual(IntPtr.Zero, owner.Handle); 7869Assert.NotEqual(IntPtr.Zero, owner.Handle); 7969Assert.NotEqual(IntPtr.Zero, owner.Handle); 8278Assert.NotEqual(IntPtr.Zero, owner.Handle); 8357Assert.NotEqual(IntPtr.Zero, owner.Handle); 8439Assert.NotEqual(IntPtr.Zero, owner.Handle); 8521Assert.NotEqual(IntPtr.Zero, owner.Handle); 8752Assert.NotEqual(IntPtr.Zero, owner.Handle); 8797Assert.NotEqual(IntPtr.Zero, owner.Handle); 8846Assert.NotEqual(IntPtr.Zero, owner.Handle); 8906Assert.NotEqual(IntPtr.Zero, owner.Handle); 9018Assert.NotEqual(IntPtr.Zero, owner.Handle); 9117Assert.NotEqual(IntPtr.Zero, owner.Handle); 9154Assert.NotEqual(IntPtr.Zero, owner.Handle); 9191Assert.NotEqual(IntPtr.Zero, owner.Handle); 9229Assert.NotEqual(IntPtr.Zero, owner.Handle); 9618Assert.NotEqual(IntPtr.Zero, owner.Handle); 9697Assert.NotEqual(IntPtr.Zero, owner.Handle); 9779Assert.NotEqual(IntPtr.Zero, owner.Handle); 9861Assert.NotEqual(IntPtr.Zero, owner.Handle); 10084Assert.NotEqual(IntPtr.Zero, owner.Handle); 10129Assert.NotEqual(IntPtr.Zero, owner.Handle); 10178Assert.NotEqual(IntPtr.Zero, owner.Handle); 10238Assert.NotEqual(IntPtr.Zero, owner.Handle); 10373Assert.NotEqual(IntPtr.Zero, owner.Handle); 10562Assert.NotEqual(IntPtr.Zero, owner.Handle); 10634Assert.NotEqual(IntPtr.Zero, owner.Handle); 10714Assert.NotEqual(IntPtr.Zero, owner.Handle); 10789Assert.NotEqual(IntPtr.Zero, owner.Handle); 11054Assert.NotEqual(IntPtr.Zero, owner.Handle); 11116Assert.NotEqual(IntPtr.Zero, owner.Handle); 11182Assert.NotEqual(IntPtr.Zero, owner.Handle); 11250Assert.NotEqual(IntPtr.Zero, owner.Handle); 11479Assert.NotEqual(IntPtr.Zero, owner.Handle); 11536Assert.NotEqual(IntPtr.Zero, owner.Handle); 11600Assert.NotEqual(IntPtr.Zero, owner.Handle); 11660Assert.NotEqual(IntPtr.Zero, owner.Handle); 11909Assert.NotEqual(IntPtr.Zero, owner.Handle); 11971Assert.NotEqual(IntPtr.Zero, owner.Handle); 12037Assert.NotEqual(IntPtr.Zero, owner.Handle); 12105Assert.NotEqual(IntPtr.Zero, owner.Handle);
System\Windows\Forms\ListBoxTests.cs (76)
150Assert.Equal(IntPtr.Zero, createParams.Parent); 176Assert.Equal(IntPtr.Zero, createParams.Parent); 202Assert.Equal(IntPtr.Zero, createParams.Parent); 228Assert.Equal(IntPtr.Zero, createParams.Parent); 255Assert.Equal(IntPtr.Zero, createParams.Parent); 284Assert.Equal(IntPtr.Zero, createParams.Parent); 312Assert.Equal(IntPtr.Zero, createParams.Parent); 339Assert.Equal(IntPtr.Zero, createParams.Parent); 383Assert.NotEqual(IntPtr.Zero, control.Handle); 619Assert.NotEqual(IntPtr.Zero, control.Handle); 701Assert.NotEqual(IntPtr.Zero, control.Handle); 735Assert.NotEqual(IntPtr.Zero, control.Handle); 767Assert.NotEqual(IntPtr.Zero, control.Handle); 996Assert.NotEqual(IntPtr.Zero, control.Handle); 1119Assert.NotEqual(IntPtr.Zero, control.Handle); 1168Assert.NotEqual(IntPtr.Zero, control.Handle); 1280Assert.NotEqual(IntPtr.Zero, control.Handle); 1425Assert.NotEqual(IntPtr.Zero, control.Handle); 1462Assert.NotEqual(IntPtr.Zero, control.Handle); 1550Assert.NotEqual(IntPtr.Zero, control.Handle); 1604Assert.NotEqual(IntPtr.Zero, control.Handle); 1670Assert.NotEqual(IntPtr.Zero, control.Handle); 1764Assert.NotEqual(IntPtr.Zero, control.Handle); 1802Assert.NotEqual(IntPtr.Zero, control.Handle); 1921Assert.NotEqual(IntPtr.Zero, control.Handle); 1989Assert.NotEqual(IntPtr.Zero, control.Handle); 2134Assert.NotEqual(IntPtr.Zero, control.Handle); 2160Assert.NotEqual(IntPtr.Zero, control.Handle); 2263Assert.NotEqual(IntPtr.Zero, control.Handle); 2303Assert.NotEqual(IntPtr.Zero, control.Handle); 2317Assert.NotEqual(IntPtr.Zero, control.Handle); 2501Assert.NotEqual(IntPtr.Zero, control.Handle); 2565Assert.NotEqual(IntPtr.Zero, control.Handle); 2630Assert.NotEqual(IntPtr.Zero, control.Handle); 2657Assert.NotEqual(IntPtr.Zero, control.Handle); 2766Assert.NotEqual(IntPtr.Zero, control.Handle); 2780Assert.NotEqual(IntPtr.Zero, control.Handle); 2992Assert.NotEqual(IntPtr.Zero, control.Handle); 3067Assert.NotEqual(IntPtr.Zero, control.Handle); 3143Assert.NotEqual(IntPtr.Zero, control.Handle); 3174Assert.NotEqual(IntPtr.Zero, control.Handle); 3301Assert.NotEqual(IntPtr.Zero, control.Handle); 3586Assert.NotEqual(IntPtr.Zero, control.Handle); 3648Assert.NotEqual(IntPtr.Zero, control.Handle); 3690Assert.NotEqual(IntPtr.Zero, control.Handle); 3742Assert.NotEqual(IntPtr.Zero, control.Handle); 3800Assert.NotEqual(IntPtr.Zero, control.Handle); 3858Assert.NotEqual(IntPtr.Zero, control.Handle); 3997Assert.NotEqual(IntPtr.Zero, control.Handle); 4037Assert.NotEqual(IntPtr.Zero, control.Handle); 4080Assert.NotEqual(IntPtr.Zero, control.Handle); 4239Assert.NotEqual(IntPtr.Zero, control.Handle); 4304Assert.NotEqual(IntPtr.Zero, control.Handle); 4362Assert.NotEqual(IntPtr.Zero, control.Handle); 4399Assert.NotEqual(IntPtr.Zero, control.Handle); 4431Assert.NotEqual(IntPtr.Zero, control.Handle); 4464Assert.NotEqual(IntPtr.Zero, control.Handle); 4524Assert.NotEqual(IntPtr.Zero, control.Handle); 4586Assert.NotEqual(IntPtr.Zero, control.Handle); 4651Assert.NotEqual(IntPtr.Zero, control.Handle); 4713Assert.NotEqual(IntPtr.Zero, control.Handle); 4841Assert.NotEqual(IntPtr.Zero, control.Handle); 4874Assert.NotEqual(IntPtr.Zero, control.Handle); 5188Assert.NotEqual(IntPtr.Zero, control.Handle); 5213Assert.NotEqual(IntPtr.Zero, control.Handle); 5253Assert.NotEqual(IntPtr.Zero, control.Handle); 5283Assert.NotEqual(IntPtr.Zero, control.Handle); 5354Assert.NotEqual(IntPtr.Zero, control.Handle); 5399Assert.NotEqual(IntPtr.Zero, control.Handle); 5443m.Result = IntPtr.Zero; 5485Assert.NotEqual(IntPtr.Zero, control.Handle); 5606Assert.NotEqual(IntPtr.Zero, control.Handle); 5760Assert.NotEqual(IntPtr.Zero, control.Handle); 5919Assert.NotEqual(IntPtr.Zero, control.Handle); 5949Assert.NotEqual(IntPtr.Zero, control.Handle); 6037Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ListControlTests.cs (1)
126Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\ListViewGroupCollectionTests.cs (8)
63Assert.NotEqual(IntPtr.Zero, listView.Handle); 97Assert.NotEqual(IntPtr.Zero, listView.Handle); 390Assert.NotEqual(IntPtr.Zero, listView.Handle); 426Assert.NotEqual(IntPtr.Zero, listView.Handle); 616Assert.NotEqual(IntPtr.Zero, listView.Handle); 755Assert.NotEqual(IntPtr.Zero, listView.Handle); 787Assert.NotEqual(IntPtr.Zero, listView.Handle); 940Assert.NotEqual(IntPtr.Zero, listView.Handle);
System\Windows\Forms\ListViewGroupTests.cs (18)
179Assert.NotEqual(IntPtr.Zero, listView.Handle); 227Assert.NotEqual(IntPtr.Zero, listView.Handle); 320Assert.NotEqual(IntPtr.Zero, listView.Handle); 367Assert.NotEqual(IntPtr.Zero, listView.Handle); 452Assert.NotEqual(IntPtr.Zero, listView.Handle); 504Assert.NotEqual(IntPtr.Zero, listView.Handle); 574Assert.NotEqual(IntPtr.Zero, listView.Handle); 617Assert.NotEqual(IntPtr.Zero, listView.Handle); 704Assert.NotEqual(IntPtr.Zero, listView.Handle); 760Assert.NotEqual(IntPtr.Zero, listView.Handle); 835Assert.NotEqual(IntPtr.Zero, listView.Handle); 878Assert.NotEqual(IntPtr.Zero, listView.Handle); 956Assert.NotEqual(IntPtr.Zero, listView.Handle); 1012Assert.NotEqual(IntPtr.Zero, listView.Handle); 1097Assert.NotEqual(IntPtr.Zero, listView.Handle); 1134Assert.NotEqual(IntPtr.Zero, listView.Handle); 1239Assert.NotEqual(IntPtr.Zero, listView.Handle); 1283Assert.NotEqual(IntPtr.Zero, listView.Handle);
System\Windows\Forms\ListViewInsertionMarkTests.cs (16)
51Assert.NotEqual(IntPtr.Zero, control.Handle); 95Assert.NotEqual(IntPtr.Zero, control.Handle); 146Assert.NotEqual(IntPtr.Zero, control.Handle); 199Assert.NotEqual(IntPtr.Zero, control.Handle); 230Assert.NotEqual(IntPtr.Zero, control.Handle); 257Assert.NotEqual(IntPtr.Zero, control.Handle); 273m.Result = IntPtr.Zero; 296Assert.NotEqual(IntPtr.Zero, control.Handle); 334Assert.NotEqual(IntPtr.Zero, control.Handle); 369Assert.NotEqual(IntPtr.Zero, control.Handle); 428Assert.NotEqual(IntPtr.Zero, control.Handle); 468Assert.NotEqual(IntPtr.Zero, control.Handle); 481Assert.NotEqual(IntPtr.Zero, control.Handle); 523Assert.NotEqual(IntPtr.Zero, control.Handle); 536Assert.NotEqual(IntPtr.Zero, control.Handle); 576Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ListViewSubItemTests.cs (1)
210Assert.NotEqual(IntPtr.Zero, listView.Handle);
System\Windows\Forms\ListViewTests.cs (63)
168Assert.Equal(IntPtr.Zero, createParams.Parent); 202Assert.NotEqual(IntPtr.Zero, listView.Handle); 300Assert.NotEqual(IntPtr.Zero, listView.Handle); 360Assert.NotEqual(IntPtr.Zero, listView.Handle); 420Assert.NotEqual(IntPtr.Zero, listView.Handle); 486Assert.NotEqual(IntPtr.Zero, control.Handle); 515Assert.NotEqual(IntPtr.Zero, control.Handle); 667Assert.NotEqual(IntPtr.Zero, listView.Handle); 707Assert.NotEqual(IntPtr.Zero, listView.Handle); 763Assert.NotEqual(IntPtr.Zero, listView.Handle); 965Assert.NotEqual(IntPtr.Zero, listView.Handle); 1009Assert.NotEqual(IntPtr.Zero, listView.Handle); 1054Assert.NotEqual(IntPtr.Zero, listView.Handle); 1183Assert.NotEqual(IntPtr.Zero, control.Handle); 1273Assert.NotEqual(IntPtr.Zero, control.Handle); 1291Assert.NotEqual(IntPtr.Zero, control.Handle); 1348Assert.NotEqual(IntPtr.Zero, control.Handle); 1377Assert.NotEqual(IntPtr.Zero, control.Handle); 1445Assert.NotEqual(IntPtr.Zero, listView.Handle); 1505Assert.NotEqual(IntPtr.Zero, listView.Handle); 1663Assert.NotEqual(IntPtr.Zero, listView.Handle); 1749Assert.NotEqual(IntPtr.Zero, listView.Handle); 1809Assert.NotEqual(IntPtr.Zero, listView.Handle); 1848Assert.NotEqual(IntPtr.Zero, control.Handle); 1859Assert.NotEqual(IntPtr.Zero, control.Handle); 1976Assert.NotEqual(IntPtr.Zero, control.Handle); 1986Assert.NotEqual(IntPtr.Zero, control.Handle); 1993yield return new object[] { IntPtr.Zero, 1 }; 2007Assert.NotEqual(IntPtr.Zero, control.Handle); 2020Assert.Equal(IntPtr.Zero, m.WParam); 2021Assert.Equal(IntPtr.Zero, m.LParam); 2028Assert.Equal(IntPtr.Zero, m.LParam); 2061Assert.NotEqual(IntPtr.Zero, listView.Handle); 2095Assert.NotEqual(IntPtr.Zero, listView.Handle); 2155Assert.NotEqual(IntPtr.Zero, listView.Handle); 2215Assert.NotEqual(IntPtr.Zero, listView.Handle); 2302Assert.NotEqual(IntPtr.Zero, listView.Handle); 2390Assert.NotEqual(IntPtr.Zero, listView.Handle); 2450Assert.NotEqual(IntPtr.Zero, listView.Handle); 2606Assert.NotEqual(IntPtr.Zero, listView.Handle); 2693Assert.NotEqual(IntPtr.Zero, listView.Handle); 2751Assert.NotEqual(IntPtr.Zero, listView.Handle); 2811Assert.NotEqual(IntPtr.Zero, listView.Handle); 2871Assert.NotEqual(IntPtr.Zero, listView.Handle); 2931Assert.NotEqual(IntPtr.Zero, listView.Handle); 3013Assert.NotEqual(IntPtr.Zero, listView.Handle); 3054Assert.NotEqual(IntPtr.Zero, listView.Handle); 3114Assert.NotEqual(IntPtr.Zero, listView.Handle); 3296Assert.NotEqual(IntPtr.Zero, listView.Handle); 3409Assert.NotEqual(IntPtr.Zero, listView.Handle); 3467Assert.NotEqual(IntPtr.Zero, listView.Handle); 3737Assert.NotEqual(IntPtr.Zero, listView.Handle); 3927Assert.NotEqual(IntPtr.Zero, listView.Handle); 3992Assert.NotEqual(IntPtr.Zero, listView.Handle); 4051Assert.NotEqual(IntPtr.Zero, listView.Handle); 4114Assert.NotEqual(IntPtr.Zero, control.Handle); 4159Assert.NotEqual(IntPtr.Zero, control.Handle); 4188Assert.NotEqual(IntPtr.Zero, control.Handle); 4204m.Result = IntPtr.Zero; 4248Assert.NotEqual(IntPtr.Zero, control.Handle); 4741Assert.NotEqual(IntPtr.Zero, listView.Handle); 4818Assert.NotEqual(IntPtr.Zero, listView.Handle); 5126Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the toolTip native window Handle
System\Windows\Forms\MdiClientTests.cs (9)
335Assert.NotEqual(IntPtr.Zero, control.Handle); 360Assert.NotEqual(IntPtr.Zero, control.Handle); 385Assert.NotEqual(IntPtr.Zero, control.Handle); 430Assert.NotEqual(IntPtr.Zero, control.Handle); 632Assert.NotEqual(IntPtr.Zero, control.Handle); 758Assert.NotEqual(IntPtr.Zero, parent.Handle); 910Assert.NotEqual(IntPtr.Zero, parent.Handle); 1072Assert.NotEqual(IntPtr.Zero, parent.Handle); 1211Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\MenuStripTests.cs (10)
186Assert.NotEqual(IntPtr.Zero, control.Handle); 272Assert.NotEqual(IntPtr.Zero, control.Handle); 379Assert.NotEqual(IntPtr.Zero, control.Handle); 580Assert.NotEqual(IntPtr.Zero, control.Handle); 646Assert.NotEqual(IntPtr.Zero, control.Handle); 760Assert.Equal(IntPtr.Zero, m.Result); 771Assert.NotEqual(IntPtr.Zero, control.Handle); 785Assert.Equal(IntPtr.Zero, m.Result); 796Assert.NotEqual(IntPtr.Zero, control.Handle); 817Assert.Equal(IntPtr.Zero, m.Result);
System\Windows\Forms\MessageTests.cs (4)
87yield return new object[] { IntPtr.Zero, 1, IntPtr.Zero, IntPtr.Zero }; 100Assert.Equal(IntPtr.Zero, message.Result);
System\Windows\Forms\MonthCalendarTests.cs (63)
157Assert.Equal(IntPtr.Zero, createParams.Parent); 237Assert.NotEqual(IntPtr.Zero, calendar.Handle); 315Assert.NotEqual(IntPtr.Zero, control.Handle); 565Assert.NotEqual(IntPtr.Zero, calendar.Handle); 667Assert.NotEqual(IntPtr.Zero, calendar.Handle); 698Assert.NotEqual(IntPtr.Zero, calendar.Handle); 774Assert.NotEqual(IntPtr.Zero, control.Handle); 850Assert.NotEqual(IntPtr.Zero, calendar.Handle); 889Assert.NotEqual(IntPtr.Zero, calendar.Handle); 961Assert.NotEqual(IntPtr.Zero, control.Handle); 1029Assert.NotEqual(IntPtr.Zero, control.Handle); 1057Assert.NotEqual(IntPtr.Zero, control.Handle); 1068Assert.NotEqual(IntPtr.Zero, control.Handle); 1088Assert.NotEqual(IntPtr.Zero, control.Handle); 1099Assert.NotEqual(IntPtr.Zero, control.Handle); 1110Assert.NotEqual(IntPtr.Zero, control.Handle); 1121Assert.NotEqual(IntPtr.Zero, control.Handle); 1132Assert.NotEqual(IntPtr.Zero, control.Handle); 1143Assert.NotEqual(IntPtr.Zero, control.Handle); 1160Assert.NotEqual(IntPtr.Zero, control.Handle); 1172Assert.NotEqual(IntPtr.Zero, control.Handle); 1200Assert.NotEqual(IntPtr.Zero, control.Handle); 1244Assert.NotEqual(IntPtr.Zero, control.Handle); 1346Assert.NotEqual(IntPtr.Zero, calendar.Handle); 1412Assert.NotEqual(IntPtr.Zero, calendar.Handle); 1479Assert.NotEqual(IntPtr.Zero, calendar.Handle); 1591Assert.NotEqual(IntPtr.Zero, calendar.Handle); 1657Assert.NotEqual(IntPtr.Zero, control.Handle); 1771Assert.NotEqual(IntPtr.Zero, control.Handle); 1859Assert.NotEqual(IntPtr.Zero, control.Handle); 1910Assert.NotEqual(IntPtr.Zero, calendar.Handle); 1979Assert.NotEqual(IntPtr.Zero, calendar.Handle); 2061Assert.NotEqual(IntPtr.Zero, calendar.Handle); 2164Assert.NotEqual(IntPtr.Zero, calendar.Handle); 2258Assert.NotEqual(IntPtr.Zero, control.Handle); 2330Assert.NotEqual(IntPtr.Zero, control.Handle); 2390Assert.NotEqual(IntPtr.Zero, control.Handle); 2426Assert.NotEqual(IntPtr.Zero, control.Handle); 2462Assert.NotEqual(IntPtr.Zero, control.Handle); 2489Assert.NotEqual(IntPtr.Zero, control.Handle); 2503m.Result = IntPtr.Zero; 2550Assert.NotEqual(IntPtr.Zero, control.Handle); 2655Assert.NotEqual(IntPtr.Zero, control.Handle); 2742Assert.NotEqual(IntPtr.Zero, calendar.Handle); 2801Assert.NotEqual(IntPtr.Zero, calendar.Handle); 2836Assert.NotEqual(IntPtr.Zero, control.Handle); 2879Assert.NotEqual(IntPtr.Zero, calendar.Handle); 2955Assert.NotEqual(IntPtr.Zero, calendar.Handle); 3029Assert.NotEqual(IntPtr.Zero, calendar.Handle); 3136Assert.NotEqual(IntPtr.Zero, calendar.Handle); 3243Assert.NotEqual(IntPtr.Zero, calendar.Handle); 3314Assert.NotEqual(IntPtr.Zero, control.Handle); 3392Assert.NotEqual(IntPtr.Zero, control.Handle); 3565Assert.NotEqual(IntPtr.Zero, control.Handle); 3636Assert.NotEqual(IntPtr.Zero, control.Handle); 3689Assert.NotEqual(IntPtr.Zero, control.Handle); 3840Assert.NotEqual(IntPtr.Zero, control.Handle); 3881Assert.NotEqual(IntPtr.Zero, control.Handle); 3906Assert.NotEqual(IntPtr.Zero, handle1); 3911Assert.NotEqual(IntPtr.Zero, handle2); 3918Assert.NotEqual(IntPtr.Zero, handle3); 3990Assert.NotEqual(IntPtr.Zero, calendar.Handle); 4097Assert.NotEqual(IntPtr.Zero, calendar.Handle);
System\Windows\Forms\NativeWindowTests.cs (28)
16Assert.Equal(IntPtr.Zero, window.Handle); 57Assert.Equal(IntPtr.Zero, window.Handle); 69window.AssignHandle(IntPtr.Zero); 70Assert.Equal(IntPtr.Zero, window.Handle); 111Assert.NotEqual(IntPtr.Zero, window1.Handle); 119Assert.NotEqual(IntPtr.Zero, window2.Handle); 154Assert.NotEqual(IntPtr.Zero, window.Handle); 168Assert.Equal(IntPtr.Zero, window.Handle); 195Assert.Equal(IntPtr.Zero, window.Handle); 209Assert.NotEqual(IntPtr.Zero, window1.Handle); 217Assert.Equal(IntPtr.Zero, window2.Handle); 232Assert.Equal(IntPtr.Zero, window.Handle); 242Assert.Equal(IntPtr.Zero, window.Handle); 253Assert.Equal(IntPtr.Zero, window.Handle); 262Assert.Equal(IntPtr.Zero, window.Handle); 281Assert.Equal(IntPtr.Zero, m.Result); 282Assert.NotEqual(IntPtr.Zero, window.Handle); 307Assert.Equal(IntPtr.Zero, m.Result); 332Assert.Equal(IntPtr.Zero, m.Result); 398Assert.Equal(IntPtr.Zero, m.Result); 410Assert.Equal(IntPtr.Zero, window.Handle); 420Assert.Equal(IntPtr.Zero, window.Handle); 432Assert.Equal(IntPtr.Zero, window.Handle); 441Assert.Equal(IntPtr.Zero, window.Handle); 461Assert.Equal(IntPtr.Zero, m.Result); 486Assert.Equal(IntPtr.Zero, m.Result); 511Assert.Equal(IntPtr.Zero, m.Result); 531Assert.Equal(IntPtr.Zero, m.Result);
System\Windows\Forms\PanelTests.cs (10)
131Assert.Equal(IntPtr.Zero, createParams.Parent); 157Assert.Equal(IntPtr.Zero, createParams.Parent); 374Assert.NotEqual(IntPtr.Zero, control.Handle); 422Assert.NotEqual(IntPtr.Zero, parent.Handle); 495Assert.NotEqual(IntPtr.Zero, parent.Handle); 578Assert.NotEqual(IntPtr.Zero, control.Handle); 680Assert.NotEqual(IntPtr.Zero, control.Handle); 772Assert.NotEqual(IntPtr.Zero, control.Handle); 1027Assert.NotEqual(IntPtr.Zero, control.Handle); 1093Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\PictureBoxTests.cs (22)
132Assert.Equal(IntPtr.Zero, createParams.Parent); 161Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 260Assert.NotEqual(IntPtr.Zero, control.Handle); 353Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 373Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 567Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 585Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 672Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 693Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 942Assert.NotEqual(IntPtr.Zero, control.Handle); 1050Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 1070Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 1312Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 1335Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 1485Assert.NotEqual(IntPtr.Zero, control.Handle); 1575Assert.NotEqual(IntPtr.Zero, control.Handle); 1658Assert.NotEqual(IntPtr.Zero, control.Handle); 1950Assert.NotEqual(IntPtr.Zero, pictureBox.Handle); 2219Assert.NotEqual(IntPtr.Zero, control.Handle); 2278Assert.NotEqual(IntPtr.Zero, control.Handle); 2700Assert.NotEqual(IntPtr.Zero, control.Handle); 2756Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ProgressBarTests.cs (28)
118Assert.Equal(IntPtr.Zero, createParams.Parent); 157Assert.Equal(IntPtr.Zero, createParams.Parent); 186Assert.Equal(IntPtr.Zero, createParams.Parent); 439Assert.NotEqual(IntPtr.Zero, control.Handle); 564Assert.NotEqual(IntPtr.Zero, control.Handle); 695Assert.NotEqual(IntPtr.Zero, control.Handle); 828Assert.NotEqual(IntPtr.Zero, control.Handle); 871Assert.NotEqual(IntPtr.Zero, control.Handle); 966Assert.NotEqual(IntPtr.Zero, control.Handle); 1065Assert.NotEqual(IntPtr.Zero, control.Handle); 1122Assert.NotEqual(IntPtr.Zero, control.Handle); 1236Assert.NotEqual(IntPtr.Zero, control.Handle); 1324Assert.NotEqual(IntPtr.Zero, control.Handle); 1378Assert.NotEqual(IntPtr.Zero, control.Handle); 1444Assert.NotEqual(IntPtr.Zero, control.Handle); 1478Assert.NotEqual(IntPtr.Zero, control.Handle); 1537Assert.NotEqual(IntPtr.Zero, control.Handle); 1629Assert.NotEqual(IntPtr.Zero, control.Handle); 1723Assert.NotEqual(IntPtr.Zero, control.Handle); 1788Assert.NotEqual(IntPtr.Zero, control.Handle); 1873Assert.NotEqual(IntPtr.Zero, control.Handle); 1933Assert.NotEqual(IntPtr.Zero, control.Handle); 2052Assert.NotEqual(IntPtr.Zero, control.Handle); 2142Assert.NotEqual(IntPtr.Zero, control.Handle); 2201Assert.NotEqual(IntPtr.Zero, control.Handle); 2427Assert.NotEqual(IntPtr.Zero, control.Handle); 2468Assert.NotEqual(IntPtr.Zero, control.Handle); 2528Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (3)
38Assert.NotEqual(IntPtr.Zero, propertyGridView.TestAccessor().Dynamic.EditTextBox.Handle); 66Assert.NotEqual(IntPtr.Zero, propertyGridView.TestAccessor().Dynamic.EditTextBox.Handle); 202Assert.NotEqual(IntPtr.Zero, propertyGridView.TestAccessor().Dynamic.EditTextBox.Handle);
System\Windows\Forms\PropertyGridTests.cs (37)
186Assert.Equal(IntPtr.Zero, createParams.Parent); 238Assert.NotEqual(IntPtr.Zero, control.Handle); 314Assert.NotEqual(IntPtr.Zero, control.Handle); 611Assert.NotEqual(IntPtr.Zero, control.Handle); 666Assert.NotEqual(IntPtr.Zero, control.Handle); 727Assert.NotEqual(IntPtr.Zero, control.Handle); 805Assert.NotEqual(IntPtr.Zero, control.Handle); 890Assert.NotEqual(IntPtr.Zero, control.Handle); 968Assert.NotEqual(IntPtr.Zero, control.Handle); 1053Assert.NotEqual(IntPtr.Zero, control.Handle); 1138Assert.NotEqual(IntPtr.Zero, control.Handle); 1216Assert.NotEqual(IntPtr.Zero, control.Handle); 1301Assert.NotEqual(IntPtr.Zero, control.Handle); 1405Assert.NotEqual(IntPtr.Zero, control.Handle); 1465Assert.NotEqual(IntPtr.Zero, control.Handle); 1581Assert.NotEqual(IntPtr.Zero, control.Handle); 1642Assert.NotEqual(IntPtr.Zero, control.Handle); 1756Assert.NotEqual(IntPtr.Zero, control.Handle); 1841Assert.NotEqual(IntPtr.Zero, control.Handle); 1919Assert.NotEqual(IntPtr.Zero, control.Handle); 2029Assert.NotEqual(IntPtr.Zero, control.Handle); 2115Assert.NotEqual(IntPtr.Zero, control.Handle); 2175Assert.NotEqual(IntPtr.Zero, control.Handle); 2253Assert.NotEqual(IntPtr.Zero, control.Handle); 2339Assert.NotEqual(IntPtr.Zero, control.Handle); 2422Assert.NotEqual(IntPtr.Zero, control.Handle); 2500Assert.NotEqual(IntPtr.Zero, control.Handle); 2586Assert.NotEqual(IntPtr.Zero, control.Handle); 2676Assert.NotEqual(IntPtr.Zero, control.Handle); 2886Assert.NotEqual(IntPtr.Zero, control.Handle); 3024Assert.NotEqual(IntPtr.Zero, control.Handle); 3138Assert.NotEqual(IntPtr.Zero, control.Handle); 3226Assert.NotEqual(IntPtr.Zero, control.Handle); 3311Assert.NotEqual(IntPtr.Zero, control.Handle); 3396Assert.NotEqual(IntPtr.Zero, control.Handle); 3543Assert.NotEqual(IntPtr.Zero, control.Handle); 3597Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
24form.Handle.Should().NotBe(IntPtr.Zero); 55form.Handle.Should().NotBe(IntPtr.Zero); 92form.Handle.Should().NotBe(IntPtr.Zero); 120form.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\RadioButtonTests.cs (18)
135Assert.Equal(IntPtr.Zero, createParams.Parent); 159Assert.Equal(IntPtr.Zero, createParams.Parent); 230Assert.NotEqual(IntPtr.Zero, control.Handle); 362Assert.NotEqual(IntPtr.Zero, control.Handle); 691Assert.NotEqual(IntPtr.Zero, control.Handle); 710Assert.NotEqual(IntPtr.Zero, control.Handle); 720Assert.NotEqual(IntPtr.Zero, control.Handle); 784Assert.NotEqual(IntPtr.Zero, control.Handle); 878Assert.NotEqual(IntPtr.Zero, control.Handle); 897Assert.NotEqual(IntPtr.Zero, control.Handle); 907Assert.NotEqual(IntPtr.Zero, control.Handle); 945Assert.NotEqual(IntPtr.Zero, control.Handle); 998Assert.NotEqual(IntPtr.Zero, control.Handle); 1160Assert.NotEqual(IntPtr.Zero, control.Handle); 1226Assert.NotEqual(IntPtr.Zero, control.Handle); 1304Assert.NotEqual(IntPtr.Zero, control.Handle); 1419Assert.NotEqual(IntPtr.Zero, control.Handle); 1460Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
20control.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\RichTextBoxTests.cs (209)
152Assert.Equal(IntPtr.Zero, createParams.Parent); 178Assert.Equal(IntPtr.Zero, createParams.Parent); 232Assert.Equal(IntPtr.Zero, createParams.Parent); 269Assert.NotEqual(IntPtr.Zero, control.Handle); 306Assert.NotEqual(IntPtr.Zero, control.Handle); 347Assert.NotEqual(IntPtr.Zero, control.Handle); 552Assert.NotEqual(IntPtr.Zero, control.Handle); 602Assert.NotEqual(IntPtr.Zero, control.Handle); 641Assert.NotEqual(IntPtr.Zero, control.Handle); 680Assert.NotEqual(IntPtr.Zero, control.Handle); 883Assert.NotEqual(IntPtr.Zero, control.Handle); 920Assert.NotEqual(IntPtr.Zero, control.Handle); 961Assert.NotEqual(IntPtr.Zero, control.Handle); 978yield return new object[] { IntPtr.Zero, false }; 990Assert.NotEqual(IntPtr.Zero, control.Handle); 1030Assert.NotEqual(IntPtr.Zero, control.Handle); 1047yield return new object[] { IntPtr.Zero, false }; 1059Assert.NotEqual(IntPtr.Zero, control.Handle); 1099Assert.NotEqual(IntPtr.Zero, control.Handle); 1150Assert.NotEqual(IntPtr.Zero, control.Handle); 1189Assert.NotEqual(IntPtr.Zero, control.Handle); 1221Assert.NotEqual(IntPtr.Zero, control.Handle); 1258Assert.NotEqual(IntPtr.Zero, control.Handle); 1299Assert.NotEqual(IntPtr.Zero, control.Handle); 1430Assert.NotEqual(IntPtr.Zero, control.Handle); 1467Assert.NotEqual(IntPtr.Zero, control.Handle); 1514Assert.NotEqual(IntPtr.Zero, control.Handle); 1553Assert.NotEqual(IntPtr.Zero, control.Handle); 1596Assert.NotEqual(IntPtr.Zero, control.Handle); 1717Assert.NotEqual(IntPtr.Zero, control.Handle); 1746Assert.NotEqual(IntPtr.Zero, control.Handle); 1761Assert.NotEqual(IntPtr.Zero, control.Handle); 1822yield return new object[] { IntPtr.Zero, 0 }; 1834Assert.NotEqual(IntPtr.Zero, control.Handle); 1878Assert.NotEqual(IntPtr.Zero, control.Handle); 1908Assert.NotEqual(IntPtr.Zero, control.Handle); 1917Assert.NotEqual(IntPtr.Zero, control.Handle); 1991Assert.NotEqual(IntPtr.Zero, control.Handle); 2019Assert.NotEqual(IntPtr.Zero, control.Handle); 2047Assert.NotEqual(IntPtr.Zero, control.Handle); 2249Assert.NotEqual(IntPtr.Zero, control.Handle); 2323Assert.NotEqual(IntPtr.Zero, control.Handle); 2340yield return new object[] { IntPtr.Zero, IntPtr.Zero, string.Empty }; 2341yield return new object[] { (IntPtr)1, IntPtr.Zero, "Unknown" }; 2360Assert.NotEqual(IntPtr.Zero, control.Handle); 2429Assert.NotEqual(IntPtr.Zero, control.Handle); 2465Assert.NotEqual(IntPtr.Zero, control.Handle); 2533Assert.NotEqual(IntPtr.Zero, control.Handle); 2569Assert.NotEqual(IntPtr.Zero, control.Handle); 2604Assert.NotEqual(IntPtr.Zero, control.Handle); 2652Assert.NotEqual(IntPtr.Zero, control.Handle); 2747Assert.NotEqual(IntPtr.Zero, control.Handle); 2814Assert.NotEqual(IntPtr.Zero, control.Handle); 3028Assert.NotEqual(IntPtr.Zero, control.Handle); 3093Assert.NotEqual(IntPtr.Zero, control.Handle); 3175Assert.NotEqual(IntPtr.Zero, control.Handle); 3225Assert.NotEqual(IntPtr.Zero, control.Handle); 3292Assert.NotEqual(IntPtr.Zero, control.Handle); 3349Assert.NotEqual(IntPtr.Zero, control.Handle); 3430Assert.NotEqual(IntPtr.Zero, control.Handle); 3480Assert.NotEqual(IntPtr.Zero, control.Handle); 3534Assert.NotEqual(IntPtr.Zero, control.Handle); 3602Assert.NotEqual(IntPtr.Zero, control.Handle); 3651Assert.NotEqual(IntPtr.Zero, control.Handle); 3698Assert.NotEqual(IntPtr.Zero, control.Handle); 3741Assert.NotEqual(IntPtr.Zero, control.Handle); 3777Assert.NotEqual(IntPtr.Zero, control.Handle); 3823Assert.NotEqual(IntPtr.Zero, control.Handle); 3865Assert.NotEqual(IntPtr.Zero, control.Handle); 3885Assert.NotEqual(IntPtr.Zero, control.Handle); 3943Assert.NotEqual(IntPtr.Zero, control.Handle); 3972Assert.NotEqual(IntPtr.Zero, control.Handle); 4037Assert.NotEqual(IntPtr.Zero, control.Handle); 4087Assert.NotEqual(IntPtr.Zero, control.Handle); 4141Assert.NotEqual(IntPtr.Zero, control.Handle); 4184Assert.NotEqual(IntPtr.Zero, control.Handle); 4234Assert.NotEqual(IntPtr.Zero, control.Handle); 4290Assert.NotEqual(IntPtr.Zero, control.Handle); 4348Assert.NotEqual(IntPtr.Zero, control.Handle); 4399Assert.NotEqual(IntPtr.Zero, control.Handle); 4428Assert.NotEqual(IntPtr.Zero, control.Handle); 4491Assert.NotEqual(IntPtr.Zero, control.Handle); 4538Assert.NotEqual(IntPtr.Zero, control.Handle); 4588Assert.NotEqual(IntPtr.Zero, control.Handle); 4617Assert.NotEqual(IntPtr.Zero, control.Handle); 4677Assert.NotEqual(IntPtr.Zero, control.Handle); 4754Assert.NotEqual(IntPtr.Zero, control.Handle); 4793Assert.NotEqual(IntPtr.Zero, control.Handle); 4853Assert.NotEqual(IntPtr.Zero, control.Handle); 4931Assert.NotEqual(IntPtr.Zero, control.Handle); 4968Assert.NotEqual(IntPtr.Zero, control.Handle); 5013Assert.NotEqual(IntPtr.Zero, control.Handle); 5072Assert.NotEqual(IntPtr.Zero, control.Handle); 5111Assert.NotEqual(IntPtr.Zero, control.Handle); 5152Assert.NotEqual(IntPtr.Zero, control.Handle); 5206Assert.NotEqual(IntPtr.Zero, control.Handle); 5252Assert.NotEqual(IntPtr.Zero, control.Handle); 5307Assert.NotEqual(IntPtr.Zero, control.Handle); 5343Assert.NotEqual(IntPtr.Zero, control.Handle); 5397Assert.NotEqual(IntPtr.Zero, control.Handle); 5505Assert.NotEqual(IntPtr.Zero, control.Handle); 5547Assert.NotEqual(IntPtr.Zero, control.Handle); 5607Assert.NotEqual(IntPtr.Zero, control.Handle); 5654Assert.NotEqual(IntPtr.Zero, control.Handle); 5702Assert.NotEqual(IntPtr.Zero, control.Handle); 5740Assert.NotEqual(IntPtr.Zero, control.Handle); 5796Assert.NotEqual(IntPtr.Zero, control.Handle); 5842Assert.NotEqual(IntPtr.Zero, control.Handle); 5893Assert.NotEqual(IntPtr.Zero, control.Handle); 5927Assert.NotEqual(IntPtr.Zero, control.Handle); 5986Assert.NotEqual(IntPtr.Zero, control.Handle); 6095Assert.NotEqual(IntPtr.Zero, control.Handle); 6137Assert.NotEqual(IntPtr.Zero, control.Handle); 6190Assert.NotEqual(IntPtr.Zero, control.Handle); 6240Assert.NotEqual(IntPtr.Zero, control.Handle); 6296Assert.NotEqual(IntPtr.Zero, control.Handle); 6341Assert.NotEqual(IntPtr.Zero, control.Handle); 6374Assert.NotEqual(IntPtr.Zero, control.Handle); 6446Assert.NotEqual(IntPtr.Zero, control.Handle); 6478Assert.NotEqual(IntPtr.Zero, control.Handle); 6524Assert.NotEqual(IntPtr.Zero, control.Handle); 6536Assert.Equal(IntPtr.Zero, m.WParam); 6537Assert.Equal(IntPtr.Zero, m.LParam); 6566Assert.NotEqual(IntPtr.Zero, control.Handle); 6616Assert.NotEqual(IntPtr.Zero, control.Handle); 6655Assert.NotEqual(IntPtr.Zero, control.Handle); 6676Assert.NotEqual(IntPtr.Zero, control.Handle); 6721Assert.NotEqual(IntPtr.Zero, control.Handle); 6739yield return new object[] { IntPtr.Zero, 0 }; 6766Assert.Equal(IntPtr.Zero, m.LParam); 7240Assert.NotEqual(IntPtr.Zero, control.Handle); 7286Assert.NotEqual(IntPtr.Zero, control.Handle); 7336Assert.NotEqual(IntPtr.Zero, control.Handle); 7397Assert.NotEqual(IntPtr.Zero, control.Handle); 7462Assert.NotEqual(IntPtr.Zero, control.Handle); 7537Assert.NotEqual(IntPtr.Zero, control.Handle); 7628Assert.NotEqual(IntPtr.Zero, control.Handle); 7645yield return new object[] { IntPtr.Zero, IntPtr.Zero, string.Empty }; 7646yield return new object[] { (IntPtr)1, IntPtr.Zero, "Unknown" }; 7665Assert.NotEqual(IntPtr.Zero, control.Handle); 7711Assert.NotEqual(IntPtr.Zero, control.Handle); 7749Assert.NotEqual(IntPtr.Zero, control.Handle); 7804Assert.NotEqual(IntPtr.Zero, control.Handle); 7861Assert.NotEqual(IntPtr.Zero, control.Handle); 7878yield return new object[] { IntPtr.Zero, false }; 7890Assert.NotEqual(IntPtr.Zero, control.Handle); 8148Assert.NotEqual(IntPtr.Zero, control.Handle); 8171Assert.NotEqual(IntPtr.Zero, control.Handle); 8194Assert.NotEqual(IntPtr.Zero, control.Handle); 8217Assert.NotEqual(IntPtr.Zero, control.Handle); 8368Assert.NotEqual(IntPtr.Zero, control.Handle); 8391Assert.NotEqual(IntPtr.Zero, control.Handle); 8414Assert.NotEqual(IntPtr.Zero, control.Handle); 8580Assert.NotEqual(IntPtr.Zero, control.Handle); 8601Assert.NotEqual(IntPtr.Zero, control.Handle); 8667Assert.NotEqual(IntPtr.Zero, control.Handle); 8688Assert.NotEqual(IntPtr.Zero, control.Handle); 8849Assert.NotEqual(IntPtr.Zero, control.Handle); 8876Assert.NotEqual(IntPtr.Zero, control.Handle); 8894yield return new object[] { IntPtr.Zero }; 8909Assert.NotEqual(IntPtr.Zero, control.Handle); 8922Assert.Equal(IntPtr.Zero, m.LParam); 8934yield return new object[] { IntPtr.Zero, 0 }; 8949Assert.NotEqual(IntPtr.Zero, control.Handle); 8961Assert.Equal(IntPtr.Zero, m.WParam); 9039Assert.NotEqual(IntPtr.Zero, control.Handle); 9311Assert.NotEqual(IntPtr.Zero, control.Handle); 9361Assert.NotEqual(IntPtr.Zero, control.Handle); 9385Assert.NotEqual(IntPtr.Zero, control.Handle); 9430Assert.NotEqual(IntPtr.Zero, control.Handle); 9454Assert.NotEqual(IntPtr.Zero, control.Handle); 9500Assert.NotEqual(IntPtr.Zero, control.Handle); 9525Assert.NotEqual(IntPtr.Zero, control.Handle); 9572Assert.NotEqual(IntPtr.Zero, control.Handle); 9596Assert.NotEqual(IntPtr.Zero, control.Handle); 9631Assert.NotEqual(IntPtr.Zero, control.Handle); 9656Assert.NotEqual(IntPtr.Zero, control.Handle); 9698Assert.NotEqual(IntPtr.Zero, control.Handle); 9717Assert.NotEqual(IntPtr.Zero, control.Handle); 9770yield return new object[] { false, IntPtr.Zero }; 9802Assert.NotEqual(IntPtr.Zero, control.Handle); 9844Assert.Equal(IntPtr.Zero, m.Result); 9855Assert.NotEqual(IntPtr.Zero, control.Handle); 9878Assert.Equal(IntPtr.Zero, m.Result); 9891Assert.NotEqual(IntPtr.Zero, control.Handle); 9912Assert.Equal(IntPtr.Zero, m.Result); 9922foreach (IntPtr lParam in new IntPtr[] { IntPtr.Zero, 1 }) 9924yield return new object[] { IntPtr.Zero, lParam, 0 }; 9974Assert.NotEqual(IntPtr.Zero, control.Handle); 10016yield return new object[] { IntPtr.Zero, 0, 0, 0 }; 10030Assert.NotEqual(IntPtr.Zero, control.Handle); 10082foreach (IntPtr hWnd in new IntPtr[] { IntPtr.Zero, 1 }) 10204yield return new object[] { CFM_MASK.CFM_PROTECTED, IntPtr.Zero, 0 }; 10205yield return new object[] { CFM_MASK.CFM_PROTECTED | CFM_MASK.CFM_ALLCAPS, IntPtr.Zero, 0 }; 10254Assert.NotEqual(IntPtr.Zero, control.Handle); 10291Assert.NotEqual(IntPtr.Zero, control.Handle); 10341Assert.NotEqual(IntPtr.Zero, control.Handle); 10391Assert.NotEqual(IntPtr.Zero, control.Handle); 10442Assert.NotEqual(IntPtr.Zero, control.Handle); 10507Assert.Equal(IntPtr.Zero, m.Result); 10525Assert.NotEqual(IntPtr.Zero, control.Handle); 10542Assert.Equal(IntPtr.Zero, m.Result); 10885Assert.Equal(IntPtr.Zero, m.WParam); 10886Assert.NotEqual(IntPtr.Zero, m.LParam); 10907Assert.NotEqual(IntPtr.Zero, m.LParam); 11052private IntPtr _nativeDllHandle = IntPtr.Zero; 11064if (_nativeDllHandle == IntPtr.Zero)
System\Windows\Forms\RowStyleTests.cs (1)
103Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ScreenTests.cs (2)
71Assert.NotEqual(IntPtr.Zero, createdControl.Handle); 93Screen screen = Screen.FromHandle(IntPtr.Zero);
System\Windows\Forms\ScrollableControlTests.cs (21)
131Assert.Equal(IntPtr.Zero, createParams.Parent); 158Assert.Equal(IntPtr.Zero, createParams.Parent); 185Assert.Equal(IntPtr.Zero, createParams.Parent); 226Assert.NotEqual(IntPtr.Zero, control.Handle); 282Assert.NotEqual(IntPtr.Zero, control.Handle); 379Assert.NotEqual(IntPtr.Zero, control.Handle); 495Assert.NotEqual(IntPtr.Zero, control.Handle); 622Assert.NotEqual(IntPtr.Zero, control.Handle); 755Assert.NotEqual(IntPtr.Zero, control.Handle); 917Assert.NotEqual(IntPtr.Zero, control.Handle); 1194Assert.NotEqual(IntPtr.Zero, control.Handle); 1229Assert.NotEqual(IntPtr.Zero, control.Handle); 1306Assert.NotEqual(IntPtr.Zero, control.Handle); 1479Assert.NotEqual(IntPtr.Zero, control.Handle); 1751Assert.NotEqual(IntPtr.Zero, control.Handle); 1853Assert.NotEqual(IntPtr.Zero, parent.Handle); 1932Assert.NotEqual(IntPtr.Zero, control.Handle); 2025Assert.NotEqual(IntPtr.Zero, control.Handle); 2265Assert.NotEqual(IntPtr.Zero, control.Handle); 2395Assert.NotEqual(IntPtr.Zero, control.Handle); 2456Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ScrollBarTests.cs (23)
120Assert.Equal(IntPtr.Zero, createParams.Parent); 392Assert.NotEqual(IntPtr.Zero, control.Handle); 438Assert.NotEqual(IntPtr.Zero, control.Handle); 611Assert.NotEqual(IntPtr.Zero, control.Handle); 732Assert.NotEqual(IntPtr.Zero, control.Handle); 782Assert.NotEqual(IntPtr.Zero, control.Handle); 864Assert.NotEqual(IntPtr.Zero, control.Handle); 927Assert.NotEqual(IntPtr.Zero, control.Handle); 1050Assert.NotEqual(IntPtr.Zero, control.Handle); 1113Assert.NotEqual(IntPtr.Zero, control.Handle); 1311Assert.NotEqual(IntPtr.Zero, control.Handle); 1347Assert.NotEqual(IntPtr.Zero, control.Handle); 1406Assert.NotEqual(IntPtr.Zero, control.Handle); 1498Assert.NotEqual(IntPtr.Zero, control.Handle); 1595Assert.NotEqual(IntPtr.Zero, control.Handle); 1659Assert.NotEqual(IntPtr.Zero, control.Handle); 1978Assert.NotEqual(IntPtr.Zero, control.Handle); 2043Assert.NotEqual(IntPtr.Zero, control.Handle); 2626Assert.NotEqual(IntPtr.Zero, control.Handle); 2650Assert.NotEqual(IntPtr.Zero, control.Handle); 2877Assert.NotEqual(IntPtr.Zero, control.Handle); 2902Assert.NotEqual(IntPtr.Zero, control.Handle); 2923Assert.Equal(IntPtr.Zero, m.Result);
System\Windows\Forms\SplitterPanelTests.cs (5)
248Assert.NotEqual(IntPtr.Zero, control.Handle); 282Assert.NotEqual(IntPtr.Zero, parent.Handle); 352Assert.NotEqual(IntPtr.Zero, control.Handle); 958Assert.NotEqual(IntPtr.Zero, control.Handle); 1050Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\SplitterTests.cs (17)
118Assert.Equal(IntPtr.Zero, createParams.Parent); 145Assert.Equal(IntPtr.Zero, createParams.Parent); 340Assert.NotEqual(IntPtr.Zero, control.Handle); 652Assert.NotEqual(IntPtr.Zero, control.Handle); 824Assert.NotEqual(IntPtr.Zero, control.Handle); 923Assert.NotEqual(IntPtr.Zero, control.Handle); 1018Assert.NotEqual(IntPtr.Zero, control.Handle); 1070Assert.NotEqual(IntPtr.Zero, control.Handle); 1284Assert.NotEqual(IntPtr.Zero, control.Handle); 1324Assert.NotEqual(IntPtr.Zero, control.Handle); 1378Assert.NotEqual(IntPtr.Zero, parent.Handle); 1483Assert.NotEqual(IntPtr.Zero, control.Handle); 1575Assert.NotEqual(IntPtr.Zero, control.Handle); 1733Assert.NotEqual(IntPtr.Zero, control.Handle); 1786Assert.NotEqual(IntPtr.Zero, control.Handle); 2064Assert.NotEqual(IntPtr.Zero, control.Handle); 2126Assert.NotEqual(IntPtr.Zero, parent.Handle);
System\Windows\Forms\StatusStripTests.cs (2)
167Assert.Equal(IntPtr.Zero, createParams.Parent); 802Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\StatusStripTests.Rendering.cs (2)
27Assert.NotEqual(IntPtr.Zero, form.Handle); 28Assert.NotEqual(IntPtr.Zero, statusStrip.Handle);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (26)
188Assert.NotEqual(IntPtr.Zero, owner.Handle); 348Assert.NotEqual(IntPtr.Zero, value1.Handle); 355Assert.NotEqual(IntPtr.Zero, value2.Handle); 489Assert.NotEqual(IntPtr.Zero, value1.Handle); 496Assert.NotEqual(IntPtr.Zero, value2.Handle); 503Assert.NotEqual(IntPtr.Zero, owner.Handle); 757Assert.NotEqual(IntPtr.Zero, owner.Handle); 782Assert.Equal(IntPtr.Zero, (nint)item.lParam); 790Assert.Equal(IntPtr.Zero, (nint)item.lParam); 798Assert.Equal(IntPtr.Zero, (nint)item.lParam); 825Assert.NotEqual(IntPtr.Zero, owner.Handle); 850Assert.Equal(IntPtr.Zero, (nint)item.lParam); 858Assert.Equal(IntPtr.Zero, (nint)item.lParam); 866Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1016Assert.NotEqual(IntPtr.Zero, value1.Handle); 1023Assert.NotEqual(IntPtr.Zero, value2.Handle); 1141Assert.NotEqual(IntPtr.Zero, owner.Handle); 1253Assert.NotEqual(IntPtr.Zero, value1.Handle); 1260Assert.NotEqual(IntPtr.Zero, value2.Handle); 1403Assert.NotEqual(IntPtr.Zero, owner.Handle); 1480Assert.NotEqual(IntPtr.Zero, owner.Handle); 1494Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1502Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1538Assert.NotEqual(IntPtr.Zero, owner.Handle); 1552Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1560Assert.Equal(IntPtr.Zero, (nint)item.lParam);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (67)
176Assert.NotEqual(IntPtr.Zero, owner.Handle); 339Assert.NotEqual(IntPtr.Zero, value1.Handle); 346Assert.NotEqual(IntPtr.Zero, value2.Handle); 483Assert.NotEqual(IntPtr.Zero, value1.Handle); 490Assert.NotEqual(IntPtr.Zero, value2.Handle); 497Assert.NotEqual(IntPtr.Zero, owner.Handle); 761Assert.NotEqual(IntPtr.Zero, owner.Handle); 788Assert.Equal(IntPtr.Zero, (nint)item.lParam); 796Assert.Equal(IntPtr.Zero, (nint)item.lParam); 804Assert.Equal(IntPtr.Zero, (nint)item.lParam); 831Assert.NotEqual(IntPtr.Zero, owner.Handle); 858Assert.Equal(IntPtr.Zero, (nint)item.lParam); 866Assert.Equal(IntPtr.Zero, (nint)item.lParam); 874Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1405Assert.NotEqual(IntPtr.Zero, owner.Handle); 1463Assert.NotEqual(IntPtr.Zero, owner.Handle); 1538Assert.NotEqual(IntPtr.Zero, owner.Handle); 2113Assert.NotEqual(IntPtr.Zero, owner.Handle); 2282Assert.NotEqual(IntPtr.Zero, value1.Handle); 2289Assert.NotEqual(IntPtr.Zero, value2.Handle); 2432Assert.NotEqual(IntPtr.Zero, value1.Handle); 2439Assert.NotEqual(IntPtr.Zero, value2.Handle); 2446Assert.NotEqual(IntPtr.Zero, owner.Handle); 2688Assert.NotEqual(IntPtr.Zero, owner.Handle); 2709Assert.NotEqual(IntPtr.Zero, owner.Handle); 2729Assert.NotEqual(IntPtr.Zero, owner.Handle); 2749Assert.NotEqual(IntPtr.Zero, owner.Handle); 2769Assert.NotEqual(IntPtr.Zero, owner.Handle); 2789Assert.NotEqual(IntPtr.Zero, owner.Handle); 2814Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2822Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2830Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2857Assert.NotEqual(IntPtr.Zero, owner.Handle); 2882Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2890Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2898Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2931Assert.NotEqual(IntPtr.Zero, owner.Handle); 2960Assert.NotEqual(IntPtr.Zero, owner.Handle); 2999Assert.NotEqual(IntPtr.Zero, owner.Handle); 3165Assert.NotEqual(IntPtr.Zero, owner.Handle); 3192Assert.NotEqual(IntPtr.Zero, owner.Handle); 3225Assert.NotEqual(IntPtr.Zero, owner.Handle); 3450Assert.NotEqual(IntPtr.Zero, owner.Handle); 3506Assert.NotEqual(IntPtr.Zero, owner.Handle); 3549Assert.NotEqual(IntPtr.Zero, owner.Handle); 3569Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3577Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3585Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3621Assert.NotEqual(IntPtr.Zero, owner.Handle); 3641Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3649Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3657Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3682Assert.NotEqual(IntPtr.Zero, owner.Handle); 3847Assert.NotEqual(IntPtr.Zero, owner.Handle); 3902Assert.NotEqual(IntPtr.Zero, owner.Handle); 4105Assert.NotEqual(IntPtr.Zero, value1.Handle); 4112Assert.NotEqual(IntPtr.Zero, value2.Handle); 4235Assert.NotEqual(IntPtr.Zero, owner.Handle); 4352Assert.NotEqual(IntPtr.Zero, value1.Handle); 4359Assert.NotEqual(IntPtr.Zero, value2.Handle); 4509Assert.NotEqual(IntPtr.Zero, owner.Handle); 4600Assert.NotEqual(IntPtr.Zero, owner.Handle); 4614Assert.Equal(IntPtr.Zero, (nint)item.lParam); 4622Assert.Equal(IntPtr.Zero, (nint)item.lParam); 4660Assert.NotEqual(IntPtr.Zero, owner.Handle); 4674Assert.Equal(IntPtr.Zero, (nint)item.lParam); 4682Assert.Equal(IntPtr.Zero, (nint)item.lParam);
System\Windows\Forms\TabControlTests.cs (85)
129Assert.Equal(IntPtr.Zero, createParams.Parent); 154Assert.Equal(IntPtr.Zero, createParams.Parent); 178Assert.Equal(IntPtr.Zero, createParams.Parent); 215Assert.Equal(IntPtr.Zero, createParams.Parent); 241Assert.Equal(IntPtr.Zero, createParams.Parent); 265Assert.Equal(IntPtr.Zero, createParams.Parent); 300Assert.Equal(IntPtr.Zero, createParams.Parent); 325Assert.Equal(IntPtr.Zero, createParams.Parent); 354Assert.Equal(IntPtr.Zero, createParams.Parent); 417Assert.NotEqual(IntPtr.Zero, control.Handle); 496Assert.NotEqual(IntPtr.Zero, control.Handle); 557Assert.NotEqual(IntPtr.Zero, control.Handle); 757Assert.NotEqual(IntPtr.Zero, control.Handle); 781Assert.NotEqual(IntPtr.Zero, control.Handle); 832Assert.NotEqual(IntPtr.Zero, control.Handle); 890Assert.NotEqual(IntPtr.Zero, control.Handle); 951Assert.NotEqual(IntPtr.Zero, control.Handle); 1015Assert.NotEqual(IntPtr.Zero, control.Handle); 1027Assert.NotEqual(IntPtr.Zero, control.Handle); 1035Assert.NotEqual(IntPtr.Zero, control.Handle); 1057Assert.NotEqual(IntPtr.Zero, control.Handle); 1070Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1078Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1086Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1120Assert.NotEqual(IntPtr.Zero, control.Handle); 1200Assert.NotEqual(IntPtr.Zero, control.Handle); 1233Assert.NotEqual(IntPtr.Zero, control.Handle); 1297Assert.NotEqual(IntPtr.Zero, control.Handle); 1338Assert.NotEqual(IntPtr.Zero, control.Handle); 1405Assert.NotEqual(IntPtr.Zero, control.Handle); 1446Assert.NotEqual(IntPtr.Zero, control.Handle); 1461Assert.NotEqual(IntPtr.Zero, control.Handle); 1506Assert.NotEqual(IntPtr.Zero, control.Handle); 1537Assert.NotEqual(IntPtr.Zero, control.Handle); 1676Assert.NotEqual(IntPtr.Zero, control.Handle); 1741Assert.NotEqual(IntPtr.Zero, control.Handle); 1880Assert.NotEqual(IntPtr.Zero, control.Handle); 1968Assert.NotEqual(IntPtr.Zero, control.Handle); 2001Assert.NotEqual(IntPtr.Zero, control.Handle); 2010Assert.NotEqual(IntPtr.Zero, control.Handle); 2022Assert.NotEqual(IntPtr.Zero, control.Handle); 2086Assert.NotEqual(IntPtr.Zero, control.Handle); 2124Assert.NotEqual(IntPtr.Zero, control.Handle); 2218Assert.NotEqual(IntPtr.Zero, control.Handle); 2331Assert.NotEqual(IntPtr.Zero, control.Handle); 2409Assert.NotEqual(IntPtr.Zero, control.Handle); 2516Assert.NotEqual(IntPtr.Zero, control.Handle); 2528Assert.NotEqual(IntPtr.Zero, control.Handle); 2641Assert.NotEqual(IntPtr.Zero, control.Handle); 2676Assert.NotEqual(IntPtr.Zero, control.Handle); 2818Assert.NotEqual(IntPtr.Zero, control.Handle); 2878Assert.NotEqual(IntPtr.Zero, control.Handle); 2932Assert.NotEqual(IntPtr.Zero, control.Handle); 3010Assert.NotEqual(IntPtr.Zero, control.Handle); 3072Assert.NotEqual(IntPtr.Zero, control.Handle); 3263Assert.NotEqual(IntPtr.Zero, control.Handle); 3451Assert.NotEqual(IntPtr.Zero, control.Handle); 3685Assert.NotEqual(IntPtr.Zero, control.Handle); 3728Assert.NotEqual(IntPtr.Zero, control.Handle); 3757Assert.NotEqual(IntPtr.Zero, control.Handle); 3773m.Result = IntPtr.Zero; 3817Assert.NotEqual(IntPtr.Zero, control.Handle); 4104Assert.NotEqual(IntPtr.Zero, control.Handle); 4351Assert.NotEqual(IntPtr.Zero, control.Handle); 4404Assert.NotEqual(IntPtr.Zero, control.Handle); 4552Assert.NotEqual(IntPtr.Zero, control.Handle); 4593Assert.NotEqual(IntPtr.Zero, control.Handle); 4727Assert.NotEqual(IntPtr.Zero, control.Handle); 4778Assert.NotEqual(IntPtr.Zero, control.Handle); 4857Assert.NotEqual(IntPtr.Zero, handle1); 4864Assert.NotEqual(IntPtr.Zero, handle2); 4873Assert.NotEqual(IntPtr.Zero, handle3); 4890Assert.NotEqual(IntPtr.Zero, handle1); 4897Assert.NotEqual(IntPtr.Zero, handle2); 4906Assert.NotEqual(IntPtr.Zero, handle3); 4945Assert.Equal(IntPtr.Zero, (nint)item.lParam); 4953Assert.Equal(IntPtr.Zero, (nint)item.lParam); 4961Assert.Equal(IntPtr.Zero, (nint)item.lParam); 5065Assert.NotEqual(IntPtr.Zero, control.Handle); 5118Assert.NotEqual(IntPtr.Zero, control.Handle); 5188Assert.NotEqual(IntPtr.Zero, control.Handle); 5241Assert.NotEqual(IntPtr.Zero, control.Handle); 5408Assert.NotEqual(IntPtr.Zero, control.Handle); 5566Assert.NotEqual(IntPtr.Zero, control.Handle); 5699Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the toolTip native window Handle
System\Windows\Forms\TableLayoutPanelTests.cs (6)
142Assert.Equal(IntPtr.Zero, createParams.Parent); 176Assert.NotEqual(IntPtr.Zero, control.Handle); 257Assert.NotEqual(IntPtr.Zero, control.Handle); 1244Assert.NotEqual(IntPtr.Zero, control.Handle); 1297Assert.NotEqual(IntPtr.Zero, control.Handle); 1369Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\TableLayoutStyleTests.cs (1)
80Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\TabPageTests.cs (63)
247Assert.Equal(IntPtr.Zero, createParams.Parent); 444Assert.NotEqual(IntPtr.Zero, control.Handle); 480Assert.NotEqual(IntPtr.Zero, parent.Handle); 837Assert.NotEqual(IntPtr.Zero, control.Handle); 1028Assert.NotEqual(IntPtr.Zero, control.Handle); 1220Assert.NotEqual(IntPtr.Zero, control.Handle); 1259Assert.NotEqual(IntPtr.Zero, parent.Handle); 1325Assert.NotEqual(IntPtr.Zero, parent.Handle); 1384Assert.NotEqual(IntPtr.Zero, owner.Handle); 1399Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1407Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1415Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1451Assert.NotEqual(IntPtr.Zero, owner.Handle); 1466Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1474Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1482Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1602Assert.NotEqual(IntPtr.Zero, control.Handle); 1639Assert.NotEqual(IntPtr.Zero, parent.Handle); 1703Assert.NotEqual(IntPtr.Zero, parent.Handle); 1759Assert.NotEqual(IntPtr.Zero, owner.Handle); 1774Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1782Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1790Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1823Assert.NotEqual(IntPtr.Zero, owner.Handle); 1838Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1846Assert.Equal(IntPtr.Zero, (nint)item.lParam); 1854Assert.Equal(IntPtr.Zero, (nint)item.lParam); 2082Assert.NotEqual(IntPtr.Zero, control.Handle); 2162Assert.NotEqual(IntPtr.Zero, parent.Handle); 2289Assert.NotEqual(IntPtr.Zero, control.Handle); 2544Assert.NotEqual(IntPtr.Zero, control.Handle); 2712Assert.NotEqual(IntPtr.Zero, control.Handle); 2863Assert.NotEqual(IntPtr.Zero, control.Handle); 2896Assert.NotEqual(IntPtr.Zero, parent.Handle); 2958Assert.NotEqual(IntPtr.Zero, parent.Handle); 3015Assert.NotEqual(IntPtr.Zero, owner.Handle); 3030Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3038Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3046Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3082Assert.NotEqual(IntPtr.Zero, owner.Handle); 3097Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3105Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3113Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3235Assert.NotEqual(IntPtr.Zero, control.Handle); 3270Assert.NotEqual(IntPtr.Zero, parent.Handle); 3334Assert.NotEqual(IntPtr.Zero, parent.Handle); 3388Assert.NotEqual(IntPtr.Zero, owner.Handle); 3403Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3411Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3419Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3452Assert.NotEqual(IntPtr.Zero, owner.Handle); 3467Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3475Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3483Assert.Equal(IntPtr.Zero, (nint)item.lParam); 3517Assert.NotEqual(IntPtr.Zero, control.Handle); 3613Assert.NotEqual(IntPtr.Zero, control.Handle); 3654Assert.NotEqual(IntPtr.Zero, parent.Handle); 4120Assert.NotEqual(IntPtr.Zero, control.Handle); 4221Assert.NotEqual(IntPtr.Zero, parent.Handle); 4564Assert.NotEqual(IntPtr.Zero, control.Handle); 4715Assert.NotEqual(IntPtr.Zero, parent.Handle); 4922Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the tooltip native window Handle 5020Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the tooltip native window Handle
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
924Assert.NotEqual(IntPtr.Zero, textBoxBase.Handle);
System\Windows\Forms\TextBoxRendererTests.cs (6)
31form.Handle.Should().NotBe(IntPtr.Zero); 32textbox.Handle.Should().NotBe(IntPtr.Zero); 60form.Handle.Should().NotBe(IntPtr.Zero); 61textbox.Handle.Should().NotBe(IntPtr.Zero); 95form.Handle.Should().NotBe(IntPtr.Zero); 96textbox.Handle.Should().NotBe(IntPtr.Zero);
System\Windows\Forms\TextRendererTests.cs (1)
665public IntPtr GetHdc() => IntPtr.Zero;
System\Windows\Forms\ToolStripButtonTests.cs (3)
698Assert.NotEqual(IntPtr.Zero, owner.Handle); 771Assert.NotEqual(IntPtr.Zero, parent.Handle); 910Assert.NotEqual(IntPtr.Zero, owner.Handle);
System\Windows\Forms\ToolStripContentPanelTests.cs (10)
187Assert.NotEqual(IntPtr.Zero, control.Handle); 284Assert.NotEqual(IntPtr.Zero, control.Handle); 372Assert.NotEqual(IntPtr.Zero, control.Handle); 528Assert.NotEqual(IntPtr.Zero, control.Handle); 562Assert.NotEqual(IntPtr.Zero, parent.Handle); 746Assert.NotEqual(IntPtr.Zero, control.Handle); 1184Assert.NotEqual(IntPtr.Zero, control.Handle); 1371Assert.NotEqual(IntPtr.Zero, control.Handle); 1581Assert.NotEqual(IntPtr.Zero, control.Handle); 1947Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\ToolStripDropDownTests.cs (31)
174Assert.Equal(IntPtr.Zero, createParams.Parent); 205Assert.Equal(IntPtr.Zero, createParams.Parent); 239Assert.Equal(IntPtr.Zero, createParams.Parent); 275Assert.NotEqual(IntPtr.Zero, control.Handle); 304Assert.NotEqual(IntPtr.Zero, control.Handle); 439Assert.NotEqual(IntPtr.Zero, control.Handle); 488Assert.NotEqual(IntPtr.Zero, control.Handle); 532Assert.NotEqual(IntPtr.Zero, control.Handle); 1004Assert.NotEqual(IntPtr.Zero, control.Handle); 1406Assert.NotEqual(IntPtr.Zero, control.Handle); 1851Assert.NotEqual(IntPtr.Zero, control.Handle); 2076Assert.NotEqual(IntPtr.Zero, control.Handle); 2113Assert.NotEqual(IntPtr.Zero, control.Handle); 2154Assert.NotEqual(IntPtr.Zero, control.Handle); 2204Assert.NotEqual(IntPtr.Zero, control.Handle); 2259Assert.NotEqual(IntPtr.Zero, control.Handle); 2475Assert.NotEqual(IntPtr.Zero, control.Handle); 2598Assert.NotEqual(IntPtr.Zero, control.Handle); 2690Assert.NotEqual(IntPtr.Zero, control.Handle); 2786Assert.NotEqual(IntPtr.Zero, control.Handle); 2874Assert.NotEqual(IntPtr.Zero, control.Handle); 3771Assert.NotEqual(IntPtr.Zero, control.Handle); 3948Assert.NotEqual(IntPtr.Zero, control.Handle); 4010Assert.NotEqual(IntPtr.Zero, control.Handle); 4346Assert.NotEqual(IntPtr.Zero, control.Handle); 4397Assert.NotEqual(IntPtr.Zero, control.Handle); 4449Assert.NotEqual(IntPtr.Zero, control.Handle); 4515Assert.NotEqual(IntPtr.Zero, control.Handle); 4656Assert.NotEqual(IntPtr.Zero, control.Handle); 4853Assert.NotEqual(IntPtr.Zero, control.Handle); 4874Assert.Equal(IntPtr.Zero, m.Result);
System\Windows\Forms\ToolStripItemTests.cs (93)
436Assert.NotEqual(IntPtr.Zero, parent.Handle); 520Assert.NotEqual(IntPtr.Zero, owner.Handle); 619Assert.NotEqual(IntPtr.Zero, owner.Handle); 690Assert.NotEqual(IntPtr.Zero, parent.Handle); 757Assert.NotEqual(IntPtr.Zero, parent.Handle); 945Assert.NotEqual(IntPtr.Zero, owner.Handle); 1044Assert.NotEqual(IntPtr.Zero, parent.Handle); 1311Assert.NotEqual(IntPtr.Zero, owner.Handle); 1437Assert.NotEqual(IntPtr.Zero, parent.Handle); 1617Assert.NotEqual(IntPtr.Zero, owner.Handle); 1676Assert.NotEqual(IntPtr.Zero, parent.Handle); 1819Assert.NotEqual(IntPtr.Zero, owner.Handle); 1880Assert.NotEqual(IntPtr.Zero, parent.Handle); 1948Assert.NotEqual(IntPtr.Zero, owner.Handle); 2005Assert.NotEqual(IntPtr.Zero, parent.Handle); 2181Assert.NotEqual(IntPtr.Zero, owner.Handle); 2257Assert.NotEqual(IntPtr.Zero, parent.Handle); 2718Assert.NotEqual(IntPtr.Zero, owner.Handle); 2865Assert.NotEqual(IntPtr.Zero, parent.Handle); 3054Assert.NotEqual(IntPtr.Zero, owner.Handle); 3141Assert.NotEqual(IntPtr.Zero, parent.Handle); 3307Assert.NotEqual(IntPtr.Zero, owner.Handle); 3369Assert.NotEqual(IntPtr.Zero, parent.Handle); 3523Assert.NotEqual(IntPtr.Zero, owner.Handle); 3621Assert.NotEqual(IntPtr.Zero, parent.Handle); 3951Assert.NotEqual(IntPtr.Zero, owner.Handle); 4044Assert.NotEqual(IntPtr.Zero, parent.Handle); 4251Assert.NotEqual(IntPtr.Zero, owner.Handle); 4335Assert.NotEqual(IntPtr.Zero, parent.Handle); 4556Assert.NotEqual(IntPtr.Zero, owner.Handle); 4690Assert.NotEqual(IntPtr.Zero, parent.Handle); 5056Assert.NotEqual(IntPtr.Zero, owner.Handle); 5184Assert.NotEqual(IntPtr.Zero, parent.Handle); 5471Assert.NotEqual(IntPtr.Zero, owner.Handle); 5555Assert.NotEqual(IntPtr.Zero, parent.Handle); 5688Assert.NotEqual(IntPtr.Zero, owner.Handle); 5755Assert.NotEqual(IntPtr.Zero, parent.Handle); 5962Assert.NotEqual(IntPtr.Zero, owner.Handle); 6053Assert.NotEqual(IntPtr.Zero, parent.Handle); 6300Assert.NotEqual(IntPtr.Zero, owner.Handle); 6392Assert.NotEqual(IntPtr.Zero, parent.Handle); 6791Assert.NotEqual(IntPtr.Zero, owner.Handle); 6875Assert.NotEqual(IntPtr.Zero, parent.Handle); 7231Assert.NotEqual(IntPtr.Zero, owner.Handle); 7334Assert.NotEqual(IntPtr.Zero, parent.Handle); 7535Assert.NotEqual(IntPtr.Zero, owner.Handle); 7635Assert.NotEqual(IntPtr.Zero, parent.Handle); 7900Assert.NotEqual(IntPtr.Zero, owner.Handle); 8002Assert.NotEqual(IntPtr.Zero, parent.Handle); 8132Assert.NotEqual(IntPtr.Zero, owner.Handle); 8217Assert.NotEqual(IntPtr.Zero, parent.Handle); 8367Assert.NotEqual(IntPtr.Zero, owner.Handle); 8451Assert.NotEqual(IntPtr.Zero, parent.Handle); 8637Assert.NotEqual(IntPtr.Zero, owner.Handle); 8727Assert.NotEqual(IntPtr.Zero, parent.Handle); 8890Assert.NotEqual(IntPtr.Zero, owner.Handle); 8974Assert.NotEqual(IntPtr.Zero, parent.Handle); 9361Assert.NotEqual(IntPtr.Zero, owner.Handle); 9487Assert.NotEqual(IntPtr.Zero, parent.Handle); 9690Assert.NotEqual(IntPtr.Zero, owner.Handle); 9788Assert.NotEqual(IntPtr.Zero, parent.Handle); 10403Assert.NotEqual(IntPtr.Zero, owner.Handle); 10449Assert.NotEqual(IntPtr.Zero, parent.Handle); 10514Assert.NotEqual(IntPtr.Zero, owner.Handle); 10562Assert.NotEqual(IntPtr.Zero, parent.Handle); 10671Assert.NotEqual(IntPtr.Zero, owner.Handle); 10745Assert.NotEqual(IntPtr.Zero, parent.Handle); 10819Assert.NotEqual(IntPtr.Zero, owner.Handle); 10884Assert.NotEqual(IntPtr.Zero, parent.Handle); 11210Assert.NotEqual(IntPtr.Zero, owner.Handle); 11289Assert.NotEqual(IntPtr.Zero, parent.Handle); 11407Assert.NotEqual(IntPtr.Zero, owner.Handle); 11489Assert.NotEqual(IntPtr.Zero, parent.Handle); 11586Assert.NotEqual(IntPtr.Zero, owner.Handle); 11660Assert.NotEqual(IntPtr.Zero, parent.Handle); 12325Assert.NotEqual(IntPtr.Zero, owner.Handle); 12427Assert.NotEqual(IntPtr.Zero, parent.Handle); 12796Assert.NotEqual(IntPtr.Zero, owner.Handle); 12902Assert.NotEqual(IntPtr.Zero, parent.Handle); 13032Assert.NotEqual(IntPtr.Zero, owner.Handle); 13138Assert.NotEqual(IntPtr.Zero, parent.Handle); 13314Assert.NotEqual(IntPtr.Zero, owner.Handle); 13380Assert.NotEqual(IntPtr.Zero, owner.Handle); 13446Assert.NotEqual(IntPtr.Zero, owner.Handle); 13550Assert.NotEqual(IntPtr.Zero, parent.Handle); 13799Assert.NotEqual(IntPtr.Zero, owner.Handle); 13904Assert.NotEqual(IntPtr.Zero, parent.Handle); 14382Assert.NotEqual(IntPtr.Zero, owner.Handle); 14471Assert.NotEqual(IntPtr.Zero, parent.Handle); 14632Assert.NotEqual(IntPtr.Zero, owner.Handle); 14760Assert.NotEqual(IntPtr.Zero, parent.Handle); 15023Assert.NotEqual(IntPtr.Zero, owner.Handle); 15149Assert.NotEqual(IntPtr.Zero, parent.Handle);
System\Windows\Forms\ToolStripPanelTests.cs (1)
135Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
980Assert.NotEqual(IntPtr.Zero, owner.Handle); 1055Assert.NotEqual(IntPtr.Zero, parent.Handle);
System\Windows\Forms\ToolStripTests.cs (37)
347Assert.Equal(IntPtr.Zero, createParams.Parent); 416Assert.NotEqual(IntPtr.Zero, control.Handle); 453Assert.NotEqual(IntPtr.Zero, control.Handle); 500Assert.NotEqual(IntPtr.Zero, control.Handle); 537Assert.NotEqual(IntPtr.Zero, control.Handle); 612Assert.NotEqual(IntPtr.Zero, control.Handle); 641Assert.NotEqual(IntPtr.Zero, control.Handle); 714Assert.NotEqual(IntPtr.Zero, control.Handle); 1228Assert.NotEqual(IntPtr.Zero, control.Handle); 2179Assert.NotEqual(IntPtr.Zero, control.Handle); 2827Assert.NotEqual(IntPtr.Zero, control.Handle); 3154Assert.NotEqual(IntPtr.Zero, control.Handle); 3681Assert.NotEqual(IntPtr.Zero, control.Handle); 3743Assert.NotEqual(IntPtr.Zero, control.Handle); 3853Assert.NotEqual(IntPtr.Zero, control.Handle); 3979Assert.NotEqual(IntPtr.Zero, control.Handle); 4044Assert.NotEqual(IntPtr.Zero, control.Handle); 4136Assert.NotEqual(IntPtr.Zero, control.Handle); 4992Assert.NotEqual(IntPtr.Zero, control.Handle); 5170Assert.NotEqual(IntPtr.Zero, control.Handle); 5213Assert.NotEqual(IntPtr.Zero, control.Handle); 5510Assert.NotEqual(IntPtr.Zero, control.Handle); 5559Assert.NotEqual(IntPtr.Zero, control.Handle); 5608Assert.NotEqual(IntPtr.Zero, control.Handle); 5660Assert.NotEqual(IntPtr.Zero, control.Handle); 6091Assert.NotEqual(IntPtr.Zero, control.Handle); 6192Assert.NotEqual(IntPtr.Zero, parent.Handle); 6267Assert.NotEqual(IntPtr.Zero, control.Handle); 6350Assert.NotEqual(IntPtr.Zero, control.Handle); 6630Assert.NotEqual(IntPtr.Zero, control.Handle); 6746Assert.NotEqual(IntPtr.Zero, control.Handle); 7049Assert.NotEqual(IntPtr.Zero, control.Handle); 7158Assert.Equal(IntPtr.Zero, m.Result); 7169Assert.NotEqual(IntPtr.Zero, control.Handle); 7186Assert.Equal(IntPtr.Zero, m.Result); 7197Assert.NotEqual(IntPtr.Zero, control.Handle); 7221Assert.Equal(IntPtr.Zero, m.Result);
System\Windows\Forms\ToolStripTests.Rendering.cs (2)
25Assert.NotEqual(IntPtr.Zero, form.Handle); 26Assert.NotEqual(IntPtr.Zero, toolStrip.Handle);
System\Windows\Forms\ToolTipBufferTests.cs (2)
16Assert.Equal(IntPtr.Zero, buffer.Buffer); 59Assert.NotEqual(IntPtr.Zero, memory2);
System\Windows\Forms\ToolTipTests.cs (5)
91Assert.Equal(IntPtr.Zero, createParams.Parent); 794Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the toolTip native window Handle 814Assert.True(toolTip.Handle != IntPtr.Zero); // A workaround to create the toolTip native window Handle 848Assert.NotEqual(IntPtr.Zero, tabControl.InternalHandle); 891Assert.NotEqual(IntPtr.Zero, tabControl.InternalHandle);
System\Windows\Forms\TreeNodeTests.cs (101)
309Assert.NotEqual(IntPtr.Zero, control.Handle); 395Assert.NotEqual(IntPtr.Zero, control.Handle); 472Assert.NotEqual(IntPtr.Zero, control.Handle); 524Assert.NotEqual(IntPtr.Zero, control.Handle); 535Assert.NotEqual(IntPtr.Zero, control.Handle); 547Assert.NotEqual(IntPtr.Zero, control.Handle); 615Assert.NotEqual(IntPtr.Zero, control.Handle); 660Assert.NotEqual(IntPtr.Zero, control.Handle); 686Assert.NotEqual(IntPtr.Zero, control.Handle); 750Assert.NotEqual(IntPtr.Zero, control.Handle); 836Assert.NotEqual(IntPtr.Zero, control.Handle); 897Assert.Equal(IntPtr.Zero, handle); 908Assert.NotEqual(IntPtr.Zero, handle); 929Assert.NotEqual(IntPtr.Zero, control.Handle); 953Assert.NotEqual(IntPtr.Zero, control.Handle); 956Assert.NotEqual(IntPtr.Zero, handle); 1152Assert.NotEqual(IntPtr.Zero, control.Handle); 1209Assert.NotEqual(IntPtr.Zero, control.Handle); 1236Assert.NotEqual(IntPtr.Zero, control.Handle); 1267Assert.NotEqual(IntPtr.Zero, control.Handle); 1288Assert.NotEqual(IntPtr.Zero, control.Handle); 1315Assert.NotEqual(IntPtr.Zero, control.Handle); 1443Assert.NotEqual(IntPtr.Zero, control.Handle); 1482Assert.NotEqual(IntPtr.Zero, control.Handle); 1512Assert.NotEqual(IntPtr.Zero, control.Handle); 1544Assert.NotEqual(IntPtr.Zero, control.Handle); 1562Assert.NotEqual(IntPtr.Zero, control.Handle); 1581Assert.NotEqual(IntPtr.Zero, control.Handle); 1605Assert.NotEqual(IntPtr.Zero, control.Handle); 1674Assert.NotEqual(IntPtr.Zero, control.Handle); 1709Assert.NotEqual(IntPtr.Zero, control.Handle); 1730Assert.NotEqual(IntPtr.Zero, control.Handle); 1754Assert.NotEqual(IntPtr.Zero, control.Handle); 1783Assert.NotEqual(IntPtr.Zero, control.Handle); 1802Assert.NotEqual(IntPtr.Zero, control.Handle); 1814Assert.NotEqual(IntPtr.Zero, control.Handle); 1838Assert.NotEqual(IntPtr.Zero, control.Handle); 1866Assert.NotEqual(IntPtr.Zero, control.Handle); 1884Assert.NotEqual(IntPtr.Zero, control.Handle); 1896Assert.NotEqual(IntPtr.Zero, control.Handle); 1920Assert.NotEqual(IntPtr.Zero, control.Handle); 1968Assert.NotEqual(IntPtr.Zero, control.Handle); 1979Assert.NotEqual(IntPtr.Zero, control.Handle); 1991Assert.NotEqual(IntPtr.Zero, control.Handle); 2015Assert.NotEqual(IntPtr.Zero, control.Handle); 2084Assert.NotEqual(IntPtr.Zero, control.Handle); 2134Assert.NotEqual(IntPtr.Zero, control.Handle); 2203Assert.NotEqual(IntPtr.Zero, control.Handle); 2238Assert.NotEqual(IntPtr.Zero, control.Handle); 2259Assert.NotEqual(IntPtr.Zero, control.Handle); 2320Assert.NotEqual(IntPtr.Zero, control.Handle); 2344Assert.NotEqual(IntPtr.Zero, control.Handle); 2360yield return new object[] { IntPtr.Zero }; 2374Assert.NotEqual(IntPtr.Zero, control.Handle); 2397Assert.NotEqual(IntPtr.Zero, m.LParam); 2423Assert.NotEqual(IntPtr.Zero, control.Handle); 2492Assert.NotEqual(IntPtr.Zero, control.Handle); 2527Assert.NotEqual(IntPtr.Zero, control.Handle); 2596Assert.NotEqual(IntPtr.Zero, control.Handle); 2631Assert.NotEqual(IntPtr.Zero, control.Handle); 2652Assert.NotEqual(IntPtr.Zero, control.Handle); 2713Assert.NotEqual(IntPtr.Zero, control.Handle); 2737Assert.NotEqual(IntPtr.Zero, control.Handle); 2753yield return new object[] { IntPtr.Zero }; 2767Assert.NotEqual(IntPtr.Zero, control.Handle); 2790Assert.NotEqual(IntPtr.Zero, m.LParam); 2845Assert.NotEqual(IntPtr.Zero, control.Handle); 2926Assert.NotEqual(IntPtr.Zero, control.Handle); 3134Assert.NotEqual(IntPtr.Zero, control.Handle); 3191Assert.NotEqual(IntPtr.Zero, control.Handle); 3220Assert.NotEqual(IntPtr.Zero, control.Handle); 3251Assert.NotEqual(IntPtr.Zero, control.Handle); 3272Assert.NotEqual(IntPtr.Zero, control.Handle); 3299Assert.NotEqual(IntPtr.Zero, control.Handle); 3427Assert.NotEqual(IntPtr.Zero, control.Handle); 3466Assert.NotEqual(IntPtr.Zero, control.Handle); 3496Assert.NotEqual(IntPtr.Zero, control.Handle); 3528Assert.NotEqual(IntPtr.Zero, control.Handle); 3546Assert.NotEqual(IntPtr.Zero, control.Handle); 3565Assert.NotEqual(IntPtr.Zero, control.Handle); 3801Assert.NotEqual(IntPtr.Zero, control.Handle); 3855Assert.NotEqual(IntPtr.Zero, control.Handle); 3885Assert.NotEqual(IntPtr.Zero, control.Handle); 3917Assert.NotEqual(IntPtr.Zero, control.Handle); 3946Assert.NotEqual(IntPtr.Zero, control.Handle); 3990Assert.NotEqual(IntPtr.Zero, control.Handle); 4179Assert.NotEqual(IntPtr.Zero, control.Handle); 4218Assert.NotEqual(IntPtr.Zero, control.Handle); 4256Assert.NotEqual(IntPtr.Zero, control.Handle); 4296Assert.NotEqual(IntPtr.Zero, control.Handle); 4318Assert.NotEqual(IntPtr.Zero, control.Handle); 4337Assert.NotEqual(IntPtr.Zero, control.Handle); 4415Assert.NotEqual(IntPtr.Zero, control.Handle); 4453Assert.NotEqual(IntPtr.Zero, control.Handle); 4476Assert.NotEqual(IntPtr.Zero, control.Handle); 4521Assert.NotEqual(IntPtr.Zero, control.Handle); 4590Assert.NotEqual(IntPtr.Zero, control.Handle); 4865m.Result = IntPtr.Zero; 4883Assert.Equal(IntPtr.Zero, m.WParam); 4904Assert.Equal(IntPtr.Zero, m.WParam); 4942m.Result = IntPtr.Zero;
System\Windows\Forms\TreeViewTests.cs (122)
145Assert.Equal(IntPtr.Zero, createParams.Parent); 159Assert.NotEqual(IntPtr.Zero, control.Handle); 173Assert.Equal(IntPtr.Zero, createParams.Parent); 203Assert.Equal(IntPtr.Zero, createParams.Parent); 229Assert.Equal(IntPtr.Zero, createParams.Parent); 255Assert.Equal(IntPtr.Zero, createParams.Parent); 281Assert.Equal(IntPtr.Zero, createParams.Parent); 307Assert.Equal(IntPtr.Zero, createParams.Parent); 333Assert.Equal(IntPtr.Zero, createParams.Parent); 359Assert.Equal(IntPtr.Zero, createParams.Parent); 385Assert.Equal(IntPtr.Zero, createParams.Parent); 411Assert.Equal(IntPtr.Zero, createParams.Parent); 437Assert.Equal(IntPtr.Zero, createParams.Parent); 456Assert.NotEqual(IntPtr.Zero, control.Handle); 470Assert.Equal(IntPtr.Zero, createParams.Parent); 489Assert.NotEqual(IntPtr.Zero, control.Handle); 503Assert.Equal(IntPtr.Zero, createParams.Parent); 549Assert.Equal(IntPtr.Zero, createParams.Parent); 581Assert.NotEqual(IntPtr.Zero, control.Handle); 595Assert.Equal(IntPtr.Zero, createParams.Parent); 623Assert.Equal(IntPtr.Zero, createParams.Parent); 642Assert.NotEqual(IntPtr.Zero, control.Handle); 656Assert.Equal(IntPtr.Zero, createParams.Parent); 689Assert.Equal(IntPtr.Zero, createParams.Parent); 732Assert.NotEqual(IntPtr.Zero, control.Handle); 999Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1060Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1148Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1201Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1289Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1338Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1422Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1488Assert.NotEqual(IntPtr.Zero, control.Handle); 1557Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1645Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1679Assert.NotEqual(IntPtr.Zero, control.Handle); 1686yield return new object[] { IntPtr.Zero, 1 }; 1700Assert.NotEqual(IntPtr.Zero, control.Handle); 1713Assert.Equal(IntPtr.Zero, m.WParam); 1714Assert.Equal(IntPtr.Zero, m.LParam); 1721Assert.Equal(IntPtr.Zero, m.LParam); 1754Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1842Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1895Assert.NotEqual(IntPtr.Zero, treeView.Handle); 1983Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2152Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2176Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2202Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2361Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2382Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2405Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2497Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2515Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2534Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2552Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2591Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2603Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2604Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2616Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2619Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2631Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2632Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2635Assert.NotEqual(IntPtr.Zero, imageList.Handle); 2670Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2767Assert.NotEqual(IntPtr.Zero, control.Handle); 2839Assert.NotEqual(IntPtr.Zero, treeView.Handle); 2927Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3008Assert.NotEqual(IntPtr.Zero, control.Handle); 3122Assert.NotEqual(IntPtr.Zero, control.Handle); 3210Assert.NotEqual(IntPtr.Zero, control.Handle); 3255Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3343Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3512Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3536Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3562Assert.NotEqual(IntPtr.Zero, imageList.Handle); 3711Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3732Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3755Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3791Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3879Assert.NotEqual(IntPtr.Zero, treeView.Handle); 3932Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4020Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4073Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4161Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4214Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4302Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4355Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4443Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4510Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4529Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4568Assert.NotEqual(IntPtr.Zero, imageList.Handle); 4580Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4581Assert.NotEqual(IntPtr.Zero, imageList.Handle); 4593Assert.NotEqual(IntPtr.Zero, imageList.Handle); 4596Assert.NotEqual(IntPtr.Zero, imageList.Handle); 4608Assert.NotEqual(IntPtr.Zero, treeView.Handle); 4609Assert.NotEqual(IntPtr.Zero, imageList.Handle); 4612Assert.NotEqual(IntPtr.Zero, imageList.Handle); 4637Assert.NotEqual(IntPtr.Zero, control.Handle); 4837Assert.NotEqual(IntPtr.Zero, control.Handle); 4866Assert.NotEqual(IntPtr.Zero, control.Handle); 4895Assert.NotEqual(IntPtr.Zero, control.Handle); 4965Assert.NotEqual(IntPtr.Zero, control.Handle); 4994Assert.NotEqual(IntPtr.Zero, control.Handle); 5023Assert.NotEqual(IntPtr.Zero, control.Handle); 5173Assert.NotEqual(IntPtr.Zero, control.Handle); 5206Assert.NotEqual(IntPtr.Zero, control.Handle); 5239Assert.NotEqual(IntPtr.Zero, control.Handle); 5325Assert.NotEqual(IntPtr.Zero, control.Handle); 5358Assert.NotEqual(IntPtr.Zero, control.Handle); 5391Assert.NotEqual(IntPtr.Zero, control.Handle); 5977Assert.NotEqual(IntPtr.Zero, control.Handle); 6033Assert.NotEqual(IntPtr.Zero, control.Handle); 6114Assert.NotEqual(IntPtr.Zero, control.Handle); 6195Assert.NotEqual(IntPtr.Zero, control.Handle); 6227Assert.NotEqual(IntPtr.Zero, control.Handle); 6260Assert.NotEqual(IntPtr.Zero, imageList.Handle); 6266Assert.NotEqual(IntPtr.Zero, control.Handle); 6350Assert.NotEqual(IntPtr.Zero, control.Handle); 6559Assert.NotEqual(IntPtr.Zero, control.Handle); 6600Assert.NotEqual(IntPtr.Zero, control.Handle); 6821Assert.NotEqual(IntPtr.Zero, toolTip.Handle); // A workaround to create the toolTip native window Handle
System\Windows\Forms\UpDownBaseTests.cs (29)
162Assert.Equal(IntPtr.Zero, createParams.Parent); 192Assert.Equal(IntPtr.Zero, createParams.Parent); 235Assert.NotEqual(IntPtr.Zero, control.Handle); 326Assert.NotEqual(IntPtr.Zero, control.Handle); 411Assert.NotEqual(IntPtr.Zero, control.Handle); 543Assert.NotEqual(IntPtr.Zero, control.Handle); 775Assert.NotEqual(IntPtr.Zero, control.Handle); 838Assert.NotEqual(IntPtr.Zero, control.Handle); 966Assert.NotEqual(IntPtr.Zero, control.Handle); 1052Assert.NotEqual(IntPtr.Zero, control.Handle); 1199Assert.NotEqual(IntPtr.Zero, control.Handle); 1307Assert.NotEqual(IntPtr.Zero, control.Handle); 1397Assert.NotEqual(IntPtr.Zero, control.Handle); 1481Assert.NotEqual(IntPtr.Zero, control.Handle); 1540Assert.NotEqual(IntPtr.Zero, control.Handle); 1743Assert.NotEqual(IntPtr.Zero, control.Handle); 1873Assert.NotEqual(IntPtr.Zero, control.Handle); 1931Assert.NotEqual(IntPtr.Zero, control.Handle); 2294Assert.NotEqual(IntPtr.Zero, control.Handle); 2643Assert.NotEqual(IntPtr.Zero, control.Handle); 2833Assert.NotEqual(IntPtr.Zero, control.Handle); 2869Assert.Equal(IntPtr.Zero, m.Result); 2879Assert.NotEqual(IntPtr.Zero, control.Handle); 2895Assert.Equal(IntPtr.Zero, m.Result); 2922Assert.Equal(IntPtr.Zero, m.Result); 2932Assert.NotEqual(IntPtr.Zero, control.Handle); 2953Assert.Equal(IntPtr.Zero, m.Result); 2987Assert.NotEqual(IntPtr.Zero, control.Handle); 3028toolTip.Handle.Should().NotBe(IntPtr.Zero); // A workaround to create the toolTip native window Handle
System\Windows\Forms\UserControlTests.cs (14)
138Assert.Equal(IntPtr.Zero, createParams.Parent); 164Assert.Equal(IntPtr.Zero, createParams.Parent); 489Assert.NotEqual(IntPtr.Zero, control.Handle); 537Assert.NotEqual(IntPtr.Zero, parent.Handle); 610Assert.NotEqual(IntPtr.Zero, parent.Handle); 761Assert.NotEqual(IntPtr.Zero, control.Handle); 815Assert.NotEqual(IntPtr.Zero, control.Handle); 1022Assert.NotEqual(IntPtr.Zero, control.Handle); 1161Assert.NotEqual(IntPtr.Zero, control.Handle); 1215Assert.NotEqual(IntPtr.Zero, control.Handle); 1690Assert.NotEqual(IntPtr.Zero, control.Handle); 1711Assert.Equal(IntPtr.Zero, m.Result); 1727Assert.NotEqual(IntPtr.Zero, control.Handle); 1758Assert.NotEqual(IntPtr.Zero, control.Handle);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (5)
35Assert.NotEqual(IntPtr.Zero, renderer.Handle); 69Assert.NotEqual(IntPtr.Zero, renderer.Handle); 384Assert.NotEqual(IntPtr.Zero, childControl.Handle); 523Assert.NotEqual(IntPtr.Zero, renderer.Handle); 544Assert.NotEqual(IntPtr.Zero, renderer.Handle);
System\Windows\Forms\VScrollBarTests.cs (1)
131Assert.Equal(IntPtr.Zero, createParams.Parent);
System\Windows\Forms\WebBrowserTests.cs (29)
114Assert.Equal(IntPtr.Zero, createParams.Parent); 128Assert.NotEqual(IntPtr.Zero, control.Handle); 1081Assert.NotEqual(IntPtr.Zero, control.Handle); 1338Assert.NotEqual(IntPtr.Zero, control.Handle); 1482Assert.NotEqual(IntPtr.Zero, control.Handle); 1504Assert.NotEqual(IntPtr.Zero, control.Handle); 1522Assert.NotEqual(IntPtr.Zero, parent.Handle); 2179Assert.NotEqual(IntPtr.Zero, control.Handle); 2197Assert.NotEqual(IntPtr.Zero, control.Handle); 4459Assert.NotEqual(IntPtr.Zero, control.Handle); 4480Assert.Equal(IntPtr.Zero, m.Result); 4518Assert.Equal(IntPtr.Zero, m.Result); 4529yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(0, 0), IntPtr.Zero, true }; 4530yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(1, 2), IntPtr.Zero, true }; 4534yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero, false }; 4535yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero, true }; 4536yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero, true }; 4537yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero, true }; 4538yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, false }; 4575Assert.NotEqual(IntPtr.Zero, control.Handle); 4590Assert.Equal(IntPtr.Zero, m.Result); 4603yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(0, 0), IntPtr.Zero }; 4604yield return new object[] { new Size(10, 20), PARAM.FromLowHigh(1, 2), IntPtr.Zero }; 4608yield return new object[] { Size.Empty, (IntPtr)(-1), IntPtr.Zero }; 4609yield return new object[] { Size.Empty, PARAM.FromLowHigh(0, 0), IntPtr.Zero }; 4610yield return new object[] { Size.Empty, PARAM.FromLowHigh(1, 2), IntPtr.Zero }; 4611yield return new object[] { Size.Empty, PARAM.FromLowHigh(p.X, p.Y), IntPtr.Zero }; 4612yield return new object[] { Size.Empty, PARAM.FromLowHigh(-1, -2), IntPtr.Zero }; 4625Assert.NotEqual(IntPtr.Zero, control.Handle);
TextBoxBaseTests.ClipboardTests.cs (3)
69control.Handle.Should().NotBe(IntPtr.Zero); 129control.Handle.Should().NotBe(IntPtr.Zero); 221control.Handle.Should().NotBe(IntPtr.Zero);
TextBoxBaseTests.cs (225)
30Assert.Equal(IntPtr.Zero, createParams.Parent); 56Assert.Equal(IntPtr.Zero, createParams.Parent); 82Assert.Equal(IntPtr.Zero, createParams.Parent); 108Assert.Equal(IntPtr.Zero, createParams.Parent); 137Assert.Equal(IntPtr.Zero, createParams.Parent); 626Assert.NotEqual(IntPtr.Zero, control.Handle); 697Assert.NotEqual(IntPtr.Zero, control.Handle); 714yield return new object[] { IntPtr.Zero, false }; 726Assert.NotEqual(IntPtr.Zero, control.Handle); 834Assert.NotEqual(IntPtr.Zero, control.Handle); 968Assert.NotEqual(IntPtr.Zero, control.Handle); 1005Assert.NotEqual(IntPtr.Zero, control.Handle); 1052Assert.NotEqual(IntPtr.Zero, control.Handle); 1091Assert.NotEqual(IntPtr.Zero, control.Handle); 1201Assert.NotEqual(IntPtr.Zero, control.Handle); 1287Assert.NotEqual(IntPtr.Zero, control.Handle); 1303Assert.NotEqual(IntPtr.Zero, control.Handle); 1335Assert.NotEqual(IntPtr.Zero, control.Handle); 1526Assert.NotEqual(IntPtr.Zero, control.Handle); 1659Assert.NotEqual(IntPtr.Zero, control.Handle); 1725Assert.NotEqual(IntPtr.Zero, control.Handle); 1753Assert.NotEqual(IntPtr.Zero, control.Handle); 1781Assert.NotEqual(IntPtr.Zero, control.Handle); 1797Assert.NotEqual(IntPtr.Zero, control.Handle); 1858Assert.NotEqual(IntPtr.Zero, control.Handle); 1897Assert.NotEqual(IntPtr.Zero, control.Handle); 2120Assert.NotEqual(IntPtr.Zero, control.Handle); 2214Assert.NotEqual(IntPtr.Zero, control.Handle); 2299Assert.NotEqual(IntPtr.Zero, control.Handle); 2365Assert.NotEqual(IntPtr.Zero, control.Handle); 2403Assert.NotEqual(IntPtr.Zero, control.Handle); 2542Assert.NotEqual(IntPtr.Zero, control.Handle); 2712Assert.NotEqual(IntPtr.Zero, control.Handle); 2762Assert.NotEqual(IntPtr.Zero, control.Handle); 2870Assert.NotEqual(IntPtr.Zero, control.Handle); 2912Assert.NotEqual(IntPtr.Zero, control.Handle); 2938Assert.NotEqual(IntPtr.Zero, control.Handle); 3047Assert.NotEqual(IntPtr.Zero, control.Handle); 3089Assert.NotEqual(IntPtr.Zero, control.Handle); 3176Assert.NotEqual(IntPtr.Zero, control.Handle); 3332Assert.NotEqual(IntPtr.Zero, control.Handle); 3376Assert.NotEqual(IntPtr.Zero, control.Handle); 3441Assert.NotEqual(IntPtr.Zero, control.Handle); 3516Assert.NotEqual(IntPtr.Zero, control.Handle); 3619Assert.NotEqual(IntPtr.Zero, control.Handle); 3664Assert.NotEqual(IntPtr.Zero, control.Handle); 3826Assert.NotEqual(IntPtr.Zero, control.Handle); 3961Assert.NotEqual(IntPtr.Zero, control.Handle); 3990Assert.NotEqual(IntPtr.Zero, control.Handle); 4043Assert.NotEqual(IntPtr.Zero, control.Handle); 4073Assert.NotEqual(IntPtr.Zero, control.Handle); 4113Assert.NotEqual(IntPtr.Zero, control.Handle); 4143Assert.NotEqual(IntPtr.Zero, control.Handle); 4188Assert.NotEqual(IntPtr.Zero, control.Handle); 4299Assert.NotEqual(IntPtr.Zero, control.Handle); 4321Assert.NotEqual(IntPtr.Zero, control.Handle); 4344Assert.NotEqual(IntPtr.Zero, control.Handle); 4413Assert.NotEqual(IntPtr.Zero, control.Handle); 4435Assert.NotEqual(IntPtr.Zero, control.Handle); 4459Assert.NotEqual(IntPtr.Zero, control.Handle); 4501Assert.NotEqual(IntPtr.Zero, control.Handle); 4513Assert.Equal(IntPtr.Zero, m.WParam); 4550Assert.NotEqual(IntPtr.Zero, control.Handle); 4571Assert.NotEqual(IntPtr.Zero, control.Handle); 4589yield return new object[] { IntPtr.Zero, 0 }; 4605Assert.NotEqual(IntPtr.Zero, control.Handle); 4639Assert.NotEqual(IntPtr.Zero, control.Handle); 4661Assert.NotEqual(IntPtr.Zero, control.Handle); 4679yield return new object[] { IntPtr.Zero, 0 }; 4695Assert.NotEqual(IntPtr.Zero, control.Handle); 4709Assert.Equal(IntPtr.Zero, m.LParam); 4798yield return new object[] { IntPtr.Zero, 0 }; 4813Assert.NotEqual(IntPtr.Zero, control.Handle); 4826Assert.Equal(IntPtr.Zero, m.LParam); 4884Assert.NotEqual(IntPtr.Zero, control.Handle); 4910Assert.NotEqual(IntPtr.Zero, control.Handle); 4937Assert.NotEqual(IntPtr.Zero, control.Handle); 4954yield return new object[] { IntPtr.Zero, Point.Empty }; 4970Assert.NotEqual(IntPtr.Zero, control.Handle); 4983Assert.Equal(IntPtr.Zero, m.LParam); 5264Assert.NotEqual(IntPtr.Zero, control.Handle); 5400Assert.NotEqual(IntPtr.Zero, control.Handle); 5470Assert.NotEqual(IntPtr.Zero, control.Handle); 5637Assert.NotEqual(IntPtr.Zero, control.Handle); 6103Assert.NotEqual(IntPtr.Zero, control.Handle); 6125Assert.NotEqual(IntPtr.Zero, control.Handle); 6142yield return new object[] { IntPtr.Zero }; 6152GetOleInterfaceResult = IntPtr.Zero, 6156Assert.NotEqual(IntPtr.Zero, control.Handle); 6182Assert.NotEqual(IntPtr.Zero, control.Handle); 6255Assert.NotEqual(IntPtr.Zero, control.Handle); 6297Assert.NotEqual(IntPtr.Zero, control.Handle); 6362Assert.NotEqual(IntPtr.Zero, control.Handle); 6397Assert.NotEqual(IntPtr.Zero, control.Handle); 6433Assert.NotEqual(IntPtr.Zero, control.Handle); 6887Assert.NotEqual(IntPtr.Zero, control.Handle); 6914Assert.NotEqual(IntPtr.Zero, control.Handle); 6936IntPtr expectedResult = shortcutsEnabled ? IntPtr.Zero : 250; 6979IntPtr expectedResult = shortcutsEnabled ? IntPtr.Zero : 250; 7031Assert.NotEqual(IntPtr.Zero, control.Handle); 7060IntPtr expectedResult = shortcutsEnabled ? IntPtr.Zero : 250; 7087Assert.NotEqual(IntPtr.Zero, control.Handle); 7114yield return new object[] { false, IntPtr.Zero }; 7146Assert.NotEqual(IntPtr.Zero, control.Handle); 7169yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 0, 0 }; 7170yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, 1, 2 }; 7171yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 1, -1, -2 }; 7172yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 0, 0 }; 7173yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, 1, 2 }; 7174yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 1, -1, -2 }; 7176yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 0, 0 }; 7177yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, 1, 2 }; 7178yield return new object[] { true, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Left, 2, -1, -2 }; 7179yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 0, 0 }; 7180yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, 1, 2 }; 7181yield return new object[] { false, (int)PInvokeCore.WM_LBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Left, 2, -1, -2 }; 7183yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 0, 0 }; 7184yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, 1, 2 }; 7185yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 1, -1, -2 }; 7186yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 0, 0 }; 7187yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, 1, 2 }; 7188yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 1, -1, -2 }; 7190yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 0, 0 }; 7191yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, 1, 2 }; 7192yield return new object[] { true, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Middle, 2, -1, -2 }; 7193yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 0, 0 }; 7194yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, 1, 2 }; 7195yield return new object[] { false, (int)PInvokeCore.WM_MBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Middle, 2, -1, -2 }; 7197yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 0, 0 }; 7198yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, 1, 2 }; 7199yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 1, -1, -2 }; 7200yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 0, 0 }; 7201yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, 1, 2 }; 7202yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 1, -1, -2 }; 7204yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 0, 0 }; 7205yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, 1, 2 }; 7206yield return new object[] { true, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.Right, 2, -1, -2 }; 7207yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 0, 0 }; 7208yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, 1, 2 }; 7209yield return new object[] { false, (int)PInvokeCore.WM_RBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.Right, 2, -1, -2 }; 7211yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 0, 0 }; 7212yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, 1, 2 }; 7213yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 1, -1, -2 }; 7214yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 0, 0 }; 7215yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, 1, 2 }; 7216yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 1, -1, -2 }; 7218yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 1, 0, 0 }; 7221yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 0, 0 }; 7222yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, 1, 2 }; 7223yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 1, -1, -2 }; 7225yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 1, 0, 0 }; 7228yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 0, 0 }; 7229yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, 1, 2 }; 7230yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDOWN, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 1, -1, -2 }; 7232yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 0, 0 }; 7233yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, 1, 2 }; 7234yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, (IntPtr)250, MouseButtons.None, 2, -1, -2 }; 7235yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 0, 0 }; 7236yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, 1, 2 }; 7237yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), IntPtr.Zero, IntPtr.Zero, MouseButtons.None, 2, -1, -2 }; 7239yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), (IntPtr)250, MouseButtons.XButton1, 2, 0, 0 }; 7242yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 0, 0 }; 7243yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, 1, 2 }; 7244yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(2, 1), IntPtr.Zero, MouseButtons.XButton1, 2, -1, -2 }; 7246yield return new object[] { true, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), (IntPtr)250, MouseButtons.XButton2, 2, 0, 0 }; 7249yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, IntPtr.Zero, PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 0, 0 }; 7250yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(1, 2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, 1, 2 }; 7251yield return new object[] { false, (int)PInvokeCore.WM_XBUTTONDBLCLK, PARAM.FromLowHigh(-1, -2), PARAM.FromLowHigh(1, 2), IntPtr.Zero, MouseButtons.XButton2, 2, -1, -2 }; 7350Assert.Equal(IntPtr.Zero, m.Result); 7364Assert.NotEqual(IntPtr.Zero, control.Handle); 7408Assert.NotEqual(IntPtr.Zero, control.Handle); 7460Assert.NotEqual(IntPtr.Zero, control.Handle); 7476Assert.Equal(IntPtr.Zero, m.Result); 7490Assert.NotEqual(IntPtr.Zero, control.Handle); 7511Assert.Equal(IntPtr.Zero, m.Result); 7521foreach (IntPtr lParam in new IntPtr[] { IntPtr.Zero, 1 }) 7523yield return new object[] { IntPtr.Zero, lParam, 0 }; 7567Assert.NotEqual(IntPtr.Zero, control.Handle); 7622Assert.Equal(IntPtr.Zero, m.Result); 7642Assert.NotEqual(IntPtr.Zero, control.Handle); 7664Assert.Equal(IntPtr.Zero, m.Result);
TextBoxTests.cs (7)
138Assert.Equal(IntPtr.Zero, createParams.Parent); 164Assert.NotEqual(IntPtr.Zero, control.Handle); 202Assert.NotEqual(IntPtr.Zero, control.Handle); 240Assert.NotEqual(IntPtr.Zero, control.Handle); 313Assert.NotEqual(IntPtr.Zero, control.Handle); 565Assert.NotEqual(IntPtr.Zero, control.Handle); 635Assert.NotEqual(IntPtr.Zero, control.Handle);
TextBoxTests.Rendering.cs (2)
28Assert.NotEqual(IntPtr.Zero, form.Handle); 29Assert.NotEqual(IntPtr.Zero, textBox.Handle);
TrackBarTests.cs (43)
125Assert.Equal(IntPtr.Zero, createParams.Parent); 153Assert.Equal(IntPtr.Zero, createParams.Parent); 179Assert.Equal(IntPtr.Zero, createParams.Parent); 210Assert.Equal(IntPtr.Zero, createParams.Parent); 298Assert.NotEqual(IntPtr.Zero, control.Handle); 352Assert.NotEqual(IntPtr.Zero, control.Handle); 588Assert.NotEqual(IntPtr.Zero, control.Handle); 715Assert.NotEqual(IntPtr.Zero, control.Handle); 781Assert.NotEqual(IntPtr.Zero, control.Handle); 792Assert.NotEqual(IntPtr.Zero, control.Handle); 811Assert.NotEqual(IntPtr.Zero, control.Handle); 823Assert.NotEqual(IntPtr.Zero, control.Handle); 834Assert.NotEqual(IntPtr.Zero, control.Handle); 845Assert.NotEqual(IntPtr.Zero, control.Handle); 866Assert.NotEqual(IntPtr.Zero, control.Handle); 910Assert.NotEqual(IntPtr.Zero, control.Handle); 1005Assert.NotEqual(IntPtr.Zero, control.Handle); 1075Assert.NotEqual(IntPtr.Zero, control.Handle); 1138Assert.NotEqual(IntPtr.Zero, control.Handle); 1214Assert.NotEqual(IntPtr.Zero, control.Handle); 1276Assert.NotEqual(IntPtr.Zero, control.Handle); 1381Assert.NotEqual(IntPtr.Zero, control.Handle); 1428Assert.NotEqual(IntPtr.Zero, control.Handle); 1488Assert.NotEqual(IntPtr.Zero, control.Handle); 1602Assert.NotEqual(IntPtr.Zero, control.Handle); 1690Assert.NotEqual(IntPtr.Zero, control.Handle); 1739Assert.NotEqual(IntPtr.Zero, control.Handle); 1795Assert.NotEqual(IntPtr.Zero, control.Handle); 1884Assert.NotEqual(IntPtr.Zero, control.Handle); 1933Assert.NotEqual(IntPtr.Zero, control.Handle); 2120Assert.NotEqual(IntPtr.Zero, control.Handle); 2216Assert.NotEqual(IntPtr.Zero, control.Handle); 2356Assert.NotEqual(IntPtr.Zero, control.Handle); 2470Assert.NotEqual(IntPtr.Zero, control.Handle); 2662Assert.NotEqual(IntPtr.Zero, control.Handle); 2703Assert.NotEqual(IntPtr.Zero, control.Handle); 2778Assert.NotEqual(IntPtr.Zero, control.Handle); 3089Assert.NotEqual(IntPtr.Zero, control.Handle); 3121Assert.NotEqual(IntPtr.Zero, control.Handle); 3142Assert.Equal(IntPtr.Zero, m.Result); 3152yield return new object[] { MessageId.WM_REFLECT | PInvokeCore.WM_HSCROLL, IntPtr.Zero }; 3165yield return new object[] { MessageId.WM_REFLECT | PInvokeCore.WM_VSCROLL, IntPtr.Zero }; 3187Assert.NotEqual(IntPtr.Zero, control.Handle);
WebBrowserBaseTests.cs (2)
184Assert.NotEqual(IntPtr.Zero, control.Handle); 688Assert.NotEqual(IntPtr.Zero, control.Handle);
TlsFeaturesObserve (1)
HttpSys\HttpSysConfigurator.cs (1)
103var retVal = HttpInitialize(HttpApiVersion, flags, IntPtr.Zero);
UIAutomationClient (62)
MS\Internal\Automation\Accessible.cs (3)
57if (_hwnd == IntPtr.Zero) 63_hwnd = IntPtr.Zero; 71_hwnd = IntPtr.Zero;
MS\Internal\Automation\BoundingRectTracker.cs (1)
45if ( hwnd == IntPtr.Zero || idObject != UnsafeNativeMethods.OBJID_WINDOW )
MS\Internal\Automation\ClickablePoint.cs (1)
33if (SafeNativeMethods.MonitorFromRect( ref winRect, SafeNativeMethods.MONITOR_DEFAULTTONULL ) == IntPtr.Zero)
MS\Internal\Automation\FocusTracker.cs (6)
47if (hwnd != IntPtr.Zero) 80if (hwnd != IntPtr.Zero) 253if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.Cast(hwndCur))) 269HandleFocusChange(IntPtr.Zero, null, 0, 0, eventTime); 293IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.Cast(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Automation\HwndProxyElementProvider.cs (19)
116IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero ); 126if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero) 344if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero)) 365if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero)) 387if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero)) 572IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult); 573if ( ret == IntPtr.Zero ) 794Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo); 861if (hmenu != IntPtr.Zero) 906if (hmenu != IntPtr.Zero) 994if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 999return IntPtr.Zero; 1720if (hrgn == IntPtr.Zero) 1816IntPtr lr = Misc.SendMessageTimeout( hChild, UnsafeNativeMethods.WM_NCHITTEST, IntPtr.Zero, MAKELPARAM( (int)x, (int)y ) ); 1993if (parent == IntPtr.Zero) 1997IntPtr lresult = Misc.SendMessageTimeout(parent, UnsafeNativeMethods.WM_MDIACTIVATE, (IntPtr)hwnd, IntPtr.Zero); 1998return lresult == IntPtr.Zero;
MS\Internal\Automation\MenuTracker.cs (1)
56if( hwnd == IntPtr.Zero )
MS\Internal\Automation\Misc.cs (8)
274if (result == IntPtr.Zero) 398IntPtr result = IntPtr.Zero; 416if ((result == IntPtr.Zero) && (error != 0)) 517if (processHandle == IntPtr.Zero 532if (processHandle == IntPtr.Zero) 588if (smtoRetVal == IntPtr.Zero) 605if (smtoRetVal == IntPtr.Zero) 622if (smtoRetVal == IntPtr.Zero)
MS\Internal\Automation\ProxyManager.cs (1)
791IntPtr result = Misc.SendMessageTimeout(hwnd, UnsafeNativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX);
MS\Internal\Automation\SafeHandles.cs (6)
20: base(IntPtr.Zero, true) 28get { return handle == IntPtr.Zero; } 44: base(IntPtr.Zero, true) 51get { return handle == IntPtr.Zero; } 65: base(IntPtr.Zero, true) 71get { return handle == IntPtr.Zero; }
MS\Internal\Automation\UiaCoreApi.cs (2)
161if (_pProperties != IntPtr.Zero) 619if (pInts == IntPtr.Zero)
MS\Internal\Automation\WindowHideOrCloseTracker.cs (1)
55if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
52if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
55if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
52if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WinEventWrap.cs (4)
109_hHooks[i] = UnsafeNativeMethods.SetWinEventHook(eventId, eventId, IntPtr.Zero, _winEventProc, 0, 0, _fFlags); 110if (_hHooks[i] == IntPtr.Zero) 129if (_hHooks[i] != IntPtr.Zero) 134_hHooks[i] = IntPtr.Zero;
MS\Win32\NativeMethods.cs (1)
55h = IntPtr.Zero
System\Windows\Automation\AutomationElement.cs (1)
424Misc.ValidateArgument(hwnd != IntPtr.Zero, nameof(SR.HwndMustBeNonNULL));
System\Windows\Automation\Condition.cs (2)
15: base(IntPtr.Zero, true) 23get { return handle == IntPtr.Zero; }
System\Windows\Automation\Text\TextRange.cs (2)
22: base(IntPtr.Zero, true) 29get { return handle == IntPtr.Zero; }
UIAutomationClientSideProviders (647)
MS\Internal\AutomationProxies\Accessible.cs (6)
157IntPtr wParam = IntPtr.Zero; 163if (lResult == IntPtr.Zero) 440bool inSameHwnd = Window != IntPtr.Zero && Window == hwnd; 836if (_hwnd == IntPtr.Zero) 843_hwnd = IntPtr.Zero; 855_hwnd = IntPtr.Zero;
MS\Internal\AutomationProxies\ClickablePoint.cs (7)
20_hwndProgman = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", null); 21if (_hwndProgman == IntPtr.Zero) 60for (hwnd = Misc.GetWindow(hwnd, NativeMethods.GW_CHILD); hwnd != IntPtr.Zero; hwnd = Misc.GetWindow(hwnd, NativeMethods.GW_HWNDNEXT)) 75if (hwnd == IntPtr.Zero) 94if (hwnd == IntPtr.Zero) 259int lr = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (4)
28_hTheme = new SafeThemeHandle(IntPtr.Zero, false); 58fSuccess = GetThemePartSize(_hTheme, IntPtr.Zero, iPartId, iStateId, IntPtr.Zero, (int)THEMESIZE.TS_TRUE, &size) == IntPtr.Zero;
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
42SetHandle(Misc.VirtualAllocEx(_processHandle, IntPtr.Zero, new UIntPtr((uint)cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE));
MS\Internal\AutomationProxies\CommonXSendMessage.cs (55)
109if (!ignoreSendResult && result == IntPtr.Zero) 139if (IsWOW64Process(IntPtr.Zero)) 195if (Misc.ProxySendMessage(hwnd, uMsg, wParam, rmem.Address) == IntPtr.Zero) 239if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero))) 286if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero))) 342if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero))) 408return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 414return GetTextWithinStructureRemoteBitness(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, 423return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 465return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 472bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 484bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 667IntPtr textAddress = IntPtr.Zero; 915return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 922bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 935bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 956return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType())); 962return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 968return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 978IntPtr hitTestItem = IntPtr.Zero; 983if (Misc.MapWindowPoints(IntPtr.Zero, hwnd, ref clientPoint, 1)) 989if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo), 998if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo32), 1007if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo64), 1027return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 1034hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), 1042return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 1190Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rectW32, 2); 1256if (Misc.ProxySendMessage(hwnd, msg, new IntPtr(index), rmem.Address) != IntPtr.Zero) 1353if (group.pszHeader != IntPtr.Zero) 1622pszText = IntPtr.Zero, 1723pszText = IntPtr.Zero, 1724hbm = IntPtr.Zero, 1731pvFilter = IntPtr.Zero 1829pszText = IntPtr.Zero, 1948pszText = IntPtr.Zero, 1955puColumns = IntPtr.Zero 2148pszHeader = IntPtr.Zero, 2150pszFooter = IntPtr.Zero, 2232pszHeader = IntPtr.Zero, 2234pszFooter = IntPtr.Zero, 2242pszSubtitle = IntPtr.Zero, 2244pszTask = IntPtr.Zero, 2246pszDescriptionTop = IntPtr.Zero, 2248pszDescriptionBottom = IntPtr.Zero, 2254pszSubsetTitle = IntPtr.Zero, // NULL if group is not subset 2345iString = IntPtr.Zero 2445hItem = IntPtr.Zero, 2448pszText = IntPtr.Zero, 2593hwnd = IntPtr.Zero, 2596hinst = IntPtr.Zero, 2597pszText = IntPtr.Zero,
MS\Internal\AutomationProxies\EventManager.cs (1)
581private static IntPtr _hwndLast = IntPtr.Zero;
MS\Internal\AutomationProxies\Misc.cs (44)
178if (result == IntPtr.Zero) 207if (label == IntPtr.Zero) 237if (!MapWindowPoints(hwnd, IntPtr.Zero, ref leftTop, 1)) 243if (!MapWindowPoints(hwnd, IntPtr.Zero, ref rightBottom, 1)) 303if (hdc == IntPtr.Zero) 315return ProxyGetGUIThreadInfo(0, out gui) ? gui.hwndFocus : IntPtr.Zero; 320if (hwndToolTip != IntPtr.Zero) 373return IntPtr.Zero; 378if (hwndParent == IntPtr.Zero || hwndParent == UnsafeNativeMethods.GetDesktopWindow()) 380return IntPtr.Zero; 386while ((peer = NativeMethodsSetLastError.GetWindow(peer, NativeMethods.GW_HWNDPREV)) != IntPtr.Zero) 391int code = Misc.ProxySendMessageInt(peer, NativeMethods.WM_GETDLGCODE, IntPtr.Zero, IntPtr.Zero); 419return IntPtr.Zero; 506if (hwndParent == IntPtr.Zero) 569IntPtr memAddr = IntPtr.Zero; // Ptr to remote mem 578memAddr = VirtualAlloc(IntPtr.Zero, new UIntPtr(cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE); 584if (ProxySendMessage(hwnd, uMsg, wParam, memAddr) == IntPtr.Zero) 605if (memAddr != IntPtr.Zero) 617if (resultHwnd == IntPtr.Zero) 752if (hwnd == IntPtr.Zero) 865while (hwnd != IntPtr.Zero) 898if ((IsProgmanWindow(hWndFrom) && hWndTo == IntPtr.Zero) || 899(hWndFrom == IntPtr.Zero && IsProgmanWindow(hWndTo))) 923if ((IsProgmanWindow(hWndFrom) && hWndTo == IntPtr.Zero) || 924(hWndFrom == IntPtr.Zero && IsProgmanWindow(hWndTo))) 1018if (processHandle == IntPtr.Zero 1034if (processHandle == IntPtr.Zero) 1062int index = ProxySendMessageInt(hwnd, NativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX, true); 1196IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, NativeMethods.WM_GETTITLEBARINFOEX, IntPtr.Zero, ref ti, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1198if (resultSendMessage == IntPtr.Zero) 1254if (resultSendMessage == IntPtr.Zero) 1282if (resultSendMessage == IntPtr.Zero) 1308if (resultSendMessage == IntPtr.Zero) 1334if (resultSendMessage == IntPtr.Zero) 1349if (resultSendMessage == IntPtr.Zero) 1524if (RegisterHotKey(IntPtr.Zero, atom, 0, vk)) 1572if (!GetMessage(ref msg, IntPtr.Zero, 0, 0)) 1590UnregisterHotKey(IntPtr.Zero, atom); 1747if (result == IntPtr.Zero) 1760if (result == IntPtr.Zero) 1842if (hwndShell == IntPtr.Zero) 1855int commonControlVersion = Misc.ProxySendMessageInt(hwnd, NativeMethods.CCM_GETVERSION, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (3)
52Debug.Assert(hwnd != IntPtr.Zero); 157int index = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX, true); 1077Debug.Assert(_hwnd != IntPtr.Zero);
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (4)
79_hHooks[0] = Misc.SetWinEventHook(_eventMin, _eventMax, IntPtr.Zero, _winEventProc, 0, 0, _fFlags); 80if (_hHooks[0] == IntPtr.Zero) 97if (_hHooks[i] != IntPtr.Zero) 100_hHooks[i] = IntPtr.Zero;
MS\Internal\AutomationProxies\NonClientArea.cs (3)
144if (menu == IntPtr.Zero) 208int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 539if (menu != IntPtr.Zero)
MS\Internal\AutomationProxies\ProxyHwnd.cs (7)
212if (_controlLabel == IntPtr.Zero && name != null && GetParent() == null) 220if (_controlLabel != IntPtr.Zero) 236if (hwndParent != IntPtr.Zero && hwndParent != UnsafeNativeMethods.GetDesktopWindow()) 260string text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, idChild); 263text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, 0); 472if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2)) 495if (label != IntPtr.Zero)
MS\Internal\AutomationProxies\ProxySimple.cs (3)
91if (_hwnd == IntPtr.Zero) 165if (_hwnd == IntPtr.Zero || (GetParent() != null && GetParent()._hwnd == _hwnd)) 329return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero;
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
102while (UnsafeNativeMethods.PeekMessage (ref msg, IntPtr.Zero, 0, 0, NativeMethods.PM_REMOVE))
MS\Internal\AutomationProxies\SafeProcessHandle.cs (1)
21if (hwnd == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsAltTab.cs (2)
126if (Misc.MapWindowPoints(System.IntPtr.Zero, _hwnd, ref pt, 1)) 386if(!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2))
MS\Internal\AutomationProxies\WindowsButton.cs (17)
190int state = Misc.ProxySendMessageInt(hwnd, NativeMethods.BM_GETSTATE, IntPtr.Zero, IntPtr.Zero); 317if (hwndRadioButton == IntPtr.Zero || 390if (hwndParent != IntPtr.Zero && WindowsFormsHelper.IsWindowsFormsControl(hwndParent)) 494Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero); 508Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true); 515Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true); 537IntPtr hwndShell = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); 538if (hwndShell != IntPtr.Zero) 562if (hwndParent != IntPtr.Zero) 581if (hwndParent != IntPtr.Zero) 610} while (hwndParent != _hwndDesktop && hwndParent != IntPtr.Zero); 640int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero); 707return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsComboBox.cs (24)
254if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 300if (cbInfo.hwndItem != IntPtr.Zero && IsEditableCombo()) 315if (cbInfo.hwndList != IntPtr.Zero) 336if (cbInfo.hwndItem != IntPtr.Zero && IsEditableCombo()) 351if (cbInfo.hwndList != IntPtr.Zero) 383if (hwndParent != IntPtr.Zero) 505if ((IntPtr.Zero != hwndEx) && IsComboEx (hwndEx)) 510return IntPtr.Zero; 525cbInfo.hwndItem = IntPtr.Zero; 531if (cbInfo.hwndItem == IntPtr.Zero && IsComboEx (NativeMethodsSetLastError.GetAncestor (hwnd, NativeMethods.GA_PARENT))) 533cbInfo.hwndItem = Misc.FindWindowEx(hwnd, IntPtr.Zero, "EDIT", null); 534if (cbInfo.hwndItem != IntPtr.Zero) 555return Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETDROPPEDSTATE, IntPtr.Zero, IntPtr.Zero) != 0; 570Misc.ProxySendMessage(hwnd, NativeMethods.CB_SHOWDROPDOWN, new IntPtr(1), IntPtr.Zero); 575Misc.ProxySendMessage(hwnd, NativeMethods.CB_SHOWDROPDOWN, new IntPtr(0), IntPtr.Zero); 651if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList)) 667if (hwndEx == IntPtr.Zero) 691index = Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETCURSEL, IntPtr.Zero, IntPtr.Zero); 698int len = Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETLBTEXTLEN, new IntPtr(index), IntPtr.Zero); 787if (hwndCombo != IntPtr.Zero) 833return _hwndEx != IntPtr.Zero; 913if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2))
MS\Internal\AutomationProxies\WindowsContainer.cs (4)
143hwndTab = IntPtr.Zero; 173if (hwndParent == IntPtr.Zero) 178hwndTab = Misc.FindWindowEx(hwndParent, IntPtr.Zero, "SysTabControl32", null); 180if (hwndTab == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (33)
105if (hwndParent != IntPtr.Zero) 149hwnd != IntPtr.Zero && string.IsNullOrEmpty(accessKey); 217if (hwndUpDown != IntPtr.Zero) 228if (hwndUpDown != IntPtr.Zero) 239if (hwndUpDown != IntPtr.Zero) 289int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 297result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 351if (!Misc.MapWindowPoints(IntPtr.Zero, WindowHandle, ref clientLocation, 1)) 443int result = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_CHARFROMPOS, IntPtr.Zero, lParam); 515return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETFIRSTVISIBLELINE, IntPtr.Zero, IntPtr.Zero); 522return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETFIRSTVISIBLELINE, IntPtr.Zero, IntPtr.Zero); 528IntPtr result = Misc.ProxySendMessage(WindowHandle, NativeMethods.WM_GETFONT, IntPtr.Zero, IntPtr.Zero); 534if (result == IntPtr.Zero) 545return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETLINECOUNT, IntPtr.Zero, IntPtr.Zero); 551Debug.Assert(hfont != IntPtr.Zero, "WindowsEditBox.GetLogfont got null HFONT"); 565Misc.ProxySendMessage(WindowHandle, NativeMethods.EM_GETRECT, IntPtr.Zero, ref rect); 585return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero); 680return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_LINEFROMCHAR, (IntPtr)index, IntPtr.Zero); 686int index = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_LINEINDEX, (IntPtr)(line), IntPtr.Zero); 742int result = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_POSFROMCHAR, (IntPtr)index, IntPtr.Zero); 853if (hdc == IntPtr.Zero) 858IntPtr oldFont = IntPtr.Zero; 867if (oldFont != IntPtr.Zero) 892if (hwndParent == IntPtr.Zero) 912if (hwndParent != IntPtr.Zero) 928if (hwndParent != IntPtr.Zero) 944if (hwndParent != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (4)
241if (!Misc.MapWindowPoints(_provider.WindowHandle, IntPtr.Zero, ref w32point, 1)) 769IntPtr hdc = Misc.GetDC(IntPtr.Zero); 770if (hdc == IntPtr.Zero) 775Misc.ReleaseDC(IntPtr.Zero, hdc);
MS\Internal\AutomationProxies\WindowsGrip.cs (2)
107int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 115int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsHyperlink.cs (7)
196if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 211bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 276return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 395return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 492bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 504Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 505Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (5)
137Misc.ProxySendMessage(_hwnd, NativeMethods.IPM_SETADDRESS, IntPtr.Zero, (IntPtr)unchecked((int)ipV4)); 187if (hwndChild != IntPtr.Zero) 243while (hwndChild != IntPtr.Zero) 260for (int i = 0; ((i < index) && (hwndChild != IntPtr.Zero)); i++) 380Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture)));
MS\Internal\AutomationProxies\WindowsListBox.cs (23)
77if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && (cbInfo.hwndCombo != IntPtr.Zero)) 290int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 305int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero); 380return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0; 430return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero); 522if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && (cbInfo.hwndCombo != IntPtr.Zero)) 555int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero); 596return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR; 719int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 932Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 978return Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_GETSEL, new IntPtr(item), IntPtr.Zero) > 0; 991SendMessageResult = Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(item), IntPtr.Zero); 1031return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1035return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1053return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty; 1126Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1156Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1180return Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(item)) != NativeMethods.LB_ERR;
MS\Internal\AutomationProxies\WindowsListView.cs (26)
495if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 524if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 789if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 1207return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 1246return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETVIEW, IntPtr.Zero, IntPtr.Zero); 1271return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref itemRectangle, 2); 1281return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_ISGROUPVIEWENABLED, IntPtr.Zero, IntPtr.Zero) != 0; 1345return Misc.ProxySendMessage(hwnd, NativeMethods.LVM_EDITLABEL, new IntPtr(item), IntPtr.Zero); 1369IntPtr partialVisible = (partialOK) ? IntPtr.Zero : new IntPtr (1); 1377return Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETHEADER, IntPtr.Zero, IntPtr.Zero); 1410if (Misc.MapWindowPoints(IntPtr.Zero, hwnd, ref hitTest.pt, 1)) 1420result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1429result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1448return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 1495return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref itemRectangle, 2); 1504IntPtr hwndToolTip = Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 1794return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref pt, 1); 1804return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETEXTENDEDLISTVIEWSTYLE, IntPtr.Zero, IntPtr.Zero); 1831if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (4)
328int groupIndex = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero); 486int groupIndex = (int)Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (3)
240return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_HASGROUP, new IntPtr(groupID), IntPtr.Zero) != 0; 466XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck); 705Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2);
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
78Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
135if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRectangle, 2)) 365int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 689if (hwndHeader == IntPtr.Zero) 762if (IntPtr.Zero == hwndEdit) 850if (hwndHeader != IntPtr.Zero) 929if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1))
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (3)
79if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect)) 249if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 253Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (3)
170while (ancestor != IntPtr.Zero && ancestor != desktop) 374int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsMenu.cs (67)
65if (!_expandedMenus.Contains(IntPtr.Zero)) 67_expandedMenus[IntPtr.Zero] = new MenuParentInfo(hwnd, item, type); 163if (hmenu == IntPtr.Zero) 166if (hmenu == IntPtr.Zero) 196if (hSysMenu != IntPtr.Zero) 230IntPtr hwndPopup = IntPtr.Zero; 233hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 234if (hwndPopup == IntPtr.Zero) 243if (hwndPopup != IntPtr.Zero) 250if (hmenu == IntPtr.Zero) 264if (hSubMenu == IntPtr.Zero) 272if (hwndSubMenuPopup == IntPtr.Zero) 459WinEventTracker.AddToNotificationList(IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents(MenuEvents), _menuEvents); 480WinEventTracker.RemoveToNotificationList(IntPtr.Zero, _menuEvents, new WinEventTracker.ProxyRaiseEvents(MenuEvents)); 529IntPtr menuParent = IntPtr.Zero; 530IntPtr hwndParent = IntPtr.Zero; 533if (menu == IntPtr.Zero) 574hwndParent = IntPtr.Zero; 575menuParent = IntPtr.Zero; 579if (hMenu == IntPtr.Zero) 597if (hMenuPossibleParent != IntPtr.Zero) 613for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null); 614hwndPossibleParent != IntPtr.Zero; 615hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null)) 620if (hMenuPossibleParent != IntPtr.Zero) 641for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, MenuClassName, null); 642hwndSubMenu != IntPtr.Zero; 643hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, MenuClassName, null)) 656return IntPtr.Zero; 668if (IntPtr.Zero != Misc.GetWindow(hwnd, NativeMethods.GW_OWNER)) 716return Misc.ProxySendMessage(hwnd, NativeMethods.MN_GETHMENU, IntPtr.Zero, IntPtr.Zero); 719return IntPtr.Zero; 746if (GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 751return IntPtr.Zero; 878mbi.hMenu != IntPtr.Zero && 884return IntPtr.Zero; 890if (hmenu == IntPtr.Zero) 930IntPtr hwndPopup = IntPtr.Zero; 933hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 934if (hwndPopup == IntPtr.Zero) 944return IntPtr.Zero; 1006if (parent == null && _expandedMenus.Contains(IntPtr.Zero)) 1009parentInfo = (MenuParentInfo)_expandedMenus[IntPtr.Zero]; 1415return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 1444if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd) 1598if (submenu == IntPtr.Zero) 1605if (hwndSubmenu != IntPtr.Zero) 1617if (submenu == IntPtr.Zero) 1624if (hwndSubmenu != IntPtr.Zero) 1894return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MFT_RADIOCHECK) && menuItemInfo.hbmpChecked == IntPtr.Zero); 1950if (menuItemInfo.hSubMenu != IntPtr.Zero) 1977IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, MenuClassName, null); 1978return (hwndSubMenu == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndSubMenu)); 1983return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu)); 2087for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null); 2089hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null)) 2092if (hwndSubMenu == IntPtr.Zero) 2135if (hSubmenu == IntPtr.Zero) 2141if (hwndSubmenu != IntPtr.Zero) 2245if (gui.hwndCapture != IntPtr.Zero && Misc.ProxyGetClassName(gui.hwndCapture) == "ListBox") 2396(IntPtr.Zero != UnsafeNativeMethods.GetSubMenu (_hmenu, 0)) && 2534int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION); 2578if (_hwnd == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsProgressbar.cs (5)
154int cur = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 155int min = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, new IntPtr(1), IntPtr.Zero); 156int max = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsRebar.cs (11)
193return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero); 206return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 288IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 327if (hwndBand != IntPtr.Zero) 346if (hwndBand != IntPtr.Zero && Misc.PtInWindowRect(hwndBand, x, y)) 379Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 405if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rectW32, 2)) 426if (_hwndBand == IntPtr.Zero) 455private IntPtr _hwndBand = IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsRichEdit.cs (10)
188int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 195result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 609ptd = IntPtr.Zero, 618pUnkForRelease = IntPtr.Zero, 619hGlobal = IntPtr.Zero 624if (hr != NativeMethods.S_OK || med.hGlobal == IntPtr.Zero) 634if (hr != NativeMethods.S_OK || med.hGlobal == IntPtr.Zero) 645if (globalMem == IntPtr.Zero) 682if (hwndParent != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsScroll.cs (2)
319bool fRet = Misc.ProxySendMessageInt(hwnd, message, (IntPtr)wParam, IntPtr.Zero) == 0; 433int result = Misc.ProxySendMessageInt(hwnd, message, (IntPtr)wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
699Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 701Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (3)
297if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2)) 389if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2)) 565Misc.ProxySendMessage(parentHwnd, msg, (IntPtr)wParam, (IntPtr)(parentHwnd == _hwnd ? IntPtr.Zero : _hwnd));
MS\Internal\AutomationProxies\WindowsSlider.cs (21)
169if (IntPtr.Zero != parent) 178Misc.ProxySendMessage(parent, msg, new IntPtr(wParam), IntPtr.Zero); 260int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 265int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 290return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero); 298return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero); 306return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 314return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero); 408IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 439Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero); 460XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 462if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rcChannel, 2)) 472XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck); 474if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rcThumb, 2))
MS\Internal\AutomationProxies\WindowsSpinner.cs (9)
60hwndBuddy = Misc.ProxySendMessage(hwnd, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero); 61if (hwndBuddy == IntPtr.Zero) 265return GetUpDownFromEdit(hwnd) != IntPtr.Zero; 274if (hwndParent != IntPtr.Zero) 277while (hwndChild != IntPtr.Zero) 282IntPtr hwndBuddy = Misc.ProxySendMessage(hwndChild, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero); 292return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (8)
105if (hwndChild == IntPtr.Zero || hwndChild == _hwnd) 110if(hwndChild != IntPtr.Zero && hwndChild != _hwnd) 300IntPtr hwndChild = IntPtr.Zero; 305if (hwndChild == IntPtr.Zero) 336return Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETPARTS, IntPtr.Zero, IntPtr.Zero); 349hwnd = IntPtr.Zero 596int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (22)
76if (hwndParent != IntPtr.Zero) 157if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 161index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 177int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 245if (hwndParent != IntPtr.Zero) 284Misc.ProxySendMessage(hwndParent, NativeMethods.LVM_SCROLL, new IntPtr(horizontalScrollAmount), IntPtr.Zero); 298return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_ORDERTOINDEX, new IntPtr(order), IntPtr.Zero); 303return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 430if (hwndParent != IntPtr.Zero) 482Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 525int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 573if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2)) 668return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1); 693int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 725Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 737IntPtr hwndDropDown = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "DropDown", null); 738if (hwndDropDown != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsTab.cs (52)
259if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1)) 268if (updownHwnd != IntPtr.Zero && Misc.PtInWindowRect(updownHwnd, x, y)) 276index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 290int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero); 314if (upDownHwnd != IntPtr.Zero) 333if (upDownHwnd != IntPtr.Zero) 498if (updownHwnd == IntPtr.Zero) 504int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 512Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos); 513Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 527if (updownHwnd == IntPtr.Zero) 533int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 536int posResult = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 585if (updownHwnd == IntPtr.Zero) 645int count = Misc.ProxySendMessageInt(hwnd, NativeMethods.TCM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 684if (updownHwnd == IntPtr.Zero) 687int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 691Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos); 692Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 697return GetUpDownHwnd(_hwnd) != IntPtr.Zero; 723if (hwndParent != IntPtr.Zero 757if (childHwnd != IntPtr.Zero) 775return IntPtr.Zero; 801if (updownHwnd == IntPtr.Zero) 808int newPos = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 809int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 848Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos); 849Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 966IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 1003Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1035if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild)) 1149Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero); 1239return Misc.ProxySendMessageInt(hwnd, NativeMethods.TCM_GETCURSEL, IntPtr.Zero, IntPtr.Zero); 1255return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1277return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty; 1297if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1306Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1322if (hwndParent != IntPtr.Zero) 1330return Misc.FindWindowEx(hwndParent, IntPtr.Zero, null, sName); 1334return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
111int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y)); 431Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero); 445Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (20)
228int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero); 299if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0) 329return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero); 368bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0; 369int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero); 428if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 468return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0; 514Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 576return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 598int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero); 635IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 643|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 650if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 677if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONCHECKED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
73if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 79if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
MS\Internal\AutomationProxies\WindowsTooltip.cs (5)
89WinEventTracker.AddToNotificationList(IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents(OnToolTipEvents), _toolTipEventIds); 106WinEventTracker.RemoveToNotificationList(IntPtr.Zero, _toolTipEventIds, new WinEventTracker.ProxyRaiseEvents(OnToolTipEvents)); 241if (hwnd == IntPtr.Zero) 299if (hwnd == IntPtr.Zero) 304int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsTreeView.cs (45)
158if (hNext != IntPtr.Zero) 185return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null; 191if (hChild != IntPtr.Zero) 196for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 210IntPtr hChild = IntPtr.Zero; 213if (hChild != IntPtr.Zero) 235if (hChild != IntPtr.Zero) 238for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 253if (hItem != IntPtr.Zero) 265if (treeItem != IntPtr.Zero) 282if (treeItem == IntPtr.Zero) 303return (IntPtr.Zero != GetSelection (_hwnd)); 387if (hItemParent == IntPtr.Zero) 446return GetNext(hwnd, IntPtr.Zero, NativeMethods.TVGN_CARET); 474return GetNext(hwnd, IntPtr.Zero, NativeMethods.TVGN_ROOT); 553IntPtr partialDisplay = (labelOnly) ? new IntPtr (1) : IntPtr.Zero; 564return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2) ? rc : NativeMethods.Win32Rect.Empty; 595IntPtr hwndEdit = Misc.ProxySendMessage(hwnd, NativeMethods.TVM_EDITLABELW, IntPtr.Zero, item); 597if (hwndEdit == IntPtr.Zero) 606if (Misc.ProxySendMessageInt(hwndEdit, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(text)) != 1) 609Misc.ProxySendMessage(hwnd, NativeMethods.TVM_ENDEDITLABELNOW, (IntPtr)1, IntPtr.Zero); 617Misc.ProxySendMessage(hwnd, NativeMethods.TVM_ENDEDITLABELNOW, IntPtr.Zero, IntPtr.Zero); 643IntPtr hItem = Misc.ProxySendMessage(hwnd, NativeMethods.TVM_MAPACCIDTOHTREEITEM, new IntPtr(idChild), IntPtr.Zero); 645if (hItem != IntPtr.Zero) 654int lCommonControlVersion = Misc.ProxySendMessageInt(hwnd, NativeMethods.CCM_GETVERSION, IntPtr.Zero, IntPtr.Zero); 657return IntPtr.Zero; 863IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 908return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 1006if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero) 1228Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem); 1318return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1328return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1336return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1349if (hChild != IntPtr.Zero) 1352for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild)) 1465if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1537Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1538Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1566if (address == IntPtr.Zero) 1626return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero; 1633if (_hItem == IntPtr.Zero) 1636int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (16)
223Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 226Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 291if (hwndParent != IntPtr.Zero) 340int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 353IntPtr hwndBuddy = Misc.ProxySendMessage(hwnd, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero); 356if (hwndBuddy == IntPtr.Zero) 368return hwndBuddy != IntPtr.Zero && Misc.ProxyGetClassName(hwndBuddy).Contains("EDIT", StringComparison.OrdinalIgnoreCase); 377int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 391int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 474if (hwndTabParent != IntPtr.Zero) 622if (hwndParent != IntPtr.Zero) 625hwndParent = Misc.ProxyGetClassName(hwndParent).Contains("SysTabControl32") ? hwndParent : IntPtr.Zero;
MS\Internal\AutomationProxies\WinEventTracker.cs (7)
174hp._winEventHook = Misc.SetWinEventHook(hp._evtId, hp._evtId, IntPtr.Zero, proc, processId, 0, NativeMethods.WINEVENT_OUTOFCONTEXT); 197if (hwnd == IntPtr.Zero) 240if (ecp._hwnd == hwnd || ecp._hwnd == IntPtr.Zero) 292if ((ecp._hwnd == IntPtr.Zero)) 352if (hwnd == IntPtr.Zero) 409if ( (hwnd == IntPtr.Zero || ecp._hwnd == hwnd) && 448Debug.Assert (hwnd == IntPtr.Zero, @"BuildEventsList: event is global but hwnd is not null");
MS\Internal\AutomationProxies\WinFormsSpinner.cs (2)
130if (hwndFirstChild == IntPtr.Zero) 137if (hwndLastChild == IntPtr.Zero)
MS\Win32\NativeMethods.cs (25)
882pszHeader = pszFooter = IntPtr.Zero; 925pszHeader = pszFooter = IntPtr.Zero; 931pszSubtitle = IntPtr.Zero; 933pszTask = IntPtr.Zero; 935pszDescriptionTop = IntPtr.Zero; 937pszDescriptionBottom = IntPtr.Zero; 943pszSubsetTitle = IntPtr.Zero; // NULL if group is not subset 1481hwndCombo = IntPtr.Zero; 1482hwndItem = IntPtr.Zero; 1483hwndList = IntPtr.Zero; 1649pszText = IntPtr.Zero; 1654lParam = IntPtr.Zero; 1670hItem = IntPtr.Zero; 1815pszText = IntPtr.Zero; 1818lParam = IntPtr.Zero; 1826pszText = IntPtr.Zero; 1829lParam = IntPtr.Zero; 1870pszText = IntPtr.Zero; 1871hbm = IntPtr.Zero; 1874lParam = IntPtr.Zero; 1878pvFilter = IntPtr.Zero; 1936hwnd = IntPtr.Zero; 1939hinst = IntPtr.Zero; 1940pszText = IntPtr.Zero; 1941lParam = IntPtr.Zero;
MS\Win32\UnsafeNativeMethods.cs (2)
371IntPtr result = IntPtr.Zero; 389if ((result == IntPtr.Zero) && (error != 0))
UIAutomationProvider (2)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (2)
58ValidateArgument(hwnd != IntPtr.Zero, nameof(SR.HwndMustBeNonNULL)); 72ValidateArgument( hwnd != IntPtr.Zero, nameof(SR.HwndMustBeNonNULL));
UIAutomationTypes (41)
MS\Internal\Automation\UiaCoreTypesApi.cs (3)
72IntPtr automationCoreHandle = LoadLibraryHelper.SecureLoadLibraryEx(DllImport.UIAutomationCore, IntPtr.Zero, UnsafeNativeMethods.LoadLibraryFlags.LOAD_LIBRARY_SEARCH_SYSTEM32); 73if (automationCoreHandle != IntPtr.Zero) 76if (entryPoint != IntPtr.Zero)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\LoadLibraryHelper.cs (3)
29var hModule = IntPtr.Zero; 34hModule != IntPtr.Zero) 39UnsafeNativeMethods.GetProcAddressNoThrow(new HandleRef(null, hModule), AddDllDirectoryName) != IntPtr.Zero;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (10)
96public static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero); 1533public IntPtr hwndTrack = IntPtr.Zero; 1729public IntPtr hSubMenu = IntPtr.Zero; 1730public IntPtr hbmpChecked = IntPtr.Zero; 1731public IntPtr hbmpUnchecked = IntPtr.Zero; 1990if ((this.vt == (int)tagVT.VT_UNKNOWN || this.vt == (int)tagVT.VT_DISPATCH) && this.data1 != IntPtr.Zero) { 1994if (this.vt == (int)tagVT.VT_BSTR && this.data1 != IntPtr.Zero) { 1998this.data1 = this.data2 = IntPtr.Zero; 2142return (val != IntPtr.Zero); 2833public static readonly IntPtr WTS_CURRENT_SERVER_HANDLE = IntPtr.Zero;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (14)
346public IntPtr lpfnWndProc = IntPtr.Zero; 352public IntPtr hInstance = IntPtr.Zero; 354public IntPtr hIcon = IntPtr.Zero; 356public IntPtr hCursor = IntPtr.Zero; 358public IntPtr hbrBackground = IntPtr.Zero; 360public IntPtr lpszMenuName = IntPtr.Zero; 362public IntPtr lpszClassName = IntPtr.Zero; 364public IntPtr hIconSm = IntPtr.Zero; 561 return (LocalFree(base.handle) == IntPtr.Zero); 619public IntPtr hInstance = IntPtr.Zero; 621public IntPtr hIcon = IntPtr.Zero; 623public IntPtr hCursor = IntPtr.Zero; 625public IntPtr hbrBackground = IntPtr.Zero; 631public IntPtr hIconSm = IntPtr.Zero;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (11)
229return IntOleInitialize(IntPtr.Zero); 447IntPtr result = IntPtr.Zero; 459IntPtr result = IntPtr.Zero; 468if (result == IntPtr.Zero && errorCode != 0) 481if (retVal == IntPtr.Zero && errorCode != 0) 504if (retVal == IntPtr.Zero) 523if (result == IntPtr.Zero) 840if (hDc == IntPtr.Zero) 1053if (retVal == IntPtr.Zero) 2557IntPtr mem = IntPtr.Zero; 2574if (mem != IntPtr.Zero)
vbc (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (1)
54internal static readonly IntPtr NullPtr = IntPtr.Zero;
src\Compilers\Shared\BuildClient.cs (1)
357if (ptr == IntPtr.Zero)
VBCSCompiler (2)
src\Compilers\Core\CommandLine\NativeMethods.cs (1)
54internal static readonly IntPtr NullPtr = IntPtr.Zero;
src\Compilers\Shared\BuildClient.cs (1)
357if (ptr == IntPtr.Zero)
WindowsBase.Tests (6)
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (2)
28Assert.Equal(IntPtr.Zero, manager.ParentWindow); 142yield return new object[] { IntPtr.Zero };
System\Windows\Interop\MSGTests.cs (4)
12Assert.Equal(IntPtr.Zero, msg.hwnd); 14Assert.Equal(IntPtr.Zero, msg.wParam); 15Assert.Equal(IntPtr.Zero, msg.lParam); 24yield return new object[] { IntPtr.Zero };
WindowsFormsIntegration (11)
MS\Win32\NativeMethods.cs (1)
15public static IntPtr HWND_TOP = IntPtr.Zero;
MS\Win32\UnsafeNativeMethods.cs (1)
48return IntCreateDC(lpszDriver, null, null, IntPtr.Zero);
System\Windows\Automation\Peers\WindowsFormsHostAutomationPeer.cs (1)
39if(hwnd != IntPtr.Zero)
System\Windows\Integration\ElementHost.cs (3)
258if (this.HwndSource != null && this.HwndSource.Handle != IntPtr.Zero) 622return IntPtr.Zero; // This value depends on the message being processed, see MSDN for the particular message. 788if (!DesignMode && m.WParam == IntPtr.Zero)
System\Windows\Integration\WindowsFormsHost.cs (5)
141IntPtr result = IntPtr.Zero; 726private IntPtr _prevFocusHwnd = IntPtr.Zero; 749if (IntPtr.Zero == _prevFocusHwnd ) { return; } 972IntPtr.Zero) != IntPtr.Zero)
WinFormsControlsTest (1)
ScalingBeforeChanges.cs (1)
105m.Result = IntPtr.Zero;
xunit.console (1)
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\NativeMethods.Darwin.cs (1)
33if (sysctl(name, 2, buf, len, IntPtr.Zero, 0) == 0 && *len < BUFFER_LENGTH)