6157 references to Zero
ComSvcConfig (2)
SafeNativeMethods.cs (1)
197int status = SafeNativeMethods.RegCreateKeyEx(this, subKey, 0, null, 0, SafeNativeMethods.KEY_READ | SafeNativeMethods.KEY_WRITE, IntPtr.Zero, out regHandle, out disposition);
Tool.cs (1)
887psFac.CreateProxy(IntPtr.Zero, clsid, out o1, out o2);
mscorlib (372)
microsoft\win32\fusionwrap.cs (2)
128hr = Win32Native.CreateAssemblyNameObject(out aNameEnum, name, CANOF.PARSE_DISPLAY_NAME, IntPtr.Zero); 133hr = Win32Native.CreateAssemblyEnum(out aEnum, AppCtx, aNameEnum, nFlag, IntPtr.Zero);
microsoft\win32\registrykey.cs (3)
972IntPtr.Zero, 1056IntPtr.Zero, 1096IntPtr.Zero,
microsoft\win32\safehandles\safelocalallochandle.cs (2)
19get { return new SafeLocalAllocHandle(IntPtr.Zero); } 25return Win32Native.LocalFree(handle) == IntPtr.Zero;
microsoft\win32\safehandles\safeviewoffilehandle.cs (1)
46handle = IntPtr.Zero;
microsoft\win32\safehandles\win32safehandles.cs (2)
33protected SafeHandleZeroOrMinusOneIsInvalid(bool ownsHandle) : base(IntPtr.Zero, ownsHandle) 85protected CriticalHandleZeroOrMinusOneIsInvalid() : base(IntPtr.Zero)
microsoft\win32\win32native.cs (7)
551BCLDebug.Assert((stringBytes == 0 && buffer == IntPtr.Zero) || (stringBytes > 0 && stringBytes <= UInt16.MaxValue && buffer != IntPtr.Zero), 746IntPtr.Zero, errorCode, 0, sb, sb.Capacity, IntPtr.Zero); 834if (hModule == IntPtr.Zero) { 835BCLDebug.Assert(hModule != IntPtr.Zero, "GetModuleHandle failed. Dll isn't loaded?"); 839return (functionPointer != IntPtr.Zero);
parent\parent\parent\parent\InternalApis\NDP_Common\inc\StrongNameHelpers.cs (7)
64ppbPublicKeyBlob = IntPtr.Zero; 91ppbKeyBlob = IntPtr.Zero; 113IntPtr ppbSignatureBlob = IntPtr.Zero; 178ppbStrongNameToken = IntPtr.Zero; 204ppbStrongNameToken = IntPtr.Zero; 218ppbPublicKeyBlob = IntPtr.Zero; 240IntPtr ppbSignatureBlob = IntPtr.Zero;
system\activationcontext.cs (3)
286_actContext.GetApplicationStateFilesystemLocation(1, UIntPtr.Zero, IntPtr.Zero, out s); 391_actContext.PrepareForExecution(IntPtr.Zero, IntPtr.Zero);
system\appdomain.cs (12)
3929if(sortingSetup._pfnIsNLSDefinedString == IntPtr.Zero || sortingSetup._pfnCompareStringEx == IntPtr.Zero || sortingSetup._pfnLCMapStringEx == IntPtr.Zero || sortingSetup._pfnFindNLSStringEx == IntPtr.Zero 3930|| sortingSetup._pfnCompareStringOrdinal == IntPtr.Zero || sortingSetup._pfnGetNLSVersionEx == IntPtr.Zero) 3933if(!(sortingSetup._pfnIsNLSDefinedString == IntPtr.Zero && sortingSetup._pfnCompareStringEx == IntPtr.Zero && sortingSetup._pfnLCMapStringEx == IntPtr.Zero && sortingSetup._pfnFindNLSStringEx == IntPtr.Zero 3934&& sortingSetup._pfnCompareStringOrdinal == IntPtr.Zero && sortingSetup._pfnGetNLSVersionEx == IntPtr.Zero))
system\appdomainmanager.cs (1)
208IntPtr punkAppDomainManager = IntPtr.Zero;
system\AppDomainSetup.cs (1)
641if(functionPointer == IntPtr.Zero)
system\argiterator.cs (2)
76if (sigPtr != IntPtr.Zero) 89if (ArgPtr == IntPtr.Zero)
system\console.cs (3)
158if (_consoleInputHandle == IntPtr.Zero) { 170if (_consoleOutputHandle == IntPtr.Zero) { 535int r = Win32Native.WriteFile(outErrHandle, &junkByte, 0, out bytesWritten, IntPtr.Zero);
system\deployment\cmsinterop.cs (24)
269if (StringIds != IntPtr.Zero) 272StringIds = IntPtr.Zero; 274if (IntegerIds != IntPtr.Zero) 277IntegerIds = IntPtr.Zero; 321if (StringIds != IntPtr.Zero) 324StringIds = IntPtr.Zero; 326if (IntegerIds != IntPtr.Zero) 329IntegerIds = IntPtr.Zero; 373if (ResourceTypeIdInt != IntPtr.Zero) 376ResourceTypeIdInt = IntPtr.Zero; 378if (ResourceTypeIdString != IntPtr.Zero) 381ResourceTypeIdString = IntPtr.Zero; 430if (TransformMetadata != IntPtr.Zero) 433TransformMetadata = IntPtr.Zero; 435if (DigestValue != IntPtr.Zero) 438DigestValue = IntPtr.Zero; 501if (HashValue != IntPtr.Zero) 504HashValue = IntPtr.Zero; 778if (HashValue != IntPtr.Zero) 781HashValue = IntPtr.Zero; 1146if (ManifestHash != IntPtr.Zero) 1149ManifestHash = IntPtr.Zero; 1151if (MvidValue != IntPtr.Zero) 1154MvidValue = IntPtr.Zero;
system\deployment\isolationinterop.cs (36)
20if (BlobData != IntPtr.Zero) 23BlobData = IntPtr.Zero; 1310if (ip != IntPtr.Zero) 1509this.ValueSize = (Value != null) ? new IntPtr((Value.Length + 1) * 2) : IntPtr.Zero; 1556PropertiesToSet = IntPtr.Zero; 1557cPropertiesToSet = IntPtr.Zero; 1567PropertiesToTest = IntPtr.Zero; 1568cPropertiesToTest = IntPtr.Zero; 1577if (PropertiesToSet != IntPtr.Zero) 1580PropertiesToSet = IntPtr.Zero; 1581cPropertiesToSet = IntPtr.Zero; 1584if (PropertiesToTest != IntPtr.Zero) 1587PropertiesToTest = IntPtr.Zero; 1588cPropertiesToTest = IntPtr.Zero; 1591if (InstallerReference != IntPtr.Zero) 1594InstallerReference = IntPtr.Zero; 1601if (rgItems != IntPtr.Zero) 1621return IntPtr.Zero; 1819IntPtr DelimIntPtr = IntPtr.Zero; 1976private IntPtr _pLockCookie = IntPtr.Zero; 1992if (_pLockCookie != IntPtr.Zero) 1995_pLockCookie = IntPtr.Zero; 2023private IntPtr _pLockCookie = IntPtr.Zero; 2039if (_pLockCookie != IntPtr.Zero) 2042_pLockCookie = IntPtr.Zero; 2443if (op.Data.DataPtr != IntPtr.Zero) 2643return new Store(GetUserStore(0, IntPtr.Zero, ref IID_IStore) as IStore); 2811Parameters.CustomStoreList = IntPtr.Zero; 2812Parameters.CultureFallbackList = IntPtr.Zero; 2813Parameters.ProcessorArchitectureList = IntPtr.Zero; 2814Parameters.Source = IntPtr.Zero; 2820SourceInfo.Data = IntPtr.Zero; 2838if (SourceInfo.Data != IntPtr.Zero) 2841SourceInfo.Data = IntPtr.Zero; 2844if (Parameters.Source != IntPtr.Zero) 2847Parameters.Source = IntPtr.Zero;
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (1)
728if (IntPtr.Zero != (IntPtr)pPins[i])
system\environment.cs (6)
1016IntPtr r = Win32Native.SendMessageTimeout(new IntPtr(Win32Native.HWND_BROADCAST), Win32Native.WM_SETTINGCHANGE, IntPtr.Zero, "Environment", 0, 1000, IntPtr.Zero); 1018if (r == IntPtr.Zero) BCLDebug.Assert(false, "SetEnvironmentVariable failed: " + Marshal.GetLastWin32Error()); 1423if (hwinsta != IntPtr.Zero && processWinStation != hwinsta) { 1506int hresult = Win32Native.SHGetFolderPath(IntPtr.Zero, /* hwndOwner: [in] Reserved */ 1508IntPtr.Zero, /* hToken: [in] access token */
system\gc.cs (7)
600if (temp != IntPtr.Zero && 601(Interlocked.CompareExchange(ref _handle, IntPtr.Zero, temp) == temp)) 612IntPtr temp = IntPtr.Zero; 628if (temp == IntPtr.Zero) 635return (_handle == IntPtr.Zero) ? null : o; 646if (temp == IntPtr.Zero) 653if (_handle == IntPtr.Zero)
system\internal.cs (1)
367NullableMarshaler.ConvertToManagedRetVoid(IntPtr.Zero, ref nullable);
system\io\__consolestream.cs (4)
205readSuccess = (0 != Win32Native.ReadFile(hFile, p + offset, count, out bytesRead, IntPtr.Zero)); 213readSuccess = Win32Native.ReadConsoleW(hFile, p + offset, count / BytesPerWChar, out charsRead, IntPtr.Zero); 255writeSuccess = (0 != Win32Native.WriteFile(hFile, p + offset, count, out numBytesWritten, IntPtr.Zero)); 268writeSuccess = Win32Native.WriteConsoleW(hFile, p + offset, count / BytesPerWChar, out charsWritten, IntPtr.Zero);
system\io\directory.cs (1)
1515IntPtr.Zero
system\io\file.cs (3)
178using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ, FileShare.Read, null, FileMode.Open, 0, IntPtr.Zero)) { 1345bool r = Win32Native.ReplaceFile(fullDestPath, fullSrcPath, fullBackupPath, flags, IntPtr.Zero, IntPtr.Zero);
system\io\filestream.cs (8)
149Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, this); 210if (_overlapped != null && _overlapped->EventHandle != IntPtr.Zero) { 845_handle = Win32Native.SafeCreateFile(tempPath, fAccess, share, secAttrs, mode, flagsAndAttributes, IntPtr.Zero); 2086intOverlapped->InternalLow = IntPtr.Zero; 2511r = Win32Native.ReadFile(handle, p + offset, count, IntPtr.Zero, overlapped); 2513r = Win32Native.ReadFile(handle, p + offset, count, out numBytesRead, IntPtr.Zero); 2568r = Win32Native.WriteFile(handle, p + offset, count, IntPtr.Zero, overlapped); 2570r = Win32Native.WriteFile(handle, p + offset, count, out numBytesWritten, IntPtr.Zero);
system\io\isolatedstorage\isolatedstoragefile.cs (1)
2795SetHandle(IntPtr.Zero);
system\io\longpath.cs (1)
226using(SafeFileHandle handle = Win32Native.UnsafeCreateFile(fullSourceFileName, FileStream.GENERIC_READ, FileShare.Read, null, FileMode.Open, 0, IntPtr.Zero)) {
system\io\pathhelper.cs (4)
158int result = Win32Native.GetFullPathName(m_arrayPtr, Path.MaxPath + 1, finalBuffer, IntPtr.Zero); 166result = Win32Native.GetFullPathName(m_arrayPtr, result, finalBuffer, IntPtr.Zero); 196int result = Win32Native.GetFullPathName(m_sb.ToString(), m_capacity + 1, finalBuffer, IntPtr.Zero); 203result = Win32Native.GetFullPathName(m_sb.ToString(), result, finalBuffer, IntPtr.Zero);
system\reflection\assembly.cs (11)
1210ppv = IntPtr.Zero; 1722return InternalLoad(assemblyString, assemblySecurity, ref stackMark, IntPtr.Zero, forIntrospection); 1790return InternalLoadAssemblyName(assemblyRef, assemblySecurity, reqAssembly, ref stackMark, IntPtr.Zero, true /*throwOnError*/, forIntrospection, suppressSecurityChecks); 1992IntPtr.Zero, 2028IntPtr.Zero, 2054IntPtr.Zero, 2985IntPtr.Zero, 3015IntPtr.Zero, 3026IntPtr.Zero, 3098IntPtr.Zero, 3131IntPtr.Zero,
system\reflection\strongnamekeypair.cs (2)
145IntPtr pbPublicKey = IntPtr.Zero; 169if (pbPublicKey != IntPtr.Zero)
system\runtime\designerservices\windowsruntimedesignercontext.cs (2)
89if (s_sharedContext == IntPtr.Zero) 114if (s_sharedContext != IntPtr.Zero)
system\Runtime\InteropServices\ComEventsSink.cs (2)
222if (pvarResult != IntPtr.Zero) { 242ppv = IntPtr.Zero;
system\runtime\interopservices\gchandle.cs (9)
112if (handle != IntPtr.Zero && Interlocked.CompareExchange(ref m_handle, IntPtr.Zero, handle) == handle) 142if (m_handle == IntPtr.Zero) 152if (m_handle == IntPtr.Zero) 168if (m_handle == IntPtr.Zero) 184return m_handle != IntPtr.Zero; 199if (value == IntPtr.Zero) 210if (IntPtr.Zero == handle) 214return new GCHandle(IntPtr.Zero);
system\runtime\interopservices\gchandlecookietable.cs (12)
42m_HandleList[i] = ObjectHandle.Zero; 52if (handle == ObjectHandle.Zero) 53return GCHandleCookie.Zero; 55GCHandleCookie cookie = GCHandleCookie.Zero; 63if ((m_FreeIndex < m_HandleList.Length) && (Volatile.Read(ref m_HandleList[m_FreeIndex]) == ObjectHandle.Zero)) 77if (m_HandleList[m_FreeIndex] == ObjectHandle.Zero) 94if (cookie == GCHandleCookie.Zero) 107ObjectHandle oh = ObjectHandle.Zero; 110return ObjectHandle.Zero; 121if (handle == ObjectHandle.Zero) 137Volatile.Write(ref m_HandleList[index], ObjectHandle.Zero); 162if (Volatile.Read(ref m_HandleList[index]) == ObjectHandle.Zero)
system\runtime\interopservices\marshal.cs (26)
126if (IntPtr.Zero == ptr) { 146if (ptr == IntPtr.Zero) 157if (ptr == IntPtr.Zero) 175if (IntPtr.Zero == ptr) { 975if (ptr == IntPtr.Zero) return null; 1066ThrowExceptionForHRInternal(errorCode, IntPtr.Zero); 1087return GetExceptionForHRInternal(errorCode, IntPtr.Zero); 1194if (pNewMem == IntPtr.Zero) { 1212if (IntPtr.Zero != Win32Native.LocalFree(hglobal)) { 1223if (pNewMem == IntPtr.Zero) { 1238return IntPtr.Zero; 1251if (hglobal == IntPtr.Zero) 1269return IntPtr.Zero; 1282if (hglobal == IntPtr.Zero) 1605if (piTypeInfo == IntPtr.Zero) 1857if (pNewMem == IntPtr.Zero) 1869return IntPtr.Zero; 1881if (hglobal == IntPtr.Zero) 1908return IntPtr.Zero; 1920if (hglobal == IntPtr.Zero) 1944if (pNewMem == IntPtr.Zero && cb != 0) 2200return IntPtr.Zero; 2207if (bstr == IntPtr.Zero) 2421GetActiveObject(ref clsid, IntPtr.Zero, out obj); 2482return IntPtr.Zero; 2607if (ptr == IntPtr.Zero)
system\runtime\interopservices\runtimeenvironment.cs (2)
169IntPtr p = IntPtr.Zero; 174if(p != IntPtr.Zero) {
system\runtime\interopservices\typelibconverter.cs (2)
442IntPtr pAttr = IntPtr.Zero; 463if (pAttr != IntPtr.Zero)
system\Runtime\InteropServices\Variant.cs (5)
150*(IntPtr*)this._typeUnion._unionTypes._byref = IntPtr.Zero; 634if (_typeUnion._unionTypes._unknown == IntPtr.Zero) 642_typeUnion._unionTypes._unknown = IntPtr.Zero; 653if (_typeUnion._unionTypes._dispatch == IntPtr.Zero) 661_typeUnion._unionTypes._dispatch = IntPtr.Zero;
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (1)
249ppv = IntPtr.Zero;
system\runtime\interopservices\windowsruntime\runtimeclass.cs (3)
70if (pMD == IntPtr.Zero) 96if (pMD == IntPtr.Zero) 115if (pMD == IntPtr.Zero)
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (12)
1057if (hstring == IntPtr.Zero) 1158IntPtr exceptionIUnknown = IntPtr.Zero; 1159IntPtr exceptionIErrorInfo = IntPtr.Zero; 1170if (exceptionIUnknown != IntPtr.Zero) 1173if (exceptionIErrorInfo != IntPtr.Zero) 1189if (exceptionIErrorInfo != IntPtr.Zero) 1194if (exceptionIUnknown != IntPtr.Zero) 1229private static IntPtr s_pClassActivator = IntPtr.Zero; 1234if (s_pClassActivator == IntPtr.Zero) 1245if (Interlocked.CompareExchange(ref s_pClassActivator, pActivator, IntPtr.Zero) != IntPtr.Zero) 1333if (ptr != IntPtr.Zero)
system\runtime\interopservices\windowsruntime\winrtclassactivator.cs (3)
27IntPtr activationFactory = IntPtr.Zero; 32IntPtr factoryInterface = IntPtr.Zero; 43if (activationFactory != IntPtr.Zero)
system\runtime\ProfileOptimization.cs (1)
53InternalStartProfile(profile, IntPtr.Zero);
system\runtime\remoting\context.cs (2)
156if (_internalContext != IntPtr.Zero && (_ctxFlags & CTX_DEFAULT_CONTEXT) == 0) 669Contract.Assert(targetCtxID != IntPtr.Zero, "Bad transition context");
system\runtime\remoting\message.cs (3)
4962Contract.Assert(targetCtxID!=IntPtr.Zero, "bad target ctx for call back"); 4967_eeData = IntPtr.Zero; 4985Contract.Assert(targetCtxID != IntPtr.Zero, "bad target ctx for call back");
system\runtime\remoting\objref.cs (4)
773IntPtr pUnk = IntPtr.Zero; 780if (pUnk != IntPtr.Zero && !fIsURTAggregated) 812if (pUnk != IntPtr.Zero) 941IntPtr contextId = IntPtr.Zero;
system\runtime\remoting\realproxy.cs (1)
659return IntPtr.Zero;
system\runtime\remoting\remotingproxy.cs (1)
595IntPtr pUnk = IntPtr.Zero;
system\runtime\remoting\remotingservices.cs (2)
2252IntPtr contextId = IntPtr.Zero; 2291contextId = IntPtr.Zero;
system\runtime\remoting\stackbuildersink.cs (1)
329if (msg.GetFramePtr() != IntPtr.Zero
system\runtimehandles.cs (6)
137return m_type != null ? m_type.m_handle : IntPtr.Zero; 342else if (_handle.Value != IntPtr.Zero) 346return !(_handle.Value == IntPtr.Zero); 602return GetTypeByName(name, throwOnError, ignoreCase, reflectionOnly, ref stackMark, IntPtr.Zero, loadTypeFromPartialName); 1088return m_value != null ? m_value.Value.Value : IntPtr.Zero; 1631return m_ptr != null ? m_ptr.Value.Value : IntPtr.Zero;
system\security\accesscontrol\privilege.cs (3)
174private SafeAccessTokenHandle threadHandle = new SafeAccessTokenHandle( IntPtr.Zero ); 178private static volatile SafeAccessTokenHandle processHandle = new SafeAccessTokenHandle( IntPtr.Zero ); 258IntPtr.Zero,
system\security\accesscontrol\securitydescriptor.cs (2)
642IntPtr byteArray = IntPtr.Zero; 696if (byteArray != IntPtr.Zero)
system\security\accesscontrol\win32.cs (1)
163if ( errorCode == Win32Native.ERROR_SUCCESS && IntPtr.Zero.Equals(ByteArray) )
system\security\cryptography\capinative.cs (1)
309if (!UnsafeNativeMethods.CryptCreateHash(cspHandle, algorithm, IntPtr.Zero, 0, out hashHandle)) {
system\security\cryptography\cryptoapitransform.cs (1)
344m_parentWindowHandle = IntPtr.Zero;
system\security\cryptography\safecryptohandles.cs (3)
32SetHandle(IntPtr.Zero); 72SetHandle(IntPtr.Zero); 108SetHandle(IntPtr.Zero);
system\security\cryptography\utils.cs (2)
368if (parameters.ParentWindowHandle != IntPtr.Zero) { 388if (szPassword != IntPtr.Zero)
system\security\cryptography\x509certificates\safex509handles.cs (4)
33SafeCertContextHandle invalidHandle = new SafeCertContextHandle(IntPtr.Zero); 44if (handle == IntPtr.Zero) 45return IntPtr.Zero; 76SafeCertStoreHandle invalidHandle = new SafeCertStoreHandle(IntPtr.Zero);
system\security\cryptography\x509certificates\x509certificate.cs (8)
190if (handle == IntPtr.Zero) 203if (cert.m_safeCertContext.pCertContext != IntPtr.Zero) { 761IntPtr szPassword = IntPtr.Zero; 771if (szPassword != IntPtr.Zero) 798IntPtr szPassword = IntPtr.Zero; 814if (szPassword != IntPtr.Zero) 838IntPtr szPassword = IntPtr.Zero; 854if (szPassword != IntPtr.Zero)
system\security\cryptography\x509certificates\x509utils.cs (6)
132IntPtr rawKey = IntPtr.Zero; 148if (localOidInfo != IntPtr.Zero) { 155if (fullOidInfo != IntPtr.Zero) { 163if (allGroupOidInfo != IntPtr.Zero) { 172if (rawKey != IntPtr.Zero) { 335return IntPtr.Zero;
system\security\permissions\permissionattributes.cs (1)
112return IntPtr.Zero;
system\security\policy\hash.cs (1)
217info.AddValue("PEFile", IntPtr.Zero);
system\security\principal\win32.cs (5)
130Loa.RootDirectory = IntPtr.Zero; 131Loa.ObjectName = IntPtr.Zero; 133Loa.SecurityDescriptor = IntPtr.Zero; 134Loa.SecurityQualityOfService = IntPtr.Zero; 212IntPtr ByteArray = IntPtr.Zero;
system\security\principal\windowsidentity.cs (9)
170if (userToken == IntPtr.Zero) 242if (userToken != IntPtr.Zero) 411IntPtr.Zero, 672if (userToken == IntPtr.Zero) 1012IntPtr dummy = IntPtr.Zero; 1113IntPtr.Zero, 1165if (!identity.m_safeTokenHandle.IsInvalid && identity.m_safeTokenHandle != SafeAccessTokenHandle.InvalidHandle && identity.m_safeTokenHandle.DangerousGetHandle() != IntPtr.Zero) 1169if (!identity.m_safeTokenHandle.IsInvalid && identity.m_safeTokenHandle.DangerousGetHandle() != IntPtr.Zero) 1193if (userToken != IntPtr.Zero && userToken.ToInt64() > 0)
system\security\principal\windowsprincipal.cs (1)
243IntPtr.Zero,
system\security\safesecurityhandles.cs (9)
16: base(IntPtr.Zero, true) 21: base(IntPtr.Zero, true) 29get { return new SafeAccessTokenHandle(IntPtr.Zero); } 35get { return handle == IntPtr.Zero || handle == new IntPtr(-1); } 56get { return new SafeLsaLogonProcessHandle(IntPtr.Zero); } 77get { return new SafeLsaMemoryHandle( IntPtr.Zero ); } 97get { return new SafeLsaPolicyHandle( IntPtr.Zero ); } 117get { return new SafeLsaReturnBufferHandle(IntPtr.Zero); } 138get { return new SafeProcessHandle(IntPtr.Zero); }
system\security\securestring.cs (17)
407IntPtr.Zero, 436IntPtr.Zero, 483IntPtr ptr = IntPtr.Zero; 484IntPtr result = IntPtr.Zero; 496if (ptr == IntPtr.Zero) { 511if( result == IntPtr.Zero) { 513if (ptr != IntPtr.Zero) { 532IntPtr ptr = IntPtr.Zero; 533IntPtr result = IntPtr.Zero; 550if (ptr == IntPtr.Zero) { 568if( result == IntPtr.Zero) { 570if (ptr != IntPtr.Zero) { 595IntPtr ptr = IntPtr.Zero; 596IntPtr result = IntPtr.Zero; 618if (ptr == IntPtr.Zero) { 631if( result == IntPtr.Zero) { 633if (ptr != IntPtr.Zero) {
system\string.cs (2)
1460IntPtr.Zero, 1461(fThrowOnUnmappableChar ? new IntPtr(&DefaultCharUsed) : IntPtr.Zero));
system\stubhelpers.cs (29)
66return IntPtr.Zero; 116if (IntPtr.Zero == cstr) 138return IntPtr.Zero; 173if (IntPtr.Zero == cstr) 182if (pNative != IntPtr.Zero) 197return IntPtr.Zero; 248return IntPtr.Zero; 267if (pNativeBuffer != IntPtr.Zero) 311if (IntPtr.Zero == bstr) 356if (IntPtr.Zero != pNative) 371return IntPtr.Zero; 411if (IntPtr.Zero == pNative) 422if (IntPtr.Zero != pNative) 437return IntPtr.Zero; 458if (IntPtr.Zero == bstr) 474if (IntPtr.Zero != pNative) 487return IntPtr.Zero; 602if (hstring != IntPtr.Zero) 699IntPtr newItemsIP = IntPtr.Zero; 700IntPtr oldItemsIP = IntPtr.Zero; 1015BCLDebug.Assert(pvArrayMarshaler != IntPtr.Zero, "pvArrayMarshaler must not be null"); 1071IntPtr.Zero, // not needed as we marshal primitive VTs only 1109IntPtr.Zero); // unmanaged buffer will be allocated 1241return IntPtr.Zero; 1324if (pNativeHome != IntPtr.Zero) 1351return IntPtr.Zero; 1365if (pNative != IntPtr.Zero) 1522e = StubHelpers.InternalGetCOMHRExceptionObject(hr, IntPtr.Zero, null, /* fForWinRT */ true); 1781return (success ? pHandle.DangerousGetHandle() : IntPtr.Zero);
system\text\basecodepageencoding.cs (2)
290if (mappedFileHandle != IntPtr.Zero) 347if (safeMemorySectionHandle != null && safeMemorySectionHandle.DangerousGetHandle() == IntPtr.Zero)
system\threading\compressedstack.cs (3)
115public SafeCompressedStackHandle() : base(IntPtr.Zero, true) 121get { return handle == IntPtr.Zero; } 128handle = IntPtr.Zero;
system\threading\hostexecutioncontextmanager.cs (2)
103public IUnknownSafeHandle() : base(IntPtr.Zero, true) 109get { return handle == IntPtr.Zero; }
system\threading\threadpool.cs (1)
1041return (registeredWaitHandle != InvalidHandle && registeredWaitHandle != IntPtr.Zero);
system\timezoneinfo.cs (1)
2648UnsafeNativeMethods.LoadLibraryEx(filePath, IntPtr.Zero, Win32Native.LOAD_LIBRARY_AS_DATAFILE)) {
system\typedreference.cs (1)
83if (Type == IntPtr.Zero)
system\typenameparser.cs (1)
36handle = IntPtr.Zero;
PresentationCore (386)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (2)
130if (UnsafeNativeMethods.InternetGetCookieEx(uriString, null, null, ref size, 0, IntPtr.Zero)) 137if (UnsafeNativeMethods.InternetGetCookieEx(uriString, null, sb, ref size, 0, IntPtr.Zero))
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (5)
498HandleRef desktopWnd = new HandleRef(null, IntPtr.Zero); 504if (dc == IntPtr.Zero) 1048IntPtr.Zero 1076_viewHandle = UnsafeNativeMethods.MapViewOfFileEx(_mappingHandle, UnsafeNativeMethods.FILE_MAP_READ, 0, 0, IntPtr.Zero, IntPtr.Zero);
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (17)
425if ( hModule != IntPtr.Zero ) 428new HandleRef(null, hModule), "GetAlternateList") != IntPtr.Zero ? 432return hModule != IntPtr.Zero ? true : false; 510IntPtr packets = IntPtr.Zero; 516if (packets == IntPtr.Zero) 558packets = IntPtr.Zero; 665if ( pd.pPacketProperties != IntPtr.Zero ) 680pd.pPacketProperties = IntPtr.Zero; 683if ( pd.pguidButtons != IntPtr.Zero ) 686pd.pguidButtons = IntPtr.Zero; 689if ( packets != IntPtr.Zero ) 692packets = IntPtr.Zero; 756if (pRecoAlternates[i] != IntPtr.Zero) 760pRecoAlternates[i] = IntPtr.Zero; 783IntPtr ptr = IntPtr.Zero; 797Debug.Assert(!(bestResultColumnCount != 0 && pRecoLattice->pLatticeColumns == IntPtr.Zero), "Invalid results!"); 798if ( bestResultColumnCount > 0 && pRecoLattice->pLatticeColumns != IntPtr.Zero )
Core\CSharp\MS\Internal\SystemDrawingHelper.cs (4)
48return (extensions != null) ? extensions.GetHandleFromMetafile(data) : IntPtr.Zero; 80return IntPtr.Zero; 91return (extensions != null) ? extensions.GetHBitmapFromBitmap(data) : IntPtr.Zero; 102return (extensions != null) ? extensions.ConvertMetafileToHBitmap(handle) : IntPtr.Zero;
Core\CSharp\MS\Internal\TextFormatting\FullTextBreakpoint.cs (5)
92TextFormatterContext context = settings.Formatter.AcquireContext(fullText, IntPtr.Zero); 94IntPtr previousBreakRecord = IntPtr.Zero; 234if(_ploline.Value != IntPtr.Zero) 237_ploline.Value = IntPtr.Zero; 238_penaltyResource.Value = IntPtr.Zero;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (16)
169if (_ploline.Value != System.IntPtr.Zero) 173_ploline.Value = System.IntPtr.Zero; 196_ploline = new SecurityCriticalDataForSet<IntPtr>(IntPtr.Zero); 252TextFormatterContext context = _metrics._formatter.AcquireContext(fullText, IntPtr.Zero); 273IntPtr.Zero, // single-line formatting does not require break record 304IntPtr.Zero, // single-line formatting does not require break record 628if (_ploline.Value != System.IntPtr.Zero) 900if(_ploline.Value == IntPtr.Zero) 1035if (_ploline.Value == IntPtr.Zero) 1183if (_ploline.Value == System.IntPtr.Zero) 1276if (_ploline.Value == IntPtr.Zero) 1556if (_ploline.Value == IntPtr.Zero) 2174if (_ploline.Value != System.IntPtr.Zero) 2248return _metrics.GetTextLineBreak(IntPtr.Zero); 2509Debug.Assert(_ploline.Value != IntPtr.Zero); 2568Debug.Assert(_ploline.Value != IntPtr.Zero);
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
569if (ploc == IntPtr.Zero)
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (3)
313IntPtr pbreakrec = IntPtr.Zero; 315if (ploline != IntPtr.Zero) 334return (pbreakrec != IntPtr.Zero) ? new TextLineBreak(null, new SecurityCriticalDataForSet<IntPtr>(pbreakrec)) : null;
Core\CSharp\MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
91if (_ploPenaltyModule.Value != IntPtr.Zero) 94_ploPenaltyModule.Value = IntPtr.Zero;
Core\CSharp\MS\Win32\UnsafeNativeMethodsTablet.cs (6)
150: base(IntPtr.Zero, ownHandle) 167return IsClosed || handle == IntPtr.Zero; 179Debug.Assert(handle != IntPtr.Zero); 209: base(IntPtr.Zero, ownHandle) 226return IsClosed || handle == IntPtr.Zero; 244Debug.Assert(handle != IntPtr.Zero);
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (4)
241_hwnd = IntPtr.Zero; 479if(_parent != null && _hwnd != IntPtr.Zero) return this; 481if((connectedPeer._hwnd) != IntPtr.Zero) 530if(peer._hwnd == IntPtr.Zero)
Core\CSharp\System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (2)
53if(hwnd != IntPtr.Zero) 89if(hwnd != IntPtr.Zero)
Core\CSharp\System\Windows\Clipboard.cs (5)
670IntPtr hModule = IntPtr.Zero; 673hModule = LoadLibraryHelper.SecureLoadLibraryEx(ExternDll.Wldp, IntPtr.Zero, UnsafeNativeMethods.LoadLibraryFlags.LOAD_LIBRARY_SEARCH_SYSTEM32); 674if (hModule != IntPtr.Zero) 677if (entryPoint != IntPtr.Zero) 693if (hModule != IntPtr.Zero)
Core\CSharp\System\Windows\DataObject.cs (36)
780pformatetcOut.ptd = IntPtr.Zero; 842hr = Win32CreateStreamOnHGlobal(IntPtr.Zero, true /*deleteOnRelease*/, ref istream); 871medium.unionmember = IntPtr.Zero; 1175if (win32Pointer == IntPtr.Zero) 1212if (win32Pointer != IntPtr.Zero) 1229if (win32Pointer == IntPtr.Zero) 1248if (win32Pointer == IntPtr.Zero) 1285if (win32Pointer == IntPtr.Zero) 1303if (handleOldObject == IntPtr.Zero) 1406int win32Return = UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0 /*flags*/, wideString, wideChars, bytes, byteCount, IntPtr.Zero, IntPtr.Zero); 1608if (hBitmap == IntPtr.Zero) 1610return IntPtr.Zero; 1616hDC = Win32GetDC(new HandleRef(this, IntPtr.Zero)); 1650Win32ReleaseDC(new HandleRef(this, IntPtr.Zero), new HandleRef(this, hDC)); 1673hEnhancedMetafile = IntPtr.Zero; 1697if (hEnhancedMetafile == IntPtr.Zero) 1898istream.Write(buffer, NativeMethods.IntPtrToInt32(size), IntPtr.Zero); 1938if (hBitmap != IntPtr.Zero) 1975if (hMetafile != IntPtr.Zero) 2028if (handle == IntPtr.Zero) 2085IntPtr.Zero, 2138if (handle == IntPtr.Zero) 2149currentPtr = IntPtr.Zero; 2224if (handle == IntPtr.Zero) 2336if (handle == IntPtr.Zero) 2477handle = IntPtr.Zero; 2489if (handle == IntPtr.Zero) 2538IntPtr.Zero, 2638temp.ptd = IntPtr.Zero; 2883if (formatetc[formatetcIndex].ptd != IntPtr.Zero) 3088if (medium.unionmember != IntPtr.Zero && medium.tymed == TYMED.TYMED_ISTREAM) 3148if (hglobal != IntPtr.Zero) 3257if (medium.unionmember != IntPtr.Zero && medium.tymed == TYMED.TYMED_HGLOBAL) 3318if (medium.unionmember != IntPtr.Zero) 3724IntPtr.Zero,
Core\CSharp\System\Windows\DragDrop.cs (3)
486if (SecurityHelper.CheckUnmanagedCodePermission() && windowHandle != IntPtr.Zero) 514if (SecurityHelper.CheckUnmanagedCodePermission() && windowHandle != IntPtr.Zero) 937if (handle == IntPtr.Zero)
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
555if (hwnd != IntPtr.Zero) 568if (hwnd != IntPtr.Zero)
Core\CSharp\System\Windows\Input\Cursor.cs (4)
206_cursorHandle = UnsafeNativeMethods.LoadImageCursor(IntPtr.Zero, 290_cursorHandle = UnsafeNativeMethods.LoadImageCursor(IntPtr.Zero, 341_cursorHandle = UnsafeNativeMethods.LoadImageCursor(IntPtr.Zero, 369_cursorHandle = SafeNativeMethods.LoadCursor(new HandleRef(this,IntPtr.Zero), (IntPtr)(CursorTypes[(int)cursorType]));
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (1)
93hwnd = IntPtr.Zero;
Core\CSharp\System\Windows\Input\InputElement.cs (2)
317if(sourceFrom != null && sourceFrom.CriticalHandle != IntPtr.Zero && sourceFrom.CompositionTarget != null && 318sourceTo != null && sourceTo.CriticalHandle != IntPtr.Zero && sourceTo.CompositionTarget != null)
Core\CSharp\System\Windows\Input\InputLanguageManager.cs (1)
293if (hkl == IntPtr.Zero)
Core\CSharp\System\Windows\Input\InputMethod.cs (14)
599if (hwnd != IntPtr.Zero) 635IntPtr hwnd = IntPtr.Zero; 638if (hwnd != IntPtr.Zero) 868if (hwnd != IntPtr.Zero) 916IntPtr hwnd = IntPtr.Zero; 1009if (hwnd != IntPtr.Zero) 1132if (hwnd != IntPtr.Zero) 1207if (hwnd != IntPtr.Zero) 1391if (hkl == IntPtr.Zero) 1452if (DefaultImc != IntPtr.Zero) 1463UnsafeNativeMethods.ImmAssociateContext(new HandleRef(this, hwnd), new HandleRef(this, IntPtr.Zero)); 1527if (hwnd != IntPtr.Zero) 1666UnsafeNativeMethods.ImmConfigureIME(new HandleRef(this, hkl), new HandleRef(this, HwndFromInputElement(element)), NativeMethods.IME_CONFIG_GENERAL, IntPtr.Zero); 1929IntPtr hwnd = UnsafeNativeMethods.ImmGetDefaultIMEWnd(new HandleRef(this, IntPtr.Zero));
Core\CSharp\System\Windows\Input\MouseDevice.cs (5)
991IntPtr.Zero); 1409IntPtr.Zero); 2195IntPtr hwndHit = IntPtr.Zero ; 2208hwndHit = IntPtr.Zero; 2215if (hwndHit != IntPtr.Zero)
Core\CSharp\System\Windows\Interop\D3DImage.cs (3)
188if (backBuffer != IntPtr.Zero && backBuffer == _pUserSurfaceUnsafe) 199if (backBuffer != IntPtr.Zero) 719img._pUserSurfaceUnsafe = IntPtr.Zero;
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (2)
73return IntPtr.Zero; 92return handled ? new IntPtr(1) : IntPtr.Zero ;
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (10)
102_restoreFocusWindow = IntPtr.Zero; 148result = focus != IntPtr.Zero; 216IntPtr result = IntPtr.Zero ; 404if (_restoreFocusWindow == IntPtr.Zero) 525if (_restoreFocusWindow != IntPtr.Zero) 528_restoreFocusWindow = IntPtr.Zero; 827if(hwnd != IntPtr.Zero) 867while (hwnd != IntPtr.Zero) 888return IntPtr.Zero; 932IntPtr extraInformation = IntPtr.Zero;
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (8)
384IntPtr result = IntPtr.Zero ; 813if(lParam != IntPtr.Zero || // someone else took capture 982if(hwndToCheck == IntPtr.Zero) 1010hwndToCheck = IntPtr.Zero; 1013if(hwndToCheck != IntPtr.Zero) 1031hwndToCheck = IntPtr.Zero; 1132if(hwnd != IntPtr.Zero) 1362IntPtr extraInformation = IntPtr.Zero;
Core\CSharp\System\Windows\Interop\HwndPanningFeedback.cs (1)
65if (handle != IntPtr.Zero)
Core\CSharp\System\Windows\Interop\HwndSource.cs (17)
386if (_hwndWrapper.Handle != IntPtr.Zero && 784if (hwnd == IntPtr.Zero) 873UnsafeNativeMethods.HideCaret(new HandleRef(this, IntPtr.Zero)); 905UnsafeNativeMethods.ShowCaret(new HandleRef(this, IntPtr.Zero)); 977UnsafeNativeMethods.SetWindowPos(new HandleRef(this,_hwndWrapper.Handle), new HandleRef(null,IntPtr.Zero), 1110return IntPtr.Zero; 1148return _hwndWrapper.Handle == IntPtr.Zero ; 1385IntPtr result = IntPtr.Zero ; 1393if (result != IntPtr.Zero) 1410IntPtr result = IntPtr.Zero ; 1490if(wParam == IntPtr.Zero) 1503result = IntPtr.Zero; 1548result = IntPtr.Zero; 1779IntPtr hwndRoot = IntPtr.Zero; 1800IntPtr result = IntPtr.Zero ; 1869IntPtr result = IntPtr.Zero ; 2946if (_hwndWrapper.Handle != IntPtr.Zero && _registeredDropTargetCount > 0)
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
109IntPtr result = IntPtr.Zero ;
Core\CSharp\System\Windows\Interop\HwndTarget.cs (31)
127private static readonly IntPtr Unhandled = IntPtr.Zero; 525Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero); 536IntPtr hwndParent = IntPtr.Zero; 552if (hwndParent != IntPtr.Zero) 557} while (hwndParent != IntPtr.Zero); 561Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero); 1056UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true); 1103UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1202UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1219bool enableRenderTarget = (wparam != IntPtr.Zero); 1344UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1382UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true); 1424UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true); 1451UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true); 1492&& !UnsafeNativeMethods.GetLayeredWindowAttributes(_hWnd.MakeHandleRef(this), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) 1578return IntPtr.Zero; 1584return IntPtr.Zero; 1931new HandleRef(null, IntPtr.Zero), // HWND_TOP 1958new HandleRef(null, IntPtr.Zero), // HWND_TOP 1963UnsafeNativeMethods.InvalidateRect(new HandleRef(this, _hWnd), IntPtr.Zero, true); 2090if(hwndParent != IntPtr.Zero) 2395UnsafeNativeMethods.UpdateLayeredWindow(_hWnd.h, IntPtr.Zero, null, null, IntPtr.Zero, null, 0, ref blend, NativeMethods.ULW_ALPHA); 2473UnsafeNativeMethods.PostMessage(new HandleRef(this, _hWnd), s_updateWindowSettings, IntPtr.Zero, IntPtr.Zero); 2769IntPtr.Zero, 2787if (_hPowerNotify != IntPtr.Zero) 2790_hPowerNotify = IntPtr.Zero; 2849IntPtr retInt = IntPtr.Zero;
Core\CSharp\System\Windows\Interop\Imaging.cs (3)
72if (bitmap == IntPtr.Zero) 101if (icon == IntPtr.Zero) 136if (section == IntPtr.Zero)
Core\CSharp\System\Windows\Media\ChannelManager.cs (3)
146if (_pSyncConnection != IntPtr.Zero) 149_pSyncConnection = IntPtr.Zero; 168if (_pSyncConnection == IntPtr.Zero)
Core\CSharp\System\Windows\Media\ColorContext.cs (2)
663HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetStandardColorSpaceProfile(IntPtr.Zero, dwProfileID, buffer, out bufferSize)); 681HRESULT.Check(UnsafeNativeMethodsMilCoreApi.Mscms.GetColorDirectory(IntPtr.Zero, buffer, out bufferSize));
Core\CSharp\System\Windows\Media\ColorTransform.cs (2)
139IntPtr paInputColors = IntPtr.Zero; 140IntPtr paOutputColors = IntPtr.Zero;
Core\CSharp\System\Windows\Media\EventProxy.cs (2)
48Debug.Assert(((IntPtr)pEPD.m_handle) != IntPtr.Zero, "If this asserts fires: Why is it firing? It might be legal in future."); 148Debug.Assert(((IntPtr)epd.m_handle) != IntPtr.Zero, "Stream is disposed.");
Core\CSharp\System\Windows\Media\FactoryMaker.cs (7)
41if (s_pFactory == IntPtr.Zero) 95if (s_pImagingFactory != IntPtr.Zero) 100s_pFactory = IntPtr.Zero; 101s_pImagingFactory = IntPtr.Zero; 126Debug.Assert(s_pFactory != IntPtr.Zero); 139if (s_pImagingFactory == IntPtr.Zero) 146Debug.Assert(s_pImagingFactory != IntPtr.Zero);
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (1)
255if (addr == IntPtr.Zero)
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (15)
651IntPtr /* IWICBitmapSource */ thumbnail = IntPtr.Zero; 666if (thumbnail != IntPtr.Zero) 723IntPtr /* IWICMetadataQueryReader */ metadata = IntPtr.Zero; 737if (metadata != IntPtr.Zero) 826IntPtr /* IWICBitmapSource */ preview = IntPtr.Zero; 841if (preview != IntPtr.Zero) 1157IntPtr decoder = IntPtr.Zero; 1266IntPtr comStream = IntPtr.Zero; 1324Debug.Assert(decoder != IntPtr.Zero); 1809IntPtr comStream = IntPtr.Zero; 1817IntPtr bufferPtr = IntPtr.Zero; 1826if (bufferPtr != IntPtr.Zero) 1835if (comStream == IntPtr.Zero) 1847if (memoryStream != IntPtr.Zero) 1863if (comStream == IntPtr.Zero)
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
169IntPtr.Zero /* hTemplateFile */
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (2)
66pstrName = IntPtr.Zero; 406IntPtr comStream = IntPtr.Zero;
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (5)
639IntPtr /* IWICBitmapSource */ thumbnail = IntPtr.Zero; 657if (thumbnail != IntPtr.Zero) 705IntPtr /* IWICMetadataQueryReader */ metadata = IntPtr.Zero; 721if (metadata != IntPtr.Zero) 774IntPtr frameDecode = IntPtr.Zero;
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (29)
176IntPtr pIMetadataWriter = IntPtr.Zero; 188pIMetadataWriter = IntPtr.Zero; 194if (pIMetadataWriter != IntPtr.Zero) 238pIMetadataReader = IntPtr.Zero; 286Invariant.Assert(pIBlockReader != IntPtr.Zero); 308IntPtr pIMetadataWriter = IntPtr.Zero; 337pIMetadataWriter = IntPtr.Zero; 347if (pIMetadataWriter != IntPtr.Zero) 377pIMetadataWriter = IntPtr.Zero; 402if (pIMetadataWriter == IntPtr.Zero) 439if (pIMetadataWriter == IntPtr.Zero) 560rgelt = IntPtr.Zero; 567rgelt = IntPtr.Zero; 637ppEnum = IntPtr.Zero; 734IntPtr /* IWICMetadataQueryWriter */ queryWriter = IntPtr.Zero; 774IntPtr /* IWICMetadataBlockWriter */ blockWriter = IntPtr.Zero; 775IntPtr /* IWICMetadataQueryWriter */ queryWriter = IntPtr.Zero; 798queryWriter = IntPtr.Zero; 804if (blockWriter != IntPtr.Zero) 809if (queryWriter != IntPtr.Zero) 828IntPtr /* IWICMetadataBlockWriter */ blockWriter = IntPtr.Zero; 829IntPtr /* IWICMetadataQueryWriter */ queryWriter = IntPtr.Zero; 852queryWriter = IntPtr.Zero; 858if (blockWriter != IntPtr.Zero) 863if (queryWriter != IntPtr.Zero) 882IntPtr queryWriter = IntPtr.Zero; 908queryWriter = IntPtr.Zero; 919if (queryWriter != IntPtr.Zero) 1360IntPtr.Zero
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (3)
82IntPtr ppStr = IntPtr.Zero; 113if (ppStr != IntPtr.Zero) 116ppStr = IntPtr.Zero;
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (5)
647IntPtr wicSource = IntPtr.Zero; 794if (buffer == IntPtr.Zero) 966new SafeMILHandle(IntPtr.Zero), 1947if (pvPixels == IntPtr.Zero) 1957if (prc == IntPtr.Zero)
Core\CSharp\System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (2)
104if (bitmapObject != null && bitmapObject != IntPtr.Zero) 121Debug.Assert(wicBitmap != IntPtr.Zero);
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
122IntPtr pIRenderTargetBitmap = IntPtr.Zero;
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (15)
164ca.pElems = IntPtr.Zero; 172IntPtr destPtr =IntPtr.Zero; 187destPtr = IntPtr.Zero; 196if (destPtr != IntPtr.Zero) 214ca.pElems = IntPtr.Zero; 220IntPtr destPtr = IntPtr.Zero; 231IntPtr pString = IntPtr.Zero; 250destPtr = IntPtr.Zero; 254if (destPtr != IntPtr.Zero) 453IntPtr punkTemp = IntPtr.Zero; 490if (ca.pElems != IntPtr.Zero) 754IntPtr queryHandle = IntPtr.Zero; 768queryHandle = IntPtr.Zero; 782queryHandle = IntPtr.Zero; 792if (queryHandle != IntPtr.Zero)
Core\CSharp\System\Windows\Media\Imaging\UnknownBitmapDecoder.cs (1)
46MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CoInitialize(IntPtr.Zero);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
316if (_backBuffer == IntPtr.Zero) 318IntPtr tempBackBufferPointer = IntPtr.Zero; 1033if (sourceBuffer == IntPtr.Zero)
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (3)
84hwndNotification = new HwndWrapper(0, NativeMethods.WS_POPUP, 0, 0, 0, 0, 0, "MediaContextNotificationWindow", IntPtr.Zero, null); 211return IntPtr.Zero; 255if (functionAddress != IntPtr.Zero)
Core\CSharp\System\Windows\Media\MediaSystem.cs (1)
275s_pConnection = IntPtr.Zero;
Core\CSharp\System\Windows\Media\PixelFormat.cs (7)
543Debug.Assert(pixelFormatInfo != IntPtr.Zero); 585if (pixelFormatInfo != IntPtr.Zero) 601IntPtr componentInfo = IntPtr.Zero; 602IntPtr pixelFormatInfo = IntPtr.Zero; 629if (componentInfo != IntPtr.Zero) 653Debug.Assert(pixelFormatInfo != IntPtr.Zero); 664if (pixelFormatInfo != IntPtr.Zero)
Core\CSharp\System\Windows\Media\SafeReversePInvokeHandle.cs (1)
71if (handle != IntPtr.Zero)
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (10)
91Debug.Assert(((IntPtr)pSD.m_handle) != IntPtr.Zero, "If this asserts fires: why is it firing. It might be legal in future."); 207stream = IntPtr.Zero; 626Debug.Assert(((IntPtr)sd.m_handle) != IntPtr.Zero, "Stream is disposed."); 713IntPtr pIStream = IntPtr.Zero; 719return IntPtr.Zero; 726return IntPtr.Zero; 739IntPtr pIStream = IntPtr.Zero; 745return IntPtr.Zero; 752return IntPtr.Zero; 771IntPtr pStream = IntPtr.Zero;
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatterContext.cs (14)
67_ploc = new SecurityCriticalDataForSet<IntPtr>(IntPtr.Zero); 80if(_ploc.Value == System.IntPtr.Zero) 93contextInfo.pols = IntPtr.Zero; // This will be filled in the un-managed code 151IntPtr ploc = IntPtr.Zero; 152IntPtr ppenaltyModule = IntPtr.Zero; 206Invariant.Assert(_ploc.Value != System.IntPtr.Zero); 301if(_ploc.Value != System.IntPtr.Zero) 304_ploc.Value = IntPtr.Zero; 321Invariant.Assert(_ploc.Value != System.IntPtr.Zero); 357Invariant.Assert(_ploc.Value != System.IntPtr.Zero); 389Invariant.Assert(_ploc.Value != System.IntPtr.Zero); 417Invariant.Assert(_ploc.Value != System.IntPtr.Zero); 441Invariant.Assert(_ploc.Value != System.IntPtr.Zero); 468Invariant.Assert(_ploc.Value != System.IntPtr.Zero);
Core\CSharp\System\Windows\Media\TextFormatting\TextLineBreak.cs (5)
55if (breakRecord.Value == IntPtr.Zero) 95IntPtr pbreakrec = IntPtr.Zero; 97if (_breakRecord.Value != IntPtr.Zero) 125if (_breakRecord.Value != IntPtr.Zero) 129_breakRecord.Value = IntPtr.Zero;
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphCache.cs (5)
75TextFormatterContext context = settings.Formatter.AcquireContext(_fullText, IntPtr.Zero); 79IntPtr ploparabreakValue = IntPtr.Zero; 86IntPtr.Zero, 180if(_ploparabreak.Value != IntPtr.Zero) 184_ploparabreak.Value = IntPtr.Zero;
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (2)
757if (ptr != IntPtr.Zero) 761ptr = IntPtr.Zero;
Core\CSharp\System\Windows\UIElement.cs (2)
1158HandleRef desktopWnd = new HandleRef(null, IntPtr.Zero); 1166if (dc == IntPtr.Zero)
Graphics\include\exports.cs (19)
390IntPtr referenceChannelHandle = IntPtr.Zero; 420if (_hChannel == IntPtr.Zero) 449if (_hChannel == IntPtr.Zero) 476if (_hChannel == IntPtr.Zero) 504if (_hChannel != IntPtr.Zero) 512if (_hChannel != IntPtr.Zero) 516_hChannel = IntPtr.Zero; 553Invariant.Assert(_hChannel != IntPtr.Zero); 624Invariant.Assert(_hChannel != IntPtr.Zero); 660Invariant.Assert(_hChannel != IntPtr.Zero); 703Invariant.Assert(_hChannel != IntPtr.Zero); 772if (_hChannel == IntPtr.Zero) 812if (_hChannel == IntPtr.Zero) 852if (_hChannel == IntPtr.Zero) 884if (_hChannel == IntPtr.Zero) 912Invariant.Assert(_hChannel != IntPtr.Zero); 935Invariant.Assert(_hChannel != IntPtr.Zero); 967Invariant.Assert(_hChannel != IntPtr.Zero); 1031Invariant.Assert(_hChannel != IntPtr.Zero);
Shared\MS\Internal\MimeTypeMapper.cs (1)
97IntPtr.Zero,
Shared\MS\Internal\SafeSecurityHelper.cs (1)
71int retval = MS.Internal.WindowsBase.NativeMethodsSetLastError.MapWindowPoints(hwnd , new HandleRef(null, IntPtr.Zero), ref rcWindowCoords, 2);
PresentationFramework (613)
src\Framework\Microsoft\Win32\CommonDialog.cs (8)
108if (hwndOwner == IntPtr.Zero) 124if (hwndOwner == IntPtr.Zero) 126tempParentHwnd = new HwndWrapper(0, 0, 0, 0, 0, 0, 0, "", IntPtr.Zero, null); 190if (hwndOwner == IntPtr.Zero) 281return IntPtr.Zero; 327IntPtr hMonitor = IntPtr.Zero; 330if (_hwndOwnerWindow != IntPtr.Zero) 344if (hMonitor != IntPtr.Zero)
src\Framework\Microsoft\Win32\FileDialog.cs (5)
684IntPtr returnValue = IntPtr.Zero; 776IntPtr.Zero, // wParam (additional info) 777IntPtr.Zero); // lParam (additional info) 1019ofn.hInstance = IntPtr.Zero; 1107if (ofn.lpstrFile != IntPtr.Zero)
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (1)
157UnsafeNativeMethods.ShellExecute( new HandleRef( null, IntPtr.Zero) , /*hwnd*/
src\Framework\MS\Internal\AppModel\IconHelper.cs (3)
259IntPtr bits = IntPtr.Zero; 261new HandleRef(null, IntPtr.Zero), // A device context. Pass null in if no DIB_PAL_COLORS is used. 269if ( colorBitmap.IsInvalid || bits == IntPtr.Zero)
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (2)
108bool forceOwner = !context.NoPrompt && ElevationPromptOwnerWindow != IntPtr.Zero; 116ElevationPromptOwnerWindow = IntPtr.Zero; // to prevent further prompting
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
222Invariant.Assert(ihs.HostWindowHandle != IntPtr.Zero, "IHostService.HostWindowHandle in RootBrowserWindow cannot be null"); 292Debug.Assert(topWindow != IntPtr.Zero);
src\Framework\MS\Internal\AppModel\SecurityMgrSite.cs (1)
41phwnd = IntPtr.Zero;
src\Framework\MS\Internal\AppModel\ShellProvider.cs (1)
995HRESULT hr = NativeMethods2.SHGetFolderPathEx(ref knownFolder, 0, IntPtr.Zero, pathBuilder, (uint)pathBuilder.Capacity);
src\Framework\MS\Internal\Controls\ActiveXHelper.cs (2)
102if (hDC != IntPtr.Zero) 130if (hDC != IntPtr.Zero)
src\Framework\MS\Internal\Controls\ActiveXSite.cs (2)
199if (hwnd != IntPtr.Zero) 299lpFrameInfo.hAccel = IntPtr.Zero;
src\Framework\MS\Internal\Controls\EnumUnknown.cs (2)
54if (pceltFetched != IntPtr.Zero) 80if (pceltFetched != IntPtr.Zero)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
306IntPtr hwnd = (hwndSource != null) ? hwndSource.CriticalHandle : IntPtr.Zero;
src\Framework\MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (4)
216IntPtr pszVal = IntPtr.Zero; 217IntPtr pNative = IntPtr.Zero; 255if (pszVal != IntPtr.Zero) 260if (pNative != IntPtr.Zero)
src\Framework\MS\Internal\IO\Packaging\managedIStream.cs (3)
60if (bytesReadPtr != IntPtr.Zero) 103if (newPositionPtr != IntPtr.Zero) 168if (bytesWrittenPtr != IntPtr.Zero)
src\Framework\MS\Internal\IO\Packaging\XpsFilter.cs (1)
126if (pBuffer == IntPtr.Zero)
src\Framework\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;
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (27)
58_unmanagedPrintDlgEx = IntPtr.Zero; 114if (_unmanagedPrintDlgEx == IntPtr.Zero) 182if (_unmanagedPrintDlgEx != IntPtr.Zero) 190if (_ownerHandle == IntPtr.Zero) 224if (_unmanagedPrintDlgEx != IntPtr.Zero) 227_unmanagedPrintDlgEx = IntPtr.Zero; 268IntPtr devNamesHandle = IntPtr.Zero; 269IntPtr pageRangePtr = IntPtr.Zero; 300(pageRangePtr != IntPtr.Zero)) 316if (devNamesHandle != IntPtr.Zero) 318IntPtr pDevNames = IntPtr.Zero; 331if (pDevNames != IntPtr.Zero) 435IntPtr pDevMode = IntPtr.Zero; 448if (pDevMode != IntPtr.Zero) 535IntPtr unmanagedBuffer = IntPtr.Zero; 598pdex.lpPageRanges = IntPtr.Zero; 675pdex.lpPageRanges = IntPtr.Zero; 708unmanagedBuffer = IntPtr.Zero; 735if (unmanagedBuffer == IntPtr.Zero) 740IntPtr devModeHandle = IntPtr.Zero; 741IntPtr devNamesHandle = IntPtr.Zero; 742IntPtr pageRangePtr = IntPtr.Zero; 766if (devModeHandle != IntPtr.Zero) 771if (devNamesHandle != IntPtr.Zero) 776if (pageRangePtr != IntPtr.Zero) 797IntPtr temp = IntPtr.Zero; 822IntPtr hDevNames = IntPtr.Zero;
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (2)
87IntPtr owner = IntPtr.Zero; 148if (owner == IntPtr.Zero)
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (2)
56_paraHandle = new SecurityCriticalDataForSet<IntPtr>(IntPtr.Zero); 88Debug.Assert(_paraHandle.Value == IntPtr.Zero || _paraHandle.Value == pfspara);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (9)
135if(_paraHandle.Value != IntPtr.Zero) 196bool suppressTopSpace = (breakRecordIn != IntPtr.Zero) ? true : false; 200IntPtr.Zero, 217if (pmcsclientOut != IntPtr.Zero) 223pmcsclientOut = IntPtr.Zero; 272if (pmcsclientOut != IntPtr.Zero) 278pmcsclientOut = IntPtr.Zero; 324if (pmcsclientOut != IntPtr.Zero) 330pmcsclientOut = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (4)
107ppfscell = IntPtr.Zero; 116if (pfsbrkcellOut != IntPtr.Zero) 119pfsbrkcellOut = IntPtr.Zero; 122ppfscell = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (23)
182firstParaName = (_firstChild != null) ? _firstChild.Handle : IntPtr.Zero; 279nextParaName = IntPtr.Zero; 338nmpBeforeChange = IntPtr.Zero; 510if (mcs != null && pbrkrecIn != IntPtr.Zero) 543if (pbrkrecIn == IntPtr.Zero) 564(mcsContainer != null) ? mcsContainer.Handle : IntPtr.Zero, fskclearIn, 596if (pmcsclientOut != IntPtr.Zero) 600pmcsclientOut = IntPtr.Zero; 611pmcsclientOut = (mcsNew != null) ? mcsNew.Handle : IntPtr.Zero; 637paraClient.SetChunkInfo(pbrkrecIn == IntPtr.Zero, pbrkrecOut == IntPtr.Zero); 714(mcsContainer != null) ? mcsContainer.Handle : IntPtr.Zero, fskclearIn, fInterruptable, 733if (pmcsclientOut != IntPtr.Zero) 737pmcsclientOut = IntPtr.Zero; 742pmcsclientOut = (mcsNew != null) ? mcsNew.Handle : IntPtr.Zero; 758Debug.Assert(pmcsclientOut == IntPtr.Zero); 759pfspara = IntPtr.Zero; 851(mcsContainer != null) ? mcsContainer.Handle : IntPtr.Zero, fskclearIn, fInterruptable, 870if (pmcsclientOut != IntPtr.Zero) 874pmcsclientOut = IntPtr.Zero; 879pmcsclientOut = (mcsNew != null) ? mcsNew.Handle : IntPtr.Zero; 895Debug.Assert(pmcsclientOut == IntPtr.Zero); 896pfspara = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (2)
59if (SubpageHandle != IntPtr.Zero) 62SubpageHandle = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (11)
194CreateSubpageFiniteHelper(PtsContext, IntPtr.Zero, PTS.False, _mainTextSegment.Handle, IntPtr.Zero, PTS.False, PTS.True, 200if(brParaOut != IntPtr.Zero) 217if (pfsFigureContent != IntPtr.Zero) 221if (pmcsclientOut != IntPtr.Zero) 226pmcsclientOut = IntPtr.Zero; 237CreateSubpageFiniteHelper(PtsContext, IntPtr.Zero, PTS.False, _mainTextSegment.Handle, IntPtr.Zero, PTS.False, PTS.True, 243if(brParaOut != IntPtr.Zero) 261if (pmcsclientOut != IntPtr.Zero) 266pmcsclientOut = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (27)
211pbrkrecOut = IntPtr.Zero; 212pfsFloatContent = IntPtr.Zero; 264Debug.Assert(pmcsclientOut == IntPtr.Zero); 283if (pfsFloatContent != IntPtr.Zero) 286pfsFloatContent = IntPtr.Zero; 288if (pbrkrecOut != IntPtr.Zero) 291pbrkrecOut = IntPtr.Zero; 293if (pmcsclientOut != IntPtr.Zero) 298pmcsclientOut = IntPtr.Zero; 318if (pmcsclientOut != IntPtr.Zero) 323pmcsclientOut = IntPtr.Zero; 351if (pfsFloatContent != IntPtr.Zero) 354pfsFloatContent = IntPtr.Zero; 356if (pbrkrecOut != IntPtr.Zero) 359pbrkrecOut = IntPtr.Zero; 424pfsFloatContent = IntPtr.Zero; 466if (pfsFloatContent != IntPtr.Zero) 470if (pmcsclientOut != IntPtr.Zero) 475pmcsclientOut = IntPtr.Zero; 493if (pmcsclientOut != IntPtr.Zero) 498pmcsclientOut = IntPtr.Zero; 514if (pfsFloatContent != IntPtr.Zero) 519Debug.Assert(pmcsclientOut == IntPtr.Zero); 521pfsFloatContent = IntPtr.Zero; 538Debug.Assert(pmcsclientOut == IntPtr.Zero); 541pfsFloatContent = IntPtr.Zero; 589pmcsclientOut = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
440if (_ptsPage.PageHandle == IntPtr.Zero) 511if (columnDesc.pfstrack != IntPtr.Zero)
src\Framework\MS\Internal\PtsHost\PageBreakRecord.cs (2)
41Invariant.Assert(br.Value != IntPtr.Zero, "Invalid break record object."); 161_br.Value = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\PtsCache.cs (16)
383Invariant.Assert(_contextPool[index].PtsHost.Context != IntPtr.Zero, "PTS Context handle is not valid."); 385Invariant.Assert(_contextPool[index].InstalledObjects != IntPtr.Zero, "Installed Objects handle is not valid."); 468Invariant.Assert(_contextPool[index].PtsHost.Context != IntPtr.Zero, "PTS Context handle is not valid."); 470Invariant.Assert(_contextPool[index].InstalledObjects != IntPtr.Zero, "Installed Objects handle is not valid."); 713subtrackParaInfo.pfnGetFootnoteInfoWord = IntPtr.Zero; 792tableobjInit.tableobjcbk.pfnGetDvrUsedForFloatTable = IntPtr.Zero; 822tableobjInit.tablecbkcell.pfnGetCellFootnoteInfo = IntPtr.Zero; 823tableobjInit.tablecbkcell.pfnGetCellFootnoteInfoWord = IntPtr.Zero; 829tableobjInit.tablecbkfetchword.pfnGetTablePropertiesWord = IntPtr.Zero; 830tableobjInit.tablecbkfetchword.pfnGetRowPropertiesWord = IntPtr.Zero; 831tableobjInit.tablecbkfetchword.pfnGetNumberFiguresForTableRow = IntPtr.Zero; 832tableobjInit.tablecbkfetchword.pfnGetRowWidthWord = IntPtr.Zero; 833tableobjInit.tablecbkfetchword.pfnGetFiguresForTableRow = IntPtr.Zero; 834tableobjInit.tablecbkfetchword.pfnFStopBeforeTableRowLr = IntPtr.Zero; 835tableobjInit.tablecbkfetchword.pfnFIgnoreCollisionForTableRow = IntPtr.Zero; 836tableobjInit.tablecbkfetchword.pfnChangeRowHeightRestriction = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\PtsContext.cs (8)
103Invariant.Assert(((IntPtr)_pageBreakRecords[index]) != IntPtr.Zero, "Invalid break record object"); 121Invariant.Assert(((IntPtr)_pages[index]) != IntPtr.Zero, "Invalid break record object"); 308Invariant.Assert(ptsPage.Value != IntPtr.Zero, "Invalid page object."); 323Invariant.Assert(ptsPage.Value != IntPtr.Zero, "Invalid page object."); 354Invariant.Assert(br.Value != IntPtr.Zero, "Invalid break record object."); 368Invariant.Assert(br.Value != IntPtr.Zero, "Invalid break record object."); 513Invariant.Assert(ptsPage.Value != IntPtr.Zero, "Invalid page object."); 560Invariant.Assert(br.Value != IntPtr.Zero, "Invalid break record object.");
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (5)
139if (trackDesc.pfstrack != IntPtr.Zero) 241bool emptyTrack = (trackDesc.pfstrack == IntPtr.Zero); 350if (trackDesc.pfstrack != IntPtr.Zero) 413if (trackDesc.pfstrack == IntPtr.Zero) { return null; } 494if (trackDesc.pfstrack == IntPtr.Zero)
src\Framework\MS\Internal\PtsHost\PtsHost.cs (97)
58_context = new SecurityCriticalDataForSet<IntPtr>(IntPtr.Zero); 88get { Invariant.Assert(_context.Value != IntPtr.Zero); return _context.Value; } 90set { Invariant.Assert(_context.Value == IntPtr.Zero); _context.Value = value; } 359fSuccess = 0; nmsNext = IntPtr.Zero; 365fSuccess = 0; nmsNext = IntPtr.Zero; 460nmSegment = IntPtr.Zero; 466nmSegment = IntPtr.Zero; 495fHeaderPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirHeader = 0; nmsHeader = IntPtr.Zero; 501fHeaderPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirHeader = 0; nmsHeader = IntPtr.Zero; 530fFooterPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirFooter = 0; nmsFooter = IntPtr.Zero; 536fFooterPresent = fHardMargin = dvrMaxHeight = dvrFromEdge = 0; fswdirFooter = 0; nmsFooter = IntPtr.Zero; 653fSuccessful = 0; nmp = IntPtr.Zero; 659fSuccessful = 0; nmp = IntPtr.Zero; 683fFound = 0; nmpNext = IntPtr.Zero; 689fFound = 0; nmpNext = IntPtr.Zero; 711fFound = fChangeFirst = 0; nmpBeforeChange = IntPtr.Zero; 717fFound = fChangeFirst = 0; nmpBeforeChange = IntPtr.Zero; 790pfsparaclient = IntPtr.Zero; 796pfsparaclient = IntPtr.Zero; 877nmsEndnoteSeparator = nmsEndnoteContSeparator = nmsEndnoteContNotice = IntPtr.Zero; 883nmsEndnoteSeparator = nmsEndnoteContSeparator = nmsEndnoteContNotice = IntPtr.Zero; 904fEndnotesPresent = 0; nmsEndnotes = IntPtr.Zero; 910fEndnotesPresent = 0; nmsEndnotes = IntPtr.Zero; 949nmsFtnSeparator = nmsFtnContSeparator = nmsFtnContNotice = IntPtr.Zero; 992nmsFootnote = IntPtr.Zero; 1039pmcsclientNew = IntPtr.Zero; 1045pmcsclientNew = IntPtr.Zero; 1081if (pmcsclient1 == IntPtr.Zero || pmcsclient2 == IntPtr.Zero) 1127if (pmcsclient != IntPtr.Zero) 1172pObjectInfo = IntPtr.Zero; 1214if(pfsbreakreclineclient != IntPtr.Zero) 1230ppfsparabreakingsession = IntPtr.Zero; 1238ppfsparabreakingsession = IntPtr.Zero; 1346pfsdropc = IntPtr.Zero; 1402pmcsclientOut = IntPtr.Zero; 1407pmcsclientOut = IntPtr.Zero; 1413pmcsclientOut = IntPtr.Zero; 1465pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1472pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1524pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = 0; 1531pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = 0; 1571if(pbrlineIn != IntPtr.Zero) 1627rgfslinevariant[breakIndex].pfsbreakreclineclient = IntPtr.Zero; 1712pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1719pfsline = ppbrlineOut = IntPtr.Zero; dcpLine = fForcedBroken = dvrAscent = dvrDescent = urBBox = durBBox = dcpDepend = fReformatNeighborsAsLastLine = 0; 1749pbrlineDup = IntPtr.Zero; 1755pbrlineDup = IntPtr.Zero; 1955pmcsclientAfterPara = IntPtr.Zero; 2365fsfmtr = new PTS.FSFMTR(); pfsFloatContent = pbrkrecpara = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2371fsfmtr = new PTS.FSFMTR(); pfsFloatContent = pbrkrecpara = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2408pfsFloatContent = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2415pfsFloatContent = IntPtr.Zero; durFloaterWidth = dvrFloaterHeight = cPolygons = cVertices = 0; fsbbox = new PTS.FSBBOX(); 2741if (pmcsclientIn != IntPtr.Zero) 2750pmcsclientOut = IntPtr.Zero; 2756pmcsclientOut = IntPtr.Zero; 2777if (pmcsclientIn != IntPtr.Zero) 2862if (pmcsclientIn != IntPtr.Zero) 2873fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 2880fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 2923if (pmcsclientIn != IntPtr.Zero) 2934pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 2942pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 2985if (pmcsclientIn != IntPtr.Zero) 2997pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3005pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3231if (pmcsclientIn != IntPtr.Zero) 3242fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 3249fsfmtr = new PTS.FSFMTR(); pfspara = pbrkrecpara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = 0; fsbbox = new PTS.FSBBOX(); 3287if (pmcsclientIn != IntPtr.Zero) 3299pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3307pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3350if (pmcsclientIn != IntPtr.Zero) 3362pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3370pfspara = pmcsclientOut = IntPtr.Zero; dvrUsed = dvrTopSpace = fPageBecomesUninterruptable = 0; fsbbox = new PTS.FSBBOX(); 3630ppmcsclientOut = IntPtr.Zero; 3636ppmcsclientOut = IntPtr.Zero; 3660pnmFirstHeaderRow = IntPtr.Zero; 3667pnmFirstHeaderRow = IntPtr.Zero; 3692pnmNextHeaderRow = IntPtr.Zero; 3699pnmNextHeaderRow = IntPtr.Zero; 3723pnmFirstFooterRow = IntPtr.Zero; 3730pnmFirstFooterRow = IntPtr.Zero; 3755pnmNextFooterRow = IntPtr.Zero; 3762pnmNextFooterRow = IntPtr.Zero; 3785pnmFirstRow = IntPtr.Zero; 3792pnmFirstRow = IntPtr.Zero; 3816pnmNextRow = IntPtr.Zero; 3823pnmNextRow = IntPtr.Zero; 3891pnmRowBeforeChange = IntPtr.Zero; 3899pnmRowBeforeChange = IntPtr.Zero; 4171ppfscell = IntPtr.Zero; 4172pfsbrkcellOut = IntPtr.Zero; 4180ppfscell = IntPtr.Zero; 4181pfsbrkcellOut = IntPtr.Zero; 4216ppfscell = IntPtr.Zero; 4224ppfscell = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\PtsPage.cs (12)
64_ptsPage = new SecurityCriticalDataForSet<IntPtr>(IntPtr.Zero); 323_ptsPage.Value = IntPtr.Zero; 430IntPtr brIn = (breakRecord != null) ? breakRecord.BreakRecord : IntPtr.Zero; 440_ptsPage.Value = IntPtr.Zero; 441brOut = IntPtr.Zero; 448if (brOut != IntPtr.Zero) 500IntPtr brIn = (breakRecord != null) ? breakRecord.BreakRecord : IntPtr.Zero; 516if (brOut != IntPtr.Zero) 795_ptsPage.Value = IntPtr.Zero; 1583if (_ptsPage.Value != IntPtr.Zero) 1586_ptsPage.Value = IntPtr.Zero; 1604return (_ptsPage.Value == IntPtr.Zero);
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (2)
94paraClientHandle = IntPtr.Zero; 213if(rgpfsCell[index] != IntPtr.Zero)
src\Framework\MS\Internal\PtsHost\Section.cs (7)
188nmsNext = IntPtr.Zero; 298nmsHeader = IntPtr.Zero; 342nmsFooter = IntPtr.Zero; 398nmsEndnotes = IntPtr.Zero; 418nmsEndnoteSeparator = IntPtr.Zero; 419nmsEndnoteContSeparator = IntPtr.Zero; 420nmsEndnoteContNotice = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (2)
63if (_paraHandle.Value != IntPtr.Zero) 66_paraHandle.Value = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (19)
166if (mcs != null && pbrkrecIn != IntPtr.Zero) 196if (pbrkrecIn == IntPtr.Zero) 262if (pbrkrecIn == IntPtr.Zero) // if first chunk 269if (pmcsclientOut != IntPtr.Zero) 273pmcsclientOut = IntPtr.Zero; 293pmcsclientOut = (mcsBottom != null) ? mcsBottom.Handle : IntPtr.Zero; 295if (pmcsclientOut == IntPtr.Zero) // if last chunk 323paraClient.SetChunkInfo(pbrkrecIn == IntPtr.Zero, pbrkrecOut == IntPtr.Zero); 445if (pmcsclientOut != IntPtr.Zero) 449pmcsclientOut = IntPtr.Zero; 452pmcsclientOut = (mcsBottom != null) ? mcsBottom.Handle : IntPtr.Zero; 482Debug.Assert(pmcsclientOut == IntPtr.Zero); 483pfspara = IntPtr.Zero; 613if (pmcsclientOut != IntPtr.Zero) 617pmcsclientOut = IntPtr.Zero; 620pmcsclientOut = (mcsBottom != null) ? mcsBottom.Handle : IntPtr.Zero; 650Debug.Assert(pmcsclientOut == IntPtr.Zero); 651pfspara = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (13)
145if (arrayFsCell[iC] == IntPtr.Zero) 372if (arrayFsCell[iC] == IntPtr.Zero) 426if (arrayFsCell[iC] == IntPtr.Zero) 506if (arrayFsCell[iC] == IntPtr.Zero) 603if (arrayFsCell[iC] == IntPtr.Zero) 685if (arrayFsCell[iC] == IntPtr.Zero) 818if(arrayFsCell[iC] != IntPtr.Zero && 915if (arrayFsCell[iC] == IntPtr.Zero) 988if (arrayFsCell[iC] == IntPtr.Zero) 1054if (arrayFsCell[iC] == IntPtr.Zero) 1139if (arrayFsCell[iC] == IntPtr.Zero) 1665arrayFsCell[iC] == IntPtr.Zero 1788if (arrayFsCell[iC] == IntPtr.Zero)
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (9)
189ppmcsclientOut = IntPtr.Zero; 193if (pmcsclientIn != IntPtr.Zero) 215pnmFirstHeaderRow = IntPtr.Zero; 232pnmNextHeaderRow = IntPtr.Zero; 247pnmFirstFooterRow = IntPtr.Zero; 264pnmNextFooterRow = IntPtr.Zero; 305pnmFirstRow = IntPtr.Zero; 380pnmNextRow = IntPtr.Zero; 417pnmRowBeforeChange = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
611IntPtr breakRecLine = IntPtr.Zero; 1136IntPtr breakRecLine = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (4)
278mcsClient = IntPtr.Zero; 573ppbrlineOut = IntPtr.Zero; 758ppbrlineOut = IntPtr.Zero; 1350if(pbrLineIn != IntPtr.Zero)
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (6)
200pbrkrecOut = IntPtr.Zero; 201pfsFloatContent = IntPtr.Zero; 236pfsFloatContent = IntPtr.Zero; 254pbrkrecOut = IntPtr.Zero; 290pfsFloatContent = IntPtr.Zero; 368pmcsclientOut = IntPtr.Zero;
src\Framework\MS\Internal\PtsHost\UnmanagedHandle.cs (1)
49_handle = IntPtr.Zero;
src\Framework\System\Windows\Application.cs (5)
2167return IntPtr.Zero; 2340IntPtr.Zero, 2347IntPtr retInt = IntPtr.Zero; 2413refInt = IntPtr.Zero; 2599UnsafeNativeMethods.PlaySound(soundFile, IntPtr.Zero, PLAYSOUND_FLAGS);
src\Framework\System\Windows\Automation\Peers\HwndHostAutomationPeer.cs (1)
48if(hwnd != IntPtr.Zero)
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (1)
87if(windowHandle != IntPtr.Zero) //it is Zero on a window that was just closed
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1705if (comboBox.IsDropDownOpen && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
127if (MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
564if (menu.IsMenuMode && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero) 630HwndSource hwndSourceWithFocus = hwndWithFocus != IntPtr.Zero ? HwndSource.CriticalFromHwnd(hwndWithFocus) : null;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (22)
1230bool reestablishCapture = e.OriginalSource != root && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero; 1759if (wParam == IntPtr.Zero) 1792return IntPtr.Zero; 2677if (monitor != IntPtr.Zero) 2768if (hCursor != IntPtr.Zero) 3145UnsafeNativeMethods.SetWindowPos(new HandleRef(null, Handle), new HandleRef(null, IntPtr.Zero), 3159if (parent != IntPtr.Zero) 3257lastWebOCHwnd == IntPtr.Zero ? NativeMethods.HWND_TOP : new HandleRef(null, lastWebOCHwnd), 3306while (lastHwnd != IntPtr.Zero) 3434IntPtr parent = IntPtr.Zero; 3464if ( parent != IntPtr.Zero ) 3476if ((parent != IntPtr.Zero) && ConnectedToForegroundWindow(parent)) 3520while (window != IntPtr.Zero) 3543return (hwnd!=null ? hwnd.CriticalHandle : IntPtr.Zero); 3557if (child != IntPtr.Zero) 3563return IntPtr.Zero; 3612if (Handle != IntPtr.Zero && (UnsafeNativeMethods.IsWinEventHookInstalled(NativeMethods.EVENT_OBJECT_FOCUS) || UnsafeNativeMethods.IsWinEventHookInstalled(NativeMethods.EVENT_OBJECT_STATECHANGE))) 3617if (popupRootAutomationPeer.Hwnd == IntPtr.Zero) 3620IntPtr lResult = AutomationInteropProvider.ReturnRawElementProvider(Handle, IntPtr.Zero, new IntPtr(NativeMethods.OBJID_CLIENT), RootProviderForHwnd); 3621if (lResult != IntPtr.Zero) 3626hr = UnsafeNativeMethods.ObjectFromLresult(lResult, ref iid, IntPtr.Zero, ref acc); 3738return DpiUtil.GetProcessDpiAwareness(IntPtr.Zero) == NativeMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE;
src\Framework\System\Windows\Controls\WebBrowser.cs (4)
439dp.rgvarg = IntPtr.Zero; 460dp.rgvarg = (args == null) ? IntPtr.Zero : UnsafeNativeMethods.ArrayToVARIANTHelper.ArrayToVARIANTVector(args); 462dp.rgdispidNamedArgs = IntPtr.Zero; 491if (dp.rgvarg != IntPtr.Zero)
src\Framework\System\windows\Documents\CaretElement.cs (2)
986IntPtr hwnd = IntPtr.Zero; 1003if (hwnd != IntPtr.Zero)
src\Framework\System\Windows\Documents\ImmComposition.cs (22)
242IntPtr hwnd = IntPtr.Zero; 255if (himc != IntPtr.Zero) 423IntPtr lret = IntPtr.Zero; 506if (himc == IntPtr.Zero) 517size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_RESULTSTR, IntPtr.Zero, 0); 534size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_COMPSTR, IntPtr.Zero, 0); 548cursorPos = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_CURSORPOS, IntPtr.Zero, 0); 556deltaStart = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_DELTASTART, IntPtr.Zero, 0); 564size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_COMPATTR, IntPtr.Zero, 0); 689if (himc != IntPtr.Zero) 887if (himc != IntPtr.Zero) 1434IntPtr lret = IntPtr.Zero; 1474return IntPtr.Zero; 1496if (lParam != IntPtr.Zero) 1666return IntPtr.Zero; 1671return IntPtr.Zero; 1680return IntPtr.Zero; 1922IntPtr hwnd = IntPtr.Zero; 1936IntPtr lret = IntPtr.Zero; 1937if (himc != IntPtr.Zero) 1939IntPtr hwndDefIme = IntPtr.Zero; 1953return (lret != IntPtr.Zero) ? true : false;
src\Framework\System\Windows\Documents\MoveSizeWinEventHandler.cs (1)
86while (hwndTemp != IntPtr.Zero)
src\Framework\System\Windows\Documents\NaturalLanguageHyphenator.cs (2)
93if (!_disposed && _hyphenatorResource != IntPtr.Zero) 141if (_hyphenatorResource == IntPtr.Zero)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
318IntPtr hwnd = IntPtr.Zero;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
689IntPtr hwnd = IntPtr.Zero; 705if (hwnd != IntPtr.Zero)
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1647IntPtr hwnd = IntPtr.Zero;
src\Framework\System\Windows\Documents\TextStore.cs (3)
1047hwnd = IntPtr.Zero; 2509IntPtr hwnd = IntPtr.Zero; 3221IntPtr hwnd = IntPtr.Zero;
src\Framework\System\Windows\Documents\WinEventHandler.cs (4)
115_hHook.Value = UnsafeNativeMethods.SetWinEventHook(_eventMin, _eventMax, IntPtr.Zero, _winEventProc.Value, 117if (_hHook.Value == IntPtr.Zero ) 134if (_hHook.Value != IntPtr.Zero ) 137_hHook.Value = IntPtr.Zero ;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
3394if (activeWindow != IntPtr.Zero)
src\Framework\System\Windows\Interop\ActiveXHost.cs (4)
178if (ControlHandle.Handle == IntPtr.Zero) 180IntPtr inplaceWindow = IntPtr.Zero; 561IntPtr.Zero, 586if (this.ParentHandle.Handle != IntPtr.Zero)
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
355return IntPtr.Zero;
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (1)
500if (dp.rgvarg != IntPtr.Zero)
src\Framework\System\Windows\Interop\HwndHost.cs (33)
411if (_hwnd.Handle != IntPtr.Zero && (hwndFocus.Handle == _hwnd.Handle || UnsafeNativeMethods.IsChild(_hwnd, hwndFocus))) 457if (( CriticalHandle != IntPtr.Zero) && IsVisible) 697_hwnd = new HandleRef(null, IntPtr.Zero); 755return IntPtr.Zero ; 774IntPtr result = IntPtr.Zero; 809new HandleRef(null, IntPtr.Zero), 855if(CriticalHandle != IntPtr.Zero) 895if(_hwnd.Handle != IntPtr.Zero && UnsafeNativeMethods.IsWindow(_hwnd)) 902HandleRef hdcScreen = new HandleRef(this, UnsafeNativeMethods.GetDC(new HandleRef(this, IntPtr.Zero))); 903if(hdcScreen.Handle != IntPtr.Zero) 905HandleRef hdcBitmap = new HandleRef(this, IntPtr.Zero); 906HandleRef hBitmap = new HandleRef(this, IntPtr.Zero); 911if(hdcBitmap.Handle != IntPtr.Zero) 915if(hBitmap.Handle != IntPtr.Zero) 947UnsafeNativeMethods.CriticalRedrawWindow(_hwnd, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN); 952System.Windows.Media.Imaging.BitmapSource bitmapSource = Imaging.CriticalCreateBitmapSourceFromHBitmap(hBitmap.Handle, IntPtr.Zero, Int32Rect.Empty, null, WICBitmapAlphaChannelOption.WICBitmapIgnoreAlpha); 967UnsafeNativeMethods.ReleaseDC(new HandleRef(this, IntPtr.Zero), hdcScreen); 968hdcScreen = new HandleRef(null, IntPtr.Zero); 970if(hBitmap.Handle != IntPtr.Zero) 973hBitmap = new HandleRef(this, IntPtr.Zero); 976if(hdcBitmap.Handle != IntPtr.Zero) 979hdcBitmap = new HandleRef(this, IntPtr.Zero); 1155IntPtr hwndParent = IntPtr.Zero; 1181if(hwndParent != IntPtr.Zero) 1183if(_hwnd.Handle == IntPtr.Zero) 1199else if (!FrameworkAppContextSwitches.Enable2019_12_B || _hwnd.Handle != IntPtr.Zero) // When the "knob" is disabled, it would be as if this condition didn't exist - which is equivalent to the code prior to this change. 1240if(_hwnd.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(_hwnd)) 1311if( CriticalHandle == IntPtr.Zero) 1327_hwnd = new HandleRef(null, IntPtr.Zero); 1346if(_hwnd.Handle != IntPtr.Zero) 1350_hwnd = new HandleRef(null, IntPtr.Zero); 1364IntPtr result = IntPtr.Zero ;
src\Framework\System\Windows\Interop\WindowInteropHelper.cs (1)
144if (CriticalHandle == IntPtr.Zero)
src\Framework\System\Windows\MessageBox.cs (8)
113return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, defaultResult, options); 133return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, defaultResult, 0); 152return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, 0, 0); 170return ShowCore(IntPtr.Zero, messageBoxText, caption, button, MessageBoxImage.None, 0, 0); 185return ShowCore(IntPtr.Zero, messageBoxText, caption, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 200return ShowCore(IntPtr.Zero, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 489if (owner != IntPtr.Zero) 496if (owner == IntPtr.Zero)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (27)
208if (IntPtr.Zero != _hwnd) 301if (_chromeInfo != null && _hwnd != IntPtr.Zero) 321if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed) 345NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 628return IntPtr.Zero; 725IntPtr retVal = IntPtr.Zero; 805if (IntPtr.Zero != lRet) 834return IntPtr.Zero; 858return IntPtr.Zero; 891return IntPtr.Zero; 903return IntPtr.Zero; 919return IntPtr.Zero; 950return IntPtr.Zero; 970return IntPtr.Zero; 984return IntPtr.Zero; 1070if (IntPtr.Zero != hmenu) 1117if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed) 1139NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags); 1149NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd)); 1189IntPtr hrgn = IntPtr.Zero; 1194hrgn = IntPtr.Zero; 1221IntPtr hrgn = IntPtr.Zero; 1271hrgn = IntPtr.Zero; 1315IntPtr hrgn = IntPtr.Zero; 1367if (IntPtr.Zero == _hwnd) 1559if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero) 1581NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
src\Framework\System\Windows\Standard\MessageWindow.cs (7)
104IntPtr.Zero, 105IntPtr.Zero, 106IntPtr.Zero, 158_dispatcher.BeginInvoke(DispatcherPriority.Normal, (DispatcherOperationCallback)_DestroyWindowCallback, new object [] { IntPtr.Zero, className }); 160else if (Handle != IntPtr.Zero) 175Handle = IntPtr.Zero; 196IntPtr ret = IntPtr.Zero;
src\Framework\System\Windows\Standard\NativeMethods.cs (27)
1448if (!_hwnd.HasValue || _hwnd.Value == IntPtr.Zero) 1467dc = NativeMethods.CreateDC(deviceName, null, IntPtr.Zero, IntPtr.Zero); 1496IntPtr hPtr = IntPtr.Zero; 1558return GetDC(IntPtr.Zero); 1574_hwnd = IntPtr.Zero, 1670handle = IntPtr.Zero; 1715handle = IntPtr.Zero; 2521IntPtr argv = IntPtr.Zero; 2527if (argv == IntPtr.Zero) 2546Assert.AreEqual(IntPtr.Zero, p); 2577hBitmap = _CreateDIBSectionIntPtr(IntPtr.Zero, ref bitmapInfo, DIB_RGB_COLORS, out ppvBits, hSection, dwOffset); 2608if (IntPtr.Zero == ret) 2631if (IntPtr.Zero == ret) 2654if (IntPtr.Zero == ret) 2709if (IntPtr.Zero == ret) 3086if (retPtr == IntPtr.Zero) 3162IntPtr ret = IntPtr.Zero; 3171if (IntPtr.Zero == ret) 3422if (ret == IntPtr.Zero) 3675if (ret == IntPtr.Zero) 3698if (ret == IntPtr.Zero) 3833if (!_UpdateLayeredWindowIntPtr(hwnd, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, crKey, ref pblend, dwFlags))
src\Framework\System\Windows\Standard\Utilities.cs (3)
213gdiObject = IntPtr.Zero; 214if (IntPtr.Zero != p) 228hwnd = IntPtr.Zero;
src\Framework\System\Windows\SystemCommands.cs (5)
35if (hwnd == IntPtr.Zero || !NativeMethods.IsWindow(hwnd)) 40NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr((int)command), IntPtr.Zero); 117if (hwnd == IntPtr.Zero || !NativeMethods.IsWindow(hwnd)) 124uint cmd = NativeMethods.TrackPopupMenuEx(hmenu, TPM_LEFTBUTTON | TPM_RETURNCMD, (int)physicalScreenLocation.X, (int)physicalScreenLocation.Y, hwnd, IntPtr.Zero); 127NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr(cmd), IntPtr.Zero);
src\Framework\System\Windows\SystemParameters.cs (2)
6388HandleRef desktopWnd = new HandleRef(null, IntPtr.Zero); 6396if (dc == IntPtr.Zero)
src\Framework\System\Windows\SystemResources.cs (3)
1181parent: IntPtr.Zero, 1513return IntPtr.Zero ; 1600return DpiUtil.GetProcessDpiAwarenessContextValue(IntPtr.Zero);
src\Framework\System\Windows\Window.cs (45)
310UnsafeNativeMethods.SendMessage( CriticalHandle, WindowMessage.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_MOUSEMOVE, IntPtr.Zero); 311UnsafeNativeMethods.SendMessage( CriticalHandle, WindowMessage.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero); 361_dialogOwnerHandle = IntPtr.Zero; 371if (_dialogOwnerHandle == IntPtr.Zero) 378if ((_dialogOwnerHandle != IntPtr.Zero) && 381_dialogOwnerHandle = IntPtr.Zero; 386if (_dialogOwnerHandle != IntPtr.Zero) 391while (_dialogOwnerHandle != IntPtr.Zero) 428if (hWndCapture != IntPtr.Zero) 496if ( (_dialogPreviousActiveHandle != IntPtr.Zero) && 1355SetOwnerHandle(_ownerWindow != null ? _ownerWindow.CriticalHandle: IntPtr.Zero); 2912new HandleRef(null, IntPtr.Zero), 3005new HandleRef(null, IntPtr.Zero), 3118new HandleRef(null, IntPtr.Zero), 3266return IntPtr.Zero; 3889IntPtr hMonitor = IntPtr.Zero; 3890if ((_ownerHandle == IntPtr.Zero) || 3902if (hMonitor != IntPtr.Zero) 3926if (Owner.CriticalHandle == IntPtr.Zero) 3944if ((_ownerHandle != IntPtr.Zero) && UnsafeNativeMethods.IsWindow(new HandleRef(null, _ownerHandle))) 3992Debug.Assert(hMonitor != IntPtr.Zero); 4005if (hMonitor == IntPtr.Zero) 4309if (_ownerHandle == ownerHandle && _ownerHandle == IntPtr.Zero) 4317_ownerHandle = (IntPtr.Zero == ownerHandle && !ShowInTaskbar) 4399IntPtr retInt = IntPtr.Zero ; 4647(_dialogPreviousActiveHandle != IntPtr.Zero) && 6282if (hMonitor != IntPtr.Zero) 6529new HandleRef(null, IntPtr.Zero), 6653IntPtr.Zero, 6683if (_ownerHandle == IntPtr.Zero) 6705SetOwnerHandle(IntPtr.Zero); 6717UnsafeNativeMethods.PostMessage(new HandleRef(this, CriticalHandle), WM_APPLYTASKBARITEMINFO, IntPtr.Zero, IntPtr.Zero); 7080nativeTB.hIcon = IntPtr.Zero; 7205if (manager.Dirty && CriticalHandle != IntPtr.Zero) 7285SetOwnerHandle(IntPtr.Zero); 7618private IntPtr _ownerHandle = IntPtr.Zero; // no need to dispose this 7688private IntPtr _dialogOwnerHandle = IntPtr.Zero; 7844return IntPtr.Zero; 7866if ( monitor != IntPtr.Zero ) 8390return DpiUtil.GetProcessDpiAwareness(IntPtr.Zero) == NativeMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE; 8410var nullHandle = new HandleRef(null, IntPtr.Zero); 8414IntPtr.Zero, 8416IntPtr.Zero);
SMSvcHost (5)
System\ServiceModel\Activation\ListenerAdapterBase.cs (4)
41webHostIpm = WebHostUnsafeNativeMethods.LoadLibraryEx(SMSvcHost.ListenerAdapterNativeLibrary, IntPtr.Zero, WebHostUnsafeNativeMethods.LOAD_WITH_ALTERED_SEARCH_PATH); 103if (funcPtr == IntPtr.Zero) 114if (bindingsMultiSz == IntPtr.Zero) 273hresult = webhostRegisterProtocol(ProtocolName, ref listenerCallbacks, IntPtr.Zero, out protocolHandle);
System\ServiceModel\Activation\NamedPipeWorkerProcess.cs (1)
17IntPtr dupedPipe = IntPtr.Zero;
System (459)
compmod\microsoft\win32\NativeMethods.cs (22)
58public readonly static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero); 110public IntPtr lpReserved = IntPtr.Zero; 111public IntPtr lpDesktop = IntPtr.Zero; 112public IntPtr lpTitle = IntPtr.Zero; 123public IntPtr lpReserved2 = IntPtr.Zero; 124public SafeFileHandle hStdInput = new SafeFileHandle(IntPtr.Zero, false); 125public SafeFileHandle hStdOutput = new SafeFileHandle(IntPtr.Zero, false); 126public SafeFileHandle hStdError = new SafeFileHandle(IntPtr.Zero, false); 161public SafeLocalMemHandle lpSecurityDescriptor = new SafeLocalMemHandle(IntPtr.Zero, false); 233return SetNamedSecurityInfo(directory, 1, 0x04 | 0x10, IntPtr.Zero, IntPtr.Zero, pDacl, IntPtr.Zero); 653public IntPtr hInstance = IntPtr.Zero; 654public IntPtr hIcon = IntPtr.Zero; 655public IntPtr hCursor = IntPtr.Zero; 656public IntPtr hbrBackground = IntPtr.Zero; 657public IntPtr lpszMenuName = IntPtr.Zero; 658public IntPtr lpszClassName = IntPtr.Zero; 667public IntPtr hInstance = IntPtr.Zero; 668public IntPtr hIcon = IntPtr.Zero; 669public IntPtr hCursor = IntPtr.Zero; 670public IntPtr hbrBackground = IntPtr.Zero;
compmod\microsoft\win32\safehandles\SafeLocalMemHandle.cs (1)
52return LocalFree(handle) == IntPtr.Zero;
compmod\microsoft\win32\safehandles\SafeProcessHandle.cs (1)
30internal static SafeProcessHandle InvalidHandle = new SafeProcessHandle(IntPtr.Zero);
compmod\microsoft\win32\SafeNativeMethods.cs (2)
199public IntPtr hProcess = IntPtr.Zero; 200public IntPtr hThread = IntPtr.Zero;
compmod\microsoft\win32\SystemEvents.cs (31)
110private static volatile IntPtr processWinStation = IntPtr.Zero; 117IntPtr hwinsta = IntPtr.Zero; 120if (hwinsta != IntPtr.Zero && processWinStation != hwinsta) { 411if (defWindowProc == IntPtr.Zero) { 444return IntPtr.Zero; 494NativeMethods.WM_CREATETIMER, (IntPtr)interval, IntPtr.Zero); 496if (timerId == IntPtr.Zero) { 505if (windowHandle != IntPtr.Zero) { 512windowHandle = IntPtr.Zero; 518if (UnsafeNativeMethods.IsWindow(href) && DefWndProc != IntPtr.Zero) { 532UnsafeNativeMethods.PostMessage(href, NativeMethods.WM_CLOSE, IntPtr.Zero, IntPtr.Zero); 586if (requireHandle && systemEvents.windowHandle == IntPtr.Zero) { 607if (retval != IntPtr.Zero) { 622if (lParam != IntPtr.Zero && Marshal.PtrToStringAuto(lParam).Equals("Policy")) { 625else if (lParam != IntPtr.Zero && Marshal.PtrToStringAuto(lParam).Equals("intl")) { 751Debug.Assert(windowHandle != IntPtr.Zero, "CreateBroadcastWindow failed"); 833UnsafeNativeMethods.PostMessage(new HandleRef(systemEvents, systemEvents.windowHandle), threadCallbackMessage, IntPtr.Zero, IntPtr.Zero); 842if (systemEvents.windowHandle != IntPtr.Zero) { 844NativeMethods.WM_KILLTIMER, timerId, IntPtr.Zero); 858return(res == IntPtr.Zero ? IntPtr.Zero: timerId); 1399if (systemEvents != null && systemEvents.windowHandle != IntPtr.Zero) { 1414UnsafeNativeMethods.PostMessage(new HandleRef(systemEvents, systemEvents.windowHandle), NativeMethods.WM_QUIT, IntPtr.Zero, IntPtr.Zero); 1444if (lParam != IntPtr.Zero) { 1479if (lParam != IntPtr.Zero) { 1540return IntPtr.Zero; 1561if (windowHandle != IntPtr.Zero) { 1571int ret = UnsafeNativeMethods.MsgWaitForMultipleObjectsEx(0, IntPtr.Zero, 100, NativeMethods.QS_ALLINPUT, NativeMethods.MWMO_INPUTAVAILABLE);
compmod\microsoft\win32\UnsafeNativeMethods.cs (3)
226if (hModule == IntPtr.Zero) { 227Debug.Assert(hModule != IntPtr.Zero, "GetModuleHandle failed. Dll isn't loaded?"); 231return (functionPointer != IntPtr.Zero);
compmod\system\codedom\compiler\CompilerParameters.cs (1)
311return IntPtr.Zero;
compmod\system\codedom\compiler\TempFiles.cs (2)
364SafeLocalMemHandle.ConvertStringSecurityDescriptorToSecurityDescriptor(sddl, NativeMethods.SDDL_REVISION_1, out acl, IntPtr.Zero); 375SafeLocalMemHandle.ConvertStringSecurityDescriptorToSecurityDescriptor(sddl, NativeMethods.SDDL_REVISION_1, out acl, IntPtr.Zero);
compmod\system\collections\specialized\marshalinghelpers.cs (4)
92return IntPtr.Zero; 108if (nativeArgsIP == IntPtr.Zero) 132return IntPtr.Zero; 143if (nativeArgsIP == IntPtr.Zero)
compmod\system\componentmodel\Win32Exception.cs (1)
99IntPtr.Zero, (uint) error, 0, sb, sb.Capacity + 1,
compmod\system\diagnostics\assertwrapper.cs (5)
139rval = SafeNativeMethods.MessageBox(IntPtr.Zero, fullMessage, SR.GetString(SR.DebugAssertTitle), flags); 211IntPtr hdc = UnsafeNativeMethods.GetDC(IntPtr.Zero); 216UnsafeNativeMethods.ReleaseDC(IntPtr.Zero, hdc); 217hdc = IntPtr.Zero; 272ReturnValue = SafeNativeMethods.MessageBox(IntPtr.Zero, m_Body, m_Title, m_Flags);
compmod\System\Runtime\InteropServices\StandardOleMarshalObject.cs (4)
41IntPtr pStandardMarshal = IntPtr.Zero; 44if (pUnk != IntPtr.Zero) 48if (NativeMethods.S_OK == UnsafeNativeMethods.CoGetStandardMarshal(ref riid, pUnk, dwDestContext, IntPtr.Zero, mshlflags, out pStandardMarshal)) 124ppv = IntPtr.Zero;
net\System\Net\_AutoWebProxyScriptEngine.cs (3)
394ListenForRegistryHelper(ref regKey, ref registryChangeEvent, IntPtr.Zero, 425if (baseKey == IntPtr.Zero) 576ListenForRegistryHelper(ref regKey, ref registryChangeEvent, IntPtr.Zero,
net\System\Net\_AutoWebProxyScriptHelper.cs (3)
592IntPtr.Zero, 604IntPtr.Zero, 700 if(pSocketAddressList != IntPtr.Zero)
net\System\Net\_ContextAwareResult.cs (3)
420base.Complete(IntPtr.Zero); 455if (userToken != IntPtr.Zero || context == null) 468base.Complete(IntPtr.Zero);
net\System\Net\_LazyAsyncResult.cs (2)
376ProtectedInvokeCallback(result, IntPtr.Zero); 383ProtectedInvokeCallback(null, IntPtr.Zero);
net\System\Net\_ListenerResponseStream.cs (2)
151IntPtr pBufferAsIntPtr = IntPtr.Zero; 598if (Logging.On) { Logging.Dump(Logging.HttpListener, asyncResult, "Callback", IntPtr.Zero, 0); }
net\System\Net\_NTAuthentication.cs (1)
443using (WindowsIdentity.Impersonate(IntPtr.Zero))
net\System\Net\_PooledStream.cs (3)
598if (UnsafeNclNativeMethods.CancelIoEx(socket.SafeHandle, IntPtr.Zero) == 0) { 623UnsafeNclNativeMethods.CancelIoEx(socket4.SafeHandle, IntPtr.Zero); 640UnsafeNclNativeMethods.CancelIoEx(socket6.SafeHandle, IntPtr.Zero);
net\System\Net\_SafeNetHandles.cs (35)
675return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 696return UnsafeNclNativeMethods.SafeNetHandles.GlobalFree(handle) == IntPtr.Zero; 754return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 784if (hKernel32 != IntPtr.Zero && 785UnsafeNclNativeMethods.GetProcAddress(hKernel32, AddDllDirectory) != IntPtr.Zero) { 810return (ret != IntPtr.Zero); 962certExtension.pszObjId = IntPtr.Zero; 1041get {return HandleHi == IntPtr.Zero && HandleLo == IntPtr.Zero;} 1047HandleHi = IntPtr.Zero; 1048HandleLo = IntPtr.Zero; 1071protected SafeFreeCredentials(): base(IntPtr.Zero, true) { 1177IntPtr.Zero, 1266if (copiedPtr != IntPtr.Zero) { 1412protected SafeDeleteContext(): base(IntPtr.Zero, true) { 1534inUnmanagedBuffer[index].token = IntPtr.Zero; 1556outUnmanagedBuffer[0].token = IntPtr.Zero; 1859inUnmanagedBuffer[index].token = IntPtr.Zero; 1882outUnmanagedBuffer[0].token = IntPtr.Zero; 2117inUnmanagedBuffer[index].token = IntPtr.Zero; 2232inUnmanagedBuffer[index].token = IntPtr.Zero; 2343: this(IntPtr.Zero) 2353: base(IntPtr.Zero, true) 2360get { return handle == IntPtr.Zero; } 2367if (handleSnapshot != IntPtr.Zero) 2371((NativeOverlapped*)handleSnapshot)->InternalHigh = IntPtr.Zero; 2372((NativeOverlapped*)handleSnapshot)->InternalLow = IntPtr.Zero; 2373((NativeOverlapped*)handleSnapshot)->EventHandle = IntPtr.Zero; 2380IntPtr oldHandle = Interlocked.Exchange(ref handle, IntPtr.Zero); 2383if (oldHandle != IntPtr.Zero && !NclUtilities.HasShutdownStarted) 2615IntPtr.Zero, 2727InnerSafeCloseSocket result = UnsafeNclNativeMethods.OSSOCK.WSASocket(addressFamily, socketType, protocolType, IntPtr.Zero, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED); 2842return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 2974SetHandle(IntPtr.Zero); 3056errorCode = UnsafeNclNativeMethods.RegistryHelper.RegQueryValueEx(this, name, IntPtr.Zero, out type, blob, ref size);
net\System\Net\_SecureChannel.cs (6)
167if (context.hCertStore != IntPtr.Zero) 313if (certificate.Handle != IntPtr.Zero) 398using (WindowsIdentity.Impersonate(IntPtr.Zero)) 441if (certificate.Handle!=IntPtr.Zero) { 881using (WindowsIdentity.Impersonate(IntPtr.Zero)) 1264&& chain.ChainContext == IntPtr.Zero) // Build failed to generate a valid handle
net\System\Net\_Semaphore.cs (3)
24Handle = UnsafeNclNativeMethods.CreateSemaphore(IntPtr.Zero, initialCount, maxCount, IntPtr.Zero); 45return UnsafeNclNativeMethods.ReleaseSemaphore(Handle, 1, IntPtr.Zero);
net\System\Net\_SSPIWrapper.cs (4)
398unmanagedBuffer[i].token = IntPtr.Zero; 898if (unmanagedString!=IntPtr.Zero) { 962if (unmanagedString != IntPtr.Zero) { 968if (unmanagedString != IntPtr.Zero) {
net\System\Net\_TimerThread.cs (3)
311if (m_ThisHandle == IntPtr.Zero) 350if(m_ThisHandle != IntPtr.Zero) 353m_ThisHandle = IntPtr.Zero;
net\System\Net\Cache\WinInetCache.cs (9)
319bufferPtr->_OffsetExtension = bufferPtr->_OffsetExtension == IntPtr.Zero? IntPtr.Zero: (IntPtr)((byte*)bufferPtr->_OffsetExtension - (byte*)bufferPtr); 320bufferPtr->_OffsetFileName = bufferPtr->_OffsetFileName == IntPtr.Zero? IntPtr.Zero: (IntPtr)((byte*)bufferPtr->_OffsetFileName - (byte*)bufferPtr); 321bufferPtr->_OffsetHeaderInfo = bufferPtr->_OffsetHeaderInfo == IntPtr.Zero? IntPtr.Zero: (IntPtr)((byte*)bufferPtr->_OffsetHeaderInfo - (byte*)bufferPtr); 322bufferPtr->_OffsetSourceUrlName = bufferPtr->_OffsetSourceUrlName == IntPtr.Zero? IntPtr.Zero: (IntPtr)((byte*)bufferPtr->_OffsetSourceUrlName - (byte*)bufferPtr); 543if (bufferPtr->_OffsetHeaderInfo == IntPtr.Zero || bufferPtr->HeaderInfoChars == 0 || (bufferPtr->EntryType & EntryType.UrlHistory) != 0) {
net\System\Net\Configuration\DefaultProxySection.cs (2)
171using(WindowsIdentity.Impersonate(IntPtr.Zero)) 217using(WindowsIdentity.Impersonate(IntPtr.Zero))
net\System\Net\DNS.cs (5)
71if (Host.h_name != IntPtr.Zero) { 93while (nativePointer != IntPtr.Zero) { 135while (nativePointer != IntPtr.Zero) { 250if (nativePointer == IntPtr.Zero) { 419if (nativePointer != IntPtr.Zero) {
net\System\Net\HttpListener.cs (5)
505GlobalLog.Assert(info != IntPtr.Zero, "SetUrlGroupProperty called with invalid pointer"); 944info.RequestQueueHandle = IntPtr.Zero; 2424Debug.Assert(blob != IntPtr.Zero); 2427Debug.Assert(tokenPointer != IntPtr.Zero); 2433Debug.Assert(blob != IntPtr.Zero);
net\System\Net\HttpListenerContext.cs (2)
247IntPtr.Zero); 254IntPtr.Zero);
net\System\Net\Internal.cs (7)
216uint result = UnsafeNetInfoNativeMethods.GetAdaptersAddresses(AddressFamily.Unspecified, (uint)gaaFlags, IntPtr.Zero, SafeLocalFree.Zero, ref size); 222result = UnsafeNetInfoNativeMethods.GetAdaptersAddresses(AddressFamily.Unspecified, (uint)gaaFlags, IntPtr.Zero, buffer, ref size); 228while (nextAdapter != IntPtr.Zero) 233if (adapterAddresses.firstUnicastAddress != IntPtr.Zero) 583SafeNativeOverlapped.Zero, IntPtr.Zero); 606SafeNativeOverlapped.Zero, IntPtr.Zero); 1392rootStore = phMappers = palgSupportedAlgs = certContextArray = IntPtr.Zero;
net\System\Net\IPAddress.cs (2)
196IntPtr.Zero, 453IntPtr.Zero,
net\System\Net\Logging.cs (1)
568if (!ValidateSettings(traceSource, TraceEventType.Verbose) || bufferPtr == IntPtr.Zero || length < 0) {
net\System\Net\mail\iisPickupDirectory.cs (3)
350IntPtr ptrKey = IntPtr.Zero; 357hr = adminBase.OpenKey(IntPtr.Zero, "LM/SmtpSvc", MBKeyAccess.Read, InfiniteTimeout, ref ptrKey); 460if (ptrKey != IntPtr.Zero)
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
299SafeNativeOverlapped.Zero, IntPtr.Zero); 327SafeNativeOverlapped.Zero, IntPtr.Zero);
net\System\Net\NetworkInformation\ping.cs (10)
675error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 678error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 686error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 689error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
net\System\Net\NetworkInformation\SafeCancelMibChangeNotify.cs (1)
19base.handle = IntPtr.Zero;
net\System\Net\NetworkInformation\SafeFreeMibTable.cs (1)
15base.handle = IntPtr.Zero;
net\System\Net\NetworkInformation\SystemIPInterfaceProperties.cs (2)
56if (ipAdapterAddresses.dhcpv4Server.address != IntPtr.Zero) 58if (ipAdapterAddresses.dhcpv6Server.address != IntPtr.Zero)
net\System\Net\NetworkInformation\SystemIPv4InterfaceProperties.cs (1)
28haveWins = (ipAdapterAddresses.firstWinsServerAddress != IntPtr.Zero);
net\System\Net\NetworkInformation\SystemNetworkInterface.cs (3)
90family, (uint)flags, IntPtr.Zero, SafeLocalFree.Zero, ref bufferSize); 97family, (uint)flags, IntPtr.Zero, buffer, ref bufferSize); 103while (ptr != IntPtr.Zero) {
net\System\Net\NetworkInformation\SystemUnicastIPAddressInformation.cs (1)
136while (ptr != IntPtr.Zero) {
net\System\Net\NetworkInformation\TeredoHelper.cs (1)
87out table, helper.onStabilizedDelegate, IntPtr.Zero, out helper.cancelHandle);
net\System\Net\NetworkInformation\UnSafeNetInfoNativemethods.cs (3)
141while (ptr != IntPtr.Zero) { 155while (ptr != IntPtr.Zero) { 539optionsData = IntPtr.Zero;
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
141if (pinnedBuffer != IntPtr.Zero) {
net\System\Net\Sockets\_DynamicWinsockMethods.cs (3)
113IntPtr ptr = IntPtr.Zero; 127IntPtr.Zero, 128IntPtr.Zero);
net\System\Net\Sockets\Socket.cs (48)
1350IntPtr.Zero); 1459!UnsafeNclNativeMethods.OSSOCK.TransmitFile_Blocking2(m_Handle.DangerousGetHandle(), IntPtr.Zero, 0, 0, SafeNativeOverlapped.Zero, asyncResult.TransmitFileBuffers, flags)) 1886IntPtr.Zero ); 2008IntPtr.Zero, 2009IntPtr.Zero) == SocketError.SocketError) 2206IntPtr.Zero); 2259IntPtr.Zero); 2573IntPtr.Zero); 2650IntPtr.Zero); 2888IntPtr.Zero, 2889IntPtr.Zero, 2890IntPtr.Zero, 2891IntPtr.Zero); 3284if (!DisconnectEx_Blocking(m_Handle.DangerousGetHandle(), IntPtr.Zero, (int) (reuseSocket ? TransmitFileOptions.ReuseSocket : 0), 0)) 3530IntPtr.Zero); 3645result = UnsafeNclNativeMethods.OSSOCK.TransmitFile2(m_Handle,IntPtr.Zero,0,0,asyncResult.OverlappedHandle,asyncResult.TransmitFileBuffers,flags); 3764IntPtr.Zero); 4036IntPtr.Zero); 4276IntPtr.Zero); 4392IntPtr.Zero); 4595IntPtr.Zero); 4856IntPtr.Zero ); 5998IntPtr.Zero, 6014IntPtr.Zero, 6188IntPtr.Zero, 6189IntPtr.Zero, 6190IntPtr.Zero, 6191IntPtr.Zero); 6926IntPtr.Zero, 7012IntPtr.Zero); 7242IntPtr.Zero); 7469errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(m_Handle, IntPtr.Zero, AsyncEventBits.FdNone); 7729(e.m_PtrSingleBuffer != IntPtr.Zero) ? e.m_PtrSingleBuffer : e.m_PtrAcceptBuffer, 7730(e.m_PtrSingleBuffer != IntPtr.Zero) ? e.Count - e.m_AcceptAddressBufferCount : 0, 8001IntPtr.Zero); 8011IntPtr.Zero); 8092IntPtr.Zero); 8103IntPtr.Zero); 8181IntPtr.Zero); 8243IntPtr.Zero); 8253IntPtr.Zero); 8396IntPtr.Zero); 8407IntPtr.Zero); 9524m_PtrAcceptBuffer = IntPtr.Zero; 9538m_PtrSingleBuffer = IntPtr.Zero; 9539m_PtrAcceptBuffer = IntPtr.Zero; 9553m_PtrSingleBuffer = IntPtr.Zero; 9816m_PtrSingleBuffer != IntPtr.Zero ? m_PtrSingleBuffer : m_PtrAcceptBuffer,
net\System\Net\UnsafeNativeMethods.cs (9)
1709IntPtr.Zero, 1711IntPtr.Zero, 3175IntPtr address = request->Address.pRemoteAddress != null ? (IntPtr) (pMemoryBlob - (byte*) originalAddress + (byte*) request->Address.pRemoteAddress) : IntPtr.Zero; 3203IntPtr address = request->Address.pLocalAddress != null ? (IntPtr) (pMemoryBlob - (byte*) originalAddress + (byte*) request->Address.pLocalAddress) : IntPtr.Zero; 3279if (address != IntPtr.Zero) 3374IntPtr bstr = IntPtr.Zero; 3386if (bstr != IntPtr.Zero) 3434IntPtr primaryWindow = IntPtr.Zero; 3438if (GetGUIThreadInfo(0, ref info) != 0 && info.hwndActive != IntPtr.Zero)
net\System\Net\WebSockets\WebSocketBuffer.cs (6)
385if (bufferData == IntPtr.Zero) 415if (bufferData == IntPtr.Zero) 479if (bufferData == IntPtr.Zero) 529bufferData = IntPtr.Zero; 588Contract.Assert(pBuffer != IntPtr.Zero, "'pBuffer' MUST NOT be IntPtr.Zero."); 626Contract.Assert(pBuffer != IntPtr.Zero, "'pBuffer' MUST NOT be NULL.");
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (2)
535IntPtr.Zero); 957return IntPtr.Zero;
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (20)
381IntPtr.Zero, 383IntPtr.Zero, 450IntPtr.Zero, 452IntPtr.Zero, 505IntPtr.Zero, 506IntPtr.Zero, 507IntPtr.Zero); 551IntPtr.Zero, 552IntPtr.Zero, 585Contract.Assert(webSocketPtr != IntPtr.Zero, "'webSocketPtr' MUST NOT be IntPtr.Zero."); 604errorCode = WebSocketSend_Raw(webSocket.SessionHandle, bufferType, ref buffer, IntPtr.Zero); 628errorCode = WebSocketSendWithoutBody_Raw(webSocket.SessionHandle, bufferType, IntPtr.Zero, IntPtr.Zero); 651errorCode = WebSocketReceive_Raw(webSocket.SessionHandle, IntPtr.Zero, IntPtr.Zero); 681actionContext = IntPtr.Zero; 720Contract.Assert(actionContext != IntPtr.Zero, "'actionContext' MUST NOT be IntPtr.Zero."); 792Contract.Assert(httpHeaderPtr != IntPtr.Zero, "'currentHttpHeaderPtr' MUST NOT be IntPtr.Zero."); 799if (httpHeaderNamePtr != IntPtr.Zero) 839Contract.Assert(nativeHeadersPtr != IntPtr.Zero || nativeHeaderCount == 0,
net\System\URI.cs (1)
269IntPtr.Zero,
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (3)
350handle = IntPtr.Zero; 458if (IntPtr.Zero == entryPoint) 534this.handle = IntPtr.Zero;
security\system\security\cryptography\cryptoapi.cs (63)
1100rgpChain = IntPtr.Zero; 1102rgpLowerQualityChainContext = IntPtr.Zero; 1122pCertContext = IntPtr.Zero; 1125pRevocationInfo = IntPtr.Zero; 1126pIssuanceUsage = IntPtr.Zero; 1127pApplicationUsage = IntPtr.Zero; 1128pwszExtendedErrorInfo = IntPtr.Zero; 1155pvExtraPolicyPara = IntPtr.Zero; 1167lChainIndex = IntPtr.Zero; 1168lElementIndex = IntPtr.Zero; 1169pvExtraPolicyStatus = IntPtr.Zero; 1332rgpElement = IntPtr.Zero; 1333pTrustListInfo = IntPtr.Zero; 1409hCryptProv = IntPtr.Zero; 1514hCryptProv = IntPtr.Zero; 1516pvEncryptionAuxInfo = IntPtr.Zero; 1518rgpRecipients = IntPtr.Zero; 1519rgCmsRecipients = IntPtr.Zero; 1521rgCertEncoded = IntPtr.Zero; 1523rgCrlEncoded = IntPtr.Zero; 1525rgAttrCertEncoded = IntPtr.Zero; 1527rgUnprotectedAttr = IntPtr.Zero; 1552hCryptProv = IntPtr.Zero; 1554pKeyAgree = IntPtr.Zero; 1615hCryptProv = IntPtr.Zero; 1618pvSigner = IntPtr.Zero; 1641rgSigners = IntPtr.Zero; 1643rgCertEncoded = IntPtr.Zero; 1645rgCrlEncoded = IntPtr.Zero; 1647rgAttrCertEncoded = IntPtr.Zero; 1676pCertInfo = IntPtr.Zero; 1677hCryptProv = IntPtr.Zero; 1680pvHashAuxInfo = IntPtr.Zero; 1682rgAuthAttr = IntPtr.Zero; 1684rgUnauthAttr = IntPtr.Zero; 1687pvHashEncryptionAuxInfo = IntPtr.Zero; 1692if (hCryptProv != IntPtr.Zero) { 1696if (SignerId.Value.KeyId.pbData != IntPtr.Zero) { 1700if (rgAuthAttr != IntPtr.Zero) { 1703if (rgUnauthAttr != IntPtr.Zero) { 3053if (pwszContainer != IntPtr.Zero) { 3058if (pwszProvider != IntPtr.Zero) { 3078if (pvKey == IntPtr.Zero) 3086if (pv != IntPtr.Zero) 3111if (pv != IntPtr.Zero) 3141IntPtr.Zero, 3153IntPtr.Zero, 3191IntPtr.Zero, 3203IntPtr.Zero, 3312if (pvData == IntPtr.Zero) 3338if (pvData == IntPtr.Zero) 3388if (pCertContext == IntPtr.Zero) 3420if (pPrevCertContext == IntPtr.Zero) { 3427if (handle == IntPtr.Zero) { 3665IntPtr pEnumContext = CAPI.CertEnumCertificatesInStore(safeCertStoreHandle, IntPtr.Zero); 3666while (pEnumContext != IntPtr.Zero) { 3955SafeLocalAllocHandle invalidHandle = new SafeLocalAllocHandle(IntPtr.Zero); 3975return LocalFree(handle) == IntPtr.Zero; 3989SafeCryptProvHandle invalidHandle = new SafeCryptProvHandle(IntPtr.Zero); 4023SafeCertContextHandle invalidHandle = new SafeCertContextHandle(IntPtr.Zero); 4060SafeCertStoreHandle invalidHandle = new SafeCertStoreHandle(IntPtr.Zero); 4093SafeCryptMsgHandle invalidHandle = new SafeCryptMsgHandle(IntPtr.Zero); 4136SafeX509ChainHandle invalidHandle = new SafeX509ChainHandle(IntPtr.Zero);
security\system\security\cryptography\x509\x500Name.cs (5)
143IntPtr.Zero, 144IntPtr.Zero, 146IntPtr.Zero)) 154IntPtr.Zero, 157IntPtr.Zero))
security\system\security\cryptography\x509\x509certificate2.cs (14)
140IntPtr pszStructType = IntPtr.Zero; 977if (pAltName[i] != IntPtr.Zero) { 1145IntPtr.Zero); 1332IntPtr.Zero, 1334IntPtr.Zero, 1335IntPtr.Zero, 1336IntPtr.Zero, 1337IntPtr.Zero)) 1357IntPtr.Zero, 1359IntPtr.Zero, 1360IntPtr.Zero, 1361IntPtr.Zero, 1362IntPtr.Zero)) 1398keyProvInfo.rgProvParam = IntPtr.Zero;
security\system\security\cryptography\x509\x509certificate2collection.cs (19)
405IntPtr pvFindPara = IntPtr.Zero; 594IntPtr.Zero, 663IntPtr.Zero); 822IntPtr pV1Template = IntPtr.Zero; 823IntPtr pV2Template = IntPtr.Zero; 835if (pV1Template == IntPtr.Zero && pV2Template == IntPtr.Zero) 838if (pV1Template != IntPtr.Zero) { 858if (pV2Template != IntPtr.Zero) { 939if (pExtension == IntPtr.Zero) 981if (pExtension == IntPtr.Zero) 1080IntPtr.Zero, 1082IntPtr.Zero, 1084IntPtr.Zero, 1085IntPtr.Zero)) 1118IntPtr.Zero, 1120IntPtr.Zero, 1122IntPtr.Zero, 1123IntPtr.Zero))
security\system\security\cryptography\x509\x509chain.cs (2)
113if (chainContext == IntPtr.Zero) 397IntPtr.Zero,
security\system\security\cryptography\x509\x509chainelement.cs (1)
33if (chainElement.pwszExtendedErrorInfo == IntPtr.Zero)
security\system\security\cryptography\x509\x509extension.cs (4)
32if (extension.Value.pbData != IntPtr.Zero) 139if (pKeyUsage.pbData != IntPtr.Zero) 536IntPtr.Zero, // hCryptProv 551IntPtr.Zero, // hCryptProv
security\system\security\cryptography\x509\x509store.cs (3)
114if (storeHandle == IntPtr.Zero) 158IntPtr.Zero, 173IntPtr.Zero);
security\system\security\cryptography\x509\x509utils.cs (7)
356IntPtr.Zero, 498IntPtr pOid = IntPtr.Zero; 524IntPtr pEnumContext = CAPI.CertEnumCertificatesInStore(safeCertStoreHandle, IntPtr.Zero); 525while (pEnumContext != IntPtr.Zero) { 576if (pdwErrorStatus != IntPtr.Zero) 595IntPtr.Zero, 600IntPtr.Zero);
services\io\system\io\FileSystemWatcher.cs (1)
988new SafeFileHandle(IntPtr.Zero, false) // file with attributes to copy
services\monitoring\system\diagnosticts\CounterSampleCalculator.cs (1)
236if (SafeNativeMethods.LoadLibrary(perfcounterPath) == IntPtr.Zero) {
services\monitoring\system\diagnosticts\EventLogInternal.cs (2)
845hModule = SafeLibraryHandle.LoadLibraryEx(dllName, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE); 850hModule = SafeLibraryHandle.LoadLibraryEx(dllName, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_AS_DATAFILE);
services\monitoring\system\diagnosticts\FileVersionInfo.cs (4)
327IntPtr memRef = IntPtr.Zero; 352IntPtr memRef = IntPtr.Zero; 357if (memRef != IntPtr.Zero) { 367IntPtr memRef = IntPtr.Zero;
services\monitoring\system\diagnosticts\Process.cs (9)
134private static SafeFileHandle InvalidPipeHandle = new SafeFileHandle(IntPtr.Zero, false); 953responding = NativeMethods.SendMessageTimeout(new HandleRef(this, mainWindow), NativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, NativeMethods.SMTO_ABORTIFHUNG, 5000, out result) != (IntPtr)0; 1244NativeMethods.PostMessage(new HandleRef(this, mainWindowHandle), NativeMethods.WM_CLOSE, IntPtr.Zero, IntPtr.Zero); 1481NativeMethods.AdjustTokenPrivileges(new HandleRef(null, hToken), false, tkp, 0, IntPtr.Zero, IntPtr.Zero); 2067IntPtr password = IntPtr.Zero; 2107if( password != IntPtr.Zero) {
services\monitoring\system\diagnosticts\ProcessManager.cs (6)
39NativeMethods.EnumWindows(callback, IntPtr.Zero); 105IntPtr tokenHandle = IntPtr.Zero; 120NativeMethods.AdjustTokenPrivileges(new HandleRef(null,tokenHandle), false, tp, 0, IntPtr.Zero, IntPtr.Zero); 123if( tokenHandle != IntPtr.Zero) { 1166if( pi.NamePtr == IntPtr.Zero) {
services\monitoring\system\diagnosticts\ProcessThread.cs (1)
360if (NativeMethods.SetThreadAffinityMask(threadHandle, new HandleRef(this, value)) == IntPtr.Zero) {
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (2)
1564out securityDescriptorPointer, IntPtr.Zero)) 1623if (NativeMethods.VirtualQuery(fileViewAddress, ref meminfo, (IntPtr) sizeof(NativeMethods.MEMORY_BASIC_INFORMATION)) == IntPtr.Zero)
sys\system\io\ports\InternalResources.cs (1)
40IntPtr.Zero, (uint) errorCode, 0, sb, sb.Capacity, null);
sys\system\io\ports\SerialStream.cs (9)
657IntPtr.Zero, // no security attributes 660IntPtr.Zero // hTemplate must be NULL for comm devices 1441Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, asyncResult); 1496Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, asyncResult); 1554r = UnsafeNativeMethods.ReadFile(_handle, p + offset, count, IntPtr.Zero, overlapped); 1556r = UnsafeNativeMethods.ReadFile(_handle, p + offset, count, out numBytesRead, IntPtr.Zero); 1604r = UnsafeNativeMethods.WriteFile(_handle, p + offset, count, IntPtr.Zero, overlapped); 1606r = UnsafeNativeMethods.WriteFile(_handle, p + offset, count, out numBytesWritten, IntPtr.Zero); 1817if (UnsafeNativeMethods.ClearCommError(handle, ref errors, IntPtr.Zero) == false) {
sys\system\Media\SoundPlayer.cs (6)
279UnsafeNativeMethods.PlaySound(localPath, IntPtr.Zero, NativeMethods.SND_NODEFAULT | flags); 290UnsafeNativeMethods.PlaySound(streamData, IntPtr.Zero, NativeMethods.SND_MEMORY | NativeMethods.SND_NODEFAULT | flags); 457UnsafeNativeMethods.PlaySound((byte[]) null, IntPtr.Zero, NativeMethods.SND_PURGE); 572IntPtr hMIO = UnsafeNativeMethods.mmioOpen(fileName, IntPtr.Zero, NativeMethods.MMIO_READ | NativeMethods.MMIO_ALLOCBUF); 574if (hMIO == IntPtr.Zero) 617if (hMIO != IntPtr.Zero)
System.Activities.Presentation (10)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
71return IntPtr.Zero;
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (3)
60if (ownerHwnd == IntPtr.Zero) 158if (IntPtr.Zero != this.ParentWindowHwnd) 181return IntPtr.Zero;
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemImageConverter.cs (1)
32return Imaging.CreateBitmapSourceFromHBitmap(hBitmap, IntPtr.Zero, Int32Rect.Empty, sizeOptions);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (2)
406IntPtr dc = GetDC(IntPtr.Zero); 419ReleaseDC(IntPtr.Zero, dc);
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (2)
78Win32Interop.SendMessage(hwnd, Win32Interop.WM_SETICON, new IntPtr(Win32Interop.ICON_SMALL), IntPtr.Zero); 79Win32Interop.SendMessage(hwnd, Win32Interop.WM_SETICON, new IntPtr(Win32Interop.ICON_BIG), IntPtr.Zero);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
199IntPtr hWND = IntPtr.Zero;
System.Configuration (24)
Microsoft\Win32\SafeCryptContextHandle.cs (1)
28if (handle != IntPtr.Zero) {
Microsoft\Win32\SafeNativeMemoryHandle.cs (2)
39if (handle != IntPtr.Zero) { 44handle = IntPtr.Zero;
System\Configuration\ClientConfigPaths.cs (1)
118while (((length = UnsafeNativeMethods.GetModuleFileName(new HandleRef(null, IntPtr.Zero), sb, sb.Capacity)) == sb.Capacity)
System\Configuration\ClientConfigurationHost.cs (1)
494return WindowsIdentity.Impersonate(IntPtr.Zero);
System\Configuration\CRYPTPROTECT_PROMPTSTRUCT.cs (1)
29hwndApp = IntPtr.Zero;
System\Configuration\DATA_BLOB.cs (2)
27if (pbData != IntPtr.Zero) 30pbData = IntPtr.Zero;
System\Configuration\DPAPIProtectedConfigurationProvider.cs (16)
78inputData.pbData = entData.pbData = outputData.pbData = IntPtr.Zero; 104IntPtr.Zero, ref prompt, 108if (!success || outputData.pbData == IntPtr.Zero) { 109outputData.pbData = IntPtr.Zero; 118outputData.pbData = IntPtr.Zero; 122entData.pbData = IntPtr.Zero; 126inputData.pbData = IntPtr.Zero; 144inputData.pbData = entData.pbData = outputData.pbData = IntPtr.Zero; 169success = UnsafeNativeMethods.CryptUnprotectData(ref inputData, IntPtr.Zero, 170ref entData, IntPtr.Zero, 175if (!success || outputData.pbData == IntPtr.Zero) { 176outputData.pbData = IntPtr.Zero; 185outputData.pbData = IntPtr.Zero; 189entData.pbData = IntPtr.Zero; 193inputData.pbData = IntPtr.Zero; 252cps.hwndApp = IntPtr.Zero;
System.Core (145)
Microsoft\Win32\SafeHandles\BCryptSafeHandles.cs (2)
54Contract.Requires(value != IntPtr.Zero); 69if (m_hashObject != IntPtr.Zero) {
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (8)
113Debug.Assert(m_csp == IntPtr.Zero); 122if (CryptContextAddRef(value, IntPtr.Zero, 0)) { 170if (m_csp != IntPtr.Zero) { 207handle.SetHandle(IntPtr.Zero); 265handle.SetHandle(IntPtr.Zero); 299if (!CapiNative.UnsafeNativeMethods.CryptDuplicateKey(this, IntPtr.Zero, 0, out duplicate)) { 304if (duplicate != null && !duplicate.IsInvalid && ParentCsp != IntPtr.Zero) { 392if (!CryptContextAddRef(this, IntPtr.Zero, 0)) {
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (2)
418Contract.Requires(newHandleValue != IntPtr.Zero); 421Contract.Assert(handle == IntPtr.Zero);
Microsoft\Win32\SafeHandles\SafeMemoryMappedViewHandle.cs (1)
49handle = IntPtr.Zero;
Microsoft\Win32\SafeHandles\SafePerfProviderHandle.cs (2)
23if (Interlocked.Exchange(ref handle, IntPtr.Zero) != IntPtr.Zero) {
Microsoft\Win32\UnsafeNativeMethods.cs (1)
37internal static readonly IntPtr NULL = IntPtr.Zero;
System\Diagnostics\Eventing\Reader\CoTaskMemSafeHandle.cs (3)
31: base(IntPtr.Zero, true) { 45return IsClosed || handle == IntPtr.Zero; 51handle = IntPtr.Zero;
System\Diagnostics\Eventing\Reader\CoTaskMemUnicodeSafeHandle.cs (4)
31: base(IntPtr.Zero, true) { 35: base(IntPtr.Zero, ownsHandle) { 50return IsClosed || handle == IntPtr.Zero; 56handle = IntPtr.Zero;
System\Diagnostics\Eventing\Reader\EventLogHandle.cs (4)
33: base(IntPtr.Zero, true) { 37: base(IntPtr.Zero, ownsHandle) { 43return IsClosed || handle == IntPtr.Zero; 49handle = IntPtr.Zero;
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (7)
140if (eventsBuffer[i] != IntPtr.Zero) { 142eventsBuffer[i] = IntPtr.Zero; 184IntPtr.Zero, 185IntPtr.Zero, 264this.eventsBuffer[i] = IntPtr.Zero; // user is responsible for calling Dispose(). 284if (eventsBuffer[i] != IntPtr.Zero) { 286eventsBuffer[i] = IntPtr.Zero;
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (56)
407IntPtr buffer = IntPtr.Zero; 413bool status = UnsafeNativeMethods.EvtGetEventInfo(handle, enumType, 0, IntPtr.Zero, out bufferNeeded); 432if (buffer != IntPtr.Zero) 439IntPtr buffer = IntPtr.Zero; 442bool status = UnsafeNativeMethods.EvtGetQueryInfo(handle, enumType, 0, IntPtr.Zero, ref bufferNeeded); 458if (buffer != IntPtr.Zero) Marshal.FreeHGlobal(buffer); 464IntPtr buffer = IntPtr.Zero; 470bool status = UnsafeNativeMethods.EvtGetPublisherMetadataProperty(pmHandle, thePropertyId, 0, 0, IntPtr.Zero, out bufferNeeded); 486if (buffer != IntPtr.Zero) Marshal.FreeHGlobal(buffer); 493IntPtr buffer = IntPtr.Zero; 496bool status = UnsafeNativeMethods.EvtGetPublisherMetadataProperty(pmHandle, thePropertyId, 0, 0, IntPtr.Zero, out bufferNeeded); 519if (buffer != IntPtr.Zero) Marshal.FreeHGlobal(buffer); 577IntPtr buffer = IntPtr.Zero; 581bool status = UnsafeNativeMethods.EvtGetObjectArrayProperty(objArrayHandle, thePropertyId, index, 0, 0, IntPtr.Zero, out bufferNeeded); 598if (buffer != IntPtr.Zero) Marshal.FreeHGlobal(buffer); 604IntPtr buffer = IntPtr.Zero; 608bool status = UnsafeNativeMethods.EvtGetEventMetadataProperty(handle, enumType, 0, 0, IntPtr.Zero, out bufferNeeded); 624if (buffer != IntPtr.Zero) 631IntPtr buffer = IntPtr.Zero; 638bool status = UnsafeNativeMethods.EvtGetChannelConfigProperty(handle, enumType, 0, 0, IntPtr.Zero, out bufferNeeded); 661if (buffer != IntPtr.Zero) 793IntPtr buffer = IntPtr.Zero; 797bool status = UnsafeNativeMethods.EvtGetLogInfo(handle, enumType, 0, IntPtr.Zero, out bufferNeeded); 813if (buffer != IntPtr.Zero) 820IntPtr buffer = IntPtr.Zero; 821IntPtr pointer = IntPtr.Zero; 828bool status = UnsafeNativeMethods.EvtRender(contextHandle, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount); 908if (buffer != IntPtr.Zero) 917IntPtr buffer = IntPtr.Zero; 918IntPtr pointer = IntPtr.Zero; 926bool status = UnsafeNativeMethods.EvtRender(contextHandle, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount); 951if (buffer != IntPtr.Zero) 1012IntPtr buffer = IntPtr.Zero; 1017bool status = UnsafeNativeMethods.EvtFormatMessageBuffer(pmHandle, eventHandle, 0, 0, IntPtr.Zero, flag, 0, IntPtr.Zero, out bufferNeeded); 1034status = UnsafeNativeMethods.EvtFormatMessageBuffer(pmHandle, eventHandle, 0, 0, IntPtr.Zero, flag, bufferNeeded, buffer, out bufferNeeded); 1063if (buffer != IntPtr.Zero) 1070IntPtr buffer = IntPtr.Zero; 1076bool status = UnsafeNativeMethods.EvtRender(EventLogHandle.Zero, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount); 1092if (buffer != IntPtr.Zero) 1193return (val.SidVal == IntPtr.Zero) ? null : new SecurityIdentifier(val.SidVal); 1195return (val.GuidReference == IntPtr.Zero) ? Guid.Empty : Marshal.PtrToStructure(val.GuidReference, typeof(Guid)); 1210if (val.Reference == IntPtr.Zero) return new Byte[0]; 1215if (val.Reference == IntPtr.Zero) return new Int16[0]; 1220if (val.Reference == IntPtr.Zero) return new Int32[0]; 1225if (val.Reference == IntPtr.Zero) return new Int64[0]; 1230if (val.Reference == IntPtr.Zero) return new Single[0]; 1235if (val.Reference == IntPtr.Zero) return new Double[0]; 1281if (val.StringVal == IntPtr.Zero) 1289if (val.AnsiString == IntPtr.Zero) 1298if (val.Handle == IntPtr.Zero) 1308if (ptr == IntPtr.Zero) { 1326if (ptr == IntPtr.Zero) { 1343if (ptr == IntPtr.Zero) { 1359if (ptr == IntPtr.Zero) { 1378if (val.Reference == IntPtr.Zero) {
System\IO\Pipes\Pipe.cs (2)
670Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, asyncResult); 1447if (_overlapped != null && _overlapped->EventHandle != IntPtr.Zero) {
System\IO\Pipes\PipeStream.cs (8)
311Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, asyncResult); 345intOverlapped->InternalLow = IntPtr.Zero; 530Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, asyncResult); 640r = UnsafeNativeMethods.ReadFile(handle, p + offset, count, IntPtr.Zero, overlapped); 643r = UnsafeNativeMethods.ReadFile(handle, p + offset, count, out numBytesRead, IntPtr.Zero); 690r = UnsafeNativeMethods.WriteFile(handle, p + offset, count, IntPtr.Zero, overlapped); 693r = UnsafeNativeMethods.WriteFile(handle, p + offset, count, out numBytesWritten, IntPtr.Zero); 1308if (_overlapped != null && _overlapped->EventHandle != IntPtr.Zero) {
System\Security\Cryptography\BCryptHashAlgorithm.cs (3)
119IntPtr hashObjectBuffer = IntPtr.Zero; 142IntPtr.Zero, 152if (hashObjectBuffer != IntPtr.Zero) {
System\Security\Cryptography\BCryptNative.cs (8)
466using (SafeLibraryHandle bcrypt = Microsoft.Win32.UnsafeNativeMethods.LoadLibraryEx("bcrypt", IntPtr.Zero, 0)) { 605IntPtr.Zero, 618ErrorCode error = UnsafeNativeMethods.BCryptExportKey(hKey, IntPtr.Zero, blobType, null, 0, out length, 0); 626error = UnsafeNativeMethods.BCryptExportKey(hKey, IntPtr.Zero, blobType, keyBlob, length, out length, 0); 654IntPtr.Zero, 657IntPtr.Zero, 703IntPtr.Zero, 753IntPtr.Zero,
System\Security\Cryptography\CapiNative.cs (7)
651IntPtr buffer = IntPtr.Zero; 688if (buffer != IntPtr.Zero) { 925if (pvKey == IntPtr.Zero) { 933if (pv != IntPtr.Zero) { 963if (pv != IntPtr.Zero) { 1003return LocalFree(handle) == IntPtr.Zero; 1014get { return new SafeLocalAllocHandle(IntPtr.Zero); }
System\Security\Cryptography\CngKey.cs (1)
818if (creationParameters.ParentWindowHandle != IntPtr.Zero) {
System\Security\Cryptography\NCryptNative.cs (19)
645return UnsafeNativeMethods.NCryptDecrypt(hKey, pbInput, cbInput, IntPtr.Zero, pbOutput, cbOutput, out pcbResult, dwFlags); 743return UnsafeNativeMethods.NCryptEncrypt(hKey, pbInput, cbInput, IntPtr.Zero, pbOutput, cbOutput, out pcbResult, dwFlags); 925using (SafeLibraryHandle ncrypt = Microsoft.Win32.UnsafeNativeMethods.LoadLibraryEx("ncrypt", IntPtr.Zero, 0)) { 1035IntPtr hashAlgorithmString = IntPtr.Zero; 1093if (hashAlgorithmString != IntPtr.Zero) { 1269IntPtr.Zero, 1271IntPtr.Zero, 1285IntPtr.Zero, 1287IntPtr.Zero, 1450IntPtr value = IntPtr.Zero; 1460return IntPtr.Zero; 1541IntPtr.Zero, 1543IntPtr.Zero, 1570IntPtr.Zero, 1778IntPtr.Zero, 1795IntPtr.Zero, 1828IntPtr.Zero, 1841IntPtr.Zero, 1894IntPtr.Zero,
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (2)
35if (signer.pwszDescription != IntPtr.Zero) { 38if (signer.pwszDescriptionUrl != IntPtr.Zero) {
System\Security\Cryptography\X509Certificates\TimestampInformation.cs (1)
34if (timestamper.pChainContext != IntPtr.Zero) {
System\Security\Cryptography\X509Certificates\X509Native.cs (3)
81IntPtr.Zero, 206Debug.Assert(context != IntPtr.Zero); 498SafeCertContextHandle invalidHandle = new SafeCertContextHandle(IntPtr.Zero);
System\Security\Cryptography\Xml\ManifestSignedXml.cs (1)
91if (signer.pChainContext != IntPtr.Zero) {
System.Data (213)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
71return IntPtr.Zero;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (3)
60if (ownerHwnd == IntPtr.Zero) 158if (IntPtr.Zero != this.ParentWindowHwnd) 181return IntPtr.Zero;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemImageConverter.cs (1)
32return Imaging.CreateBitmapSourceFromHBitmap(hBitmap, IntPtr.Zero, Int32Rect.Empty, sizeOptions);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (2)
406IntPtr dc = GetDC(IntPtr.Zero); 419ReleaseDC(IntPtr.Zero, dc);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (2)
78Win32Interop.SendMessage(hwnd, Win32Interop.WM_SETICON, new IntPtr(Win32Interop.ICON_SMALL), IntPtr.Zero); 79Win32Interop.SendMessage(hwnd, Win32Interop.WM_SETICON, new IntPtr(Win32Interop.ICON_BIG), IntPtr.Zero);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
199IntPtr hWND = IntPtr.Zero;
fx\src\bid\inc\cs\bidPrivateBase.cs (11)
652NativeMethods.AddMetaText(modID, DefaultCmdSpace, CtlCmd.AddMetaText, IntPtr.Zero, metaStr, IntPtr.Zero); 839ModulePathA = IntPtr.Zero; 900ref extInfo, IntPtr.Zero, IntPtr.Zero ); 924NativeMethods.DllBidEntryPoint( ref modID, 0, IntPtr.Zero, 926IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero ); 952internal AutoInit() : base(IntPtr.Zero, true) {
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
1859static internal readonly HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero);
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (1)
1240_pMultipleTrustee = IntPtr.Zero;
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (5)
1507IntPtr cbActual = IntPtr.Zero; // Length or an indicator value 2039IntPtr cbActual = IntPtr.Zero; 2134cbActual = IntPtr.Zero; 2193IntPtr cbIndexLen = IntPtr.Zero; 2194IntPtr cbColnameLen = IntPtr.Zero;
fx\src\data\System\Data\Odbc\OdbcHandle.cs (8)
31protected OdbcHandle(ODBC32.SQL_HANDLE handleType, OdbcHandle parentHandle) : base(IntPtr.Zero, true) { 45retcode = UnsafeNativeMethods.SQLAllocHandle(handleType, IntPtr.Zero, out base.handle); 66if (IntPtr.Zero != base.handle) { 87internal OdbcHandle(OdbcStatementHandle parentHandle, ODBC32.SQL_ATTR attribute) : base(IntPtr.Zero, true) { 103if (IntPtr.Zero != base.handle) { 129return (IntPtr.Zero == base.handle); 136base.handle = IntPtr.Zero; 138if (IntPtr.Zero != handle) {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (1)
933parameterBuffer.WriteIntPtr(_preparedIntOffset, IntPtr.Zero);
fx\src\data\System\Data\OleDb\DBBindings.cs (1)
118return IntPtr.Zero;
fx\src\data\System\Data\OleDb\DBPropSet.cs (3)
30private DBPropSet() : base(IntPtr.Zero, true) { 115return (IntPtr.Zero == base.handle); 122base.handle = IntPtr.Zero;
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (1)
332internal static readonly IntPtr DBRESULTFLAG_DEFAULT = IntPtr.Zero;
fx\src\data\System\Data\OleDb\OleDbCommand.cs (2)
932hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 938hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (2)
329transactionJoin.Value.JoinTransaction(oleTxTransaction, (int) IsolationLevel.Unspecified, 0, IntPtr.Zero); 595dataReader.InitializeIRowset(rowset, ChapterHandle.DB_NULL_HCHAPTER, IntPtr.Zero);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (7)
633IntPtr affected = IntPtr.Zero; 712_rowFetchedCount = IntPtr.Zero; 1301if (IntPtr.Zero == _rowFetchedCount) { // starts at (-1 <= 0) 1349if (IntPtr.Zero == _rowHandleFetchCount) { 1548hr = irowset.GetNextRows(_chapterHandle.HChapter, /*skipCount*/IntPtr.Zero, _rowHandleFetchCount, out _rowFetchedCount, ref rowHandlesPtr); 1636_rowFetchedCount = IntPtr.Zero; 2014dataReader.InitializeIRowset(rowset, ChapterHandle.DB_NULL_HCHAPTER, IntPtr.Zero);
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (2)
42hr = transaction.StartTransaction(isolevel, 0, IntPtr.Zero, out transactionLevel); 105if (_mustComplete && (IntPtr.Zero != base.handle)) {
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (10)
60hr = GetDataSource(base.handle, IntPtr.Zero, ODB.CLSCTX_ALL, connectionString, ref ODB.IID_IDBInitialize, ref datasrcWrapper); 96IntPtr idbCreateSession = IntPtr.Zero; 141if ((0 <= hr) && (IntPtr.Zero != idbCreateSession)) { 161hr = CreateSession(idbCreateSession, IntPtr.Zero, ref ODB.IID_IDBCreateCommand, ref sessionWrapper); 169hr = CreateSession(idbCreateSession, IntPtr.Zero, ref ODB.IID_IUnknown, ref sessionWrapper); 179if (IntPtr.Zero != idbCreateSession) { 236IntPtr idbCreateCommand = IntPtr.Zero; 247if ((0 <= hresult) && (IntPtr.Zero != idbCreateCommand)) { 259if (IntPtr.Zero != idbCreateCommand) { 307hr = CreateCommand(base.handle, IntPtr.Zero, ref ODB.IID_ICommandText, ref icommandText);
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (8)
43internal PropertyInfoSet(UnsafeNativeMethods.IDBProperties idbProperties, PropertyIDSet propIDSet) : base(IntPtr.Zero, true) { 59return ((IntPtr.Zero == base.handle) && (IntPtr.Zero == this.descBuffer)); 114base.handle = IntPtr.Zero; 115if (IntPtr.Zero != ptr) { 120if (IntPtr.Zero != infoPtr) { 134this.descBuffer = IntPtr.Zero; 135if (IntPtr.Zero != ptr) {
fx\src\data\System\Data\OleDb\RowBinding.cs (3)
250if (IntPtr.Zero == ptr) { 550value = SafeNativeMethods.InterlockedExchangePointer(ptr, IntPtr.Zero); 565if (IntPtr.Zero != buffer) {
fx\src\data\System\Data\OleDb\SafeHandles.cs (15)
27private DualCoTaskMem() : base(IntPtr.Zero, true) { 28this.handle2 = IntPtr.Zero; 58internal DualCoTaskMem(UnsafeNativeMethods.IColumnsRowset icolumnsRowset, out IntPtr cOptColumns, out OleDbHResult hr) : base(IntPtr.Zero, true) { 67return (((IntPtr.Zero == base.handle)) && (IntPtr.Zero == this.handle2)); 75base.handle = IntPtr.Zero; 76if (IntPtr.Zero != ptr) { 81this.handle2 = IntPtr.Zero; 82if (IntPtr.Zero != ptr) { 113internal static readonly ChapterHandle DB_NULL_HCHAPTER = new ChapterHandle(IntPtr.Zero); 117if ((null == chapteredRowset) || (IntPtr.Zero == binding.ReadIntPtr(valueOffset))) { 125if (IntPtr.Zero == chapter) { 152_chapterHandle = IntPtr.Zero; 154if ((IntPtr.Zero != base.handle) && (IntPtr.Zero != chapter)) {
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (5)
30private DbBuffer(int initialSize, bool zeroBuffer) : base(IntPtr.Zero, true) { 39if (IntPtr.Zero == base.handle) { 55return (IntPtr.Zero == base.handle); 335base.handle = IntPtr.Zero; 336if (IntPtr.Zero != ptr) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (2)
1382int result = SafeNativeMethods.ReleaseSemaphore(_waitHandles.CreationHandle.DangerousGetHandle(), 1, IntPtr.Zero); 1600waitResult = SafeNativeMethods.ReleaseSemaphore(_waitHandles.CreationHandle.DangerousGetHandle(), 1, IntPtr.Zero);
fx\src\data\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (10)
108IntPtr tokenStruct = IntPtr.Zero; 110IntPtr sidStringBuffer = IntPtr.Zero; 130if (IntPtr.Zero == tokenStruct) { 142tokenStruct = IntPtr.Zero; // protect against LocalAlloc throwing an exception 145if (IntPtr.Zero == tokenStruct) { 167if (IntPtr.Zero == sidStringBuffer) { 183if (IntPtr.Zero != tokenStruct) { 185tokenStruct = IntPtr.Zero; 187if (IntPtr.Zero != sidStringBuffer) { 189sidStringBuffer = IntPtr.Zero;
fx\src\data\System\Data\ProviderBase\WrappedIUnknown.cs (4)
28internal WrappedIUnknown() : base(IntPtr.Zero, true) { 42return (IntPtr.Zero == base.handle); 69base.handle = IntPtr.Zero; 70if (IntPtr.Zero != ptr) {
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (7)
52s_userInstanceDLLHandle = IntPtr.Zero; 60static IntPtr s_userInstanceDLLHandle = IntPtr.Zero; 68if (s_userInstanceDLLHandle==IntPtr.Zero) 75if (s_userInstanceDLLHandle == IntPtr.Zero) 78if (s_userInstanceDLLHandle != IntPtr.Zero) 121if (functionAddr == IntPtr.Zero) 162if (functionAddr == IntPtr.Zero)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (33)
1893IntPtr pMemMap = NativeMethods.MapViewOfFile(hFileMap, 0x4/*FILE_MAP_READ*/, 0, 0, IntPtr.Zero); 2340IntPtr pSecurityDescriptor = IntPtr.Zero; 2341IntPtr pUserSid = IntPtr.Zero; 2342IntPtr pAdminSid = IntPtr.Zero; 2343IntPtr pNtAuthority = IntPtr.Zero; 2348if (pNtAuthority == IntPtr.Zero) 2368if (!status || pUserSid == IntPtr.Zero) { 2385if (!status || pAdminSid == IntPtr.Zero) { 2390if (pSecurityDescriptor == IntPtr.Zero) { 2402if (pDacl == IntPtr.Zero) { 2416if (pNtAuthority != IntPtr.Zero) { 2419if (pAdminSid != IntPtr.Zero) 2421if (pUserSid != IntPtr.Zero) 2426if (pSecurityDescriptor != IntPtr.Zero) { 2430return IntPtr.Zero; 2440IntPtr hFileMap = IntPtr.Zero; 2441IntPtr pMemMap = IntPtr.Zero; 2442IntPtr pSecurityDescriptor = IntPtr.Zero; 2443IntPtr pSecurityAttributes = IntPtr.Zero; 2444IntPtr pDacl = IntPtr.Zero; 2477if ((pSecurityDescriptor == IntPtr.Zero) || (pSecurityAttributes == IntPtr.Zero)) 2491if (IntPtr.Zero == hFileMap) { 2496pMemMap = NativeMethods.MapViewOfFile(hFileMap, 0x6/*FILE_MAP_READ|FILE_MAP_WRITE*/, 0, 0, IntPtr.Zero); 2498if (IntPtr.Zero == pMemMap) { 2528if (hFileMap != IntPtr.Zero) 2531if (pSecurityAttributes != IntPtr.Zero) 2533if (pSecurityDescriptor != IntPtr.Zero) 2535if (pDacl != IntPtr.Zero) 2590if (pMemMap != IntPtr.Zero) { 2592pMemMap = IntPtr.Zero; 2594if (hMemMap != IntPtr.Zero) { 2596hMemMap = IntPtr.Zero;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (2)
366IntPtr hscp = IntPtr.Zero; 418IntPtr hscp = IntPtr.Zero;
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
195if (IntPtr.Zero != handle) { 199if (IntPtr.Zero != SafeNativeMethods.GetProcAddress(handle, "_______SQL______Process______Available@0")) { 202else if (IntPtr.Zero != SafeNativeMethods.GetProcAddress(handle, "______SQL______Process______Available")) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
613IntPtr temp = IntPtr.Zero; 621if (temp != IntPtr.Zero) { 626Debug.Assert(IntPtr.Zero == temp, "unexpected syncReadPacket without corresponding SNIPacketRelease");
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (20)
31private SNILoadHandle() : base(IntPtr.Zero, true) { 56return (IntPtr.Zero == base.handle); 61if (base.handle != IntPtr.Zero) { 66base.handle = IntPtr.Zero; 88Debug.Assert(IntPtr.Zero != key, "no key passed to read callback dispatcher?"); 89if (IntPtr.Zero != key) { 97stateObj.ReadAsyncCallback(IntPtr.Zero, packet, error); 106Debug.Assert(IntPtr.Zero != key, "no key passed to write callback dispatcher?"); 107if (IntPtr.Zero != key) { 115stateObj.WriteAsyncCallback(IntPtr.Zero, packet, error); 138: base(IntPtr.Zero, true) { 159internal SNIHandle(SNINativeMethodWrapper.ConsumerInfo myInfo, SNIHandle parent) : base(IntPtr.Zero, true) { 168return (IntPtr.Zero == base.handle); 175base.handle = IntPtr.Zero; 176if (IntPtr.Zero != ptr) { 193internal SNIPacket(SafeHandle sniHandle) : base(IntPtr.Zero, true) { 195if (IntPtr.Zero == base.handle) { 202return (IntPtr.Zero == base.handle); 209base.handle = IntPtr.Zero; 210if (IntPtr.Zero != ptr) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (15)
1941IntPtr readPacket = IntPtr.Zero; 1979Debug.Assert(IntPtr.Zero == readPacket, "unexpected readPacket without corresponding SNIPacketRelease"); 1988if (readPacket != IntPtr.Zero) { 2133IntPtr readPacket = IntPtr.Zero; 2182Debug.Assert(IntPtr.Zero == readPacket, "unexpected readPacket without corresponding SNIPacketRelease"); 2204if (readPacket != IntPtr.Zero) { 2239IntPtr readPacket = IntPtr.Zero; 2264if (readPacket != IntPtr.Zero) { 2326IntPtr syncReadPacket = IntPtr.Zero; 2349Debug.Assert(IntPtr.Zero == syncReadPacket, "unexpected syncReadPacket without corresponding SNIPacketRelease"); 2358if (syncReadPacket != IntPtr.Zero) { 2484Debug.Assert(IntPtr.Zero == packet || IntPtr.Zero != packet && source != null, "AsyncResult null on callback"); 2896IntPtr packetPointer = IntPtr.Zero; 2983Debug.Assert(packetPointer != IntPtr.Zero, "Packet added to list has an invalid pointer, can not remove from pending list");
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (16)
684oa.rootDirectory = IntPtr.Zero; 686oa.securityDescriptor = IntPtr.Zero; 767if ( !UnsafeNativeMethods.DeviceIoControl ( hFile, ioControlCode, IntPtr.Zero, 0, IntPtr.Zero, 0, out cbBytesReturned, IntPtr.Zero ) ) 869if (base.handle == IntPtr.Zero) 873base.handle = IntPtr.Zero; 888IntPtr pbBuffer = IntPtr.Zero; 896if ( pbBuffer != IntPtr.Zero ) 952base.handle = IntPtr.Zero; 972IntPtr pbBuffer = IntPtr.Zero; 984if ( pbBuffer != IntPtr.Zero ) 1018if (base.handle == IntPtr.Zero) 1022base.handle = IntPtr.Zero; 1055IntPtr pbBuffer = IntPtr.Zero; 1063if ( pbBuffer != IntPtr.Zero )
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (2)
79int cchRequiredSize = GetFullPathName(path, buffer.Capacity, buffer, IntPtr.Zero); 86cchRequiredSize = GetFullPathName(path, buffer.Capacity, buffer, IntPtr.Zero);
System.Drawing (507)
commonui\System\Drawing\Advanced\AdjustableArrowCap.cs (1)
52IntPtr nativeCap = IntPtr.Zero;
commonui\System\Drawing\Advanced\CustomLineCap.cs (5)
84IntPtr nativeLineCap = IntPtr.Zero; 87new HandleRef(fillPath, (fillPath == null) ? IntPtr.Zero : fillPath.nativePath), 88new HandleRef(strokePath, (strokePath == null) ? IntPtr.Zero : strokePath.nativePath), 103if (handle == IntPtr.Zero) 153IntPtr cloneCap = IntPtr.Zero;
commonui\System\Drawing\Advanced\EncoderParameter.cs (19)
88if (parameterValue != IntPtr.Zero) 90parameterValue = IntPtr.Zero; 105if (parameterValue == IntPtr.Zero) 127if (parameterValue == IntPtr.Zero) 146if (parameterValue == IntPtr.Zero) 165if (parameterValue == IntPtr.Zero) 186if (parameterValue == IntPtr.Zero) 208if (parameterValue == IntPtr.Zero) 232if (parameterValue == IntPtr.Zero) 255if (parameterValue == IntPtr.Zero) 272if (parameterValue == IntPtr.Zero) 295if (parameterValue == IntPtr.Zero) 316if (parameterValue == IntPtr.Zero) 337if (parameterValue == IntPtr.Zero) 367if (parameterValue == IntPtr.Zero) 396if (parameterValue == IntPtr.Zero) 429if (parameterValue == IntPtr.Zero) 474if (parameterValue == IntPtr.Zero) 518if (parameterValue == IntPtr.Zero)
commonui\System\Drawing\Advanced\EncoderParameters.cs (2)
83if (memory == IntPtr.Zero){ 104if (memory == IntPtr.Zero) {
commonui\System\Drawing\Advanced\Font.cs (13)
59Debug.Assert(this.nativeFont == IntPtr.Zero, "nativeFont already initialized, this will generate a handle leak."); 304Debug.Assert(this.nativeFont == IntPtr.Zero, "GDI+ native font already initialized, this will generate a handle leak" ); 305Debug.Assert(nativeFont != IntPtr.Zero, "nativeFont is null"); 311IntPtr nativeFamily = IntPtr.Zero; 384if( this.nativeFont == IntPtr.Zero ) 450IntPtr font = IntPtr.Zero; 465if (font == IntPtr.Zero) 489IntPtr font = IntPtr.Zero; 511IntPtr cloneFont = IntPtr.Zero; 532Debug.Assert( this.nativeFont != IntPtr.Zero, "this.nativeFont == IntPtr.Zero." ); 585if (this.nativeFont != IntPtr.Zero) { 603this.nativeFont = IntPtr.Zero; 898if (handle == IntPtr.Zero) {
commonui\System\Drawing\Advanced\FontCollection.cs (1)
29nativeFontCollection = IntPtr.Zero;
commonui\System\Drawing\Advanced\FontFamily.cs (10)
49Debug.Assert( this.nativeFamily == IntPtr.Zero, "Setting GDI+ native font family when already initialized." ); 50Debug.Assert( family != IntPtr.Zero, "Setting GDI+ native font family to null." ); 123IntPtr fontfamily = IntPtr.Zero; 124IntPtr nativeFontCollection = (fontCollection == null) ? IntPtr.Zero : fontCollection.nativeFontCollection; 163IntPtr fontfamily = IntPtr.Zero; 273if (this.nativeFamily != IntPtr.Zero) 296this.nativeFamily = IntPtr.Zero; 365IntPtr fontfamily = IntPtr.Zero; 390IntPtr fontfamily = IntPtr.Zero; 415IntPtr fontfamily = IntPtr.Zero;
commonui\System\Drawing\Advanced\Gdiplus.cs (14)
96return initToken != IntPtr.Zero; 138Debug.Assert(initToken == IntPtr.Zero, "GdiplusInitialization: Initialize should not be called more than once in the same domain!"); 2880fontCollection = IntPtr.Zero; 3211if (memory == IntPtr.Zero) 3233if (memory == IntPtr.Zero) 4083return AddFontResourceEx( fileName, /*FR_PRIVATE*/ 0x10, IntPtr.Zero); 4091return RemoveFontResourceEx(fileName, /*FR_PRIVATE*/ 0x10, IntPtr.Zero); 4142IntPtr hSaveRgn = IntPtr.Zero; 4147hTempRgn = IntPtr.Zero; 4151if (hTempRgn != IntPtr.Zero) 4162if (hRgn != IntPtr.Zero) 4351public IntPtr hbmMask = IntPtr.Zero; 4352public IntPtr hbmColor = IntPtr.Zero; 4362public IntPtr bmBits = IntPtr.Zero;
commonui\System\Drawing\Advanced\GPStream.cs (2)
75if (buffer == IntPtr.Zero) throw new OutOfMemoryException(); 204public IntPtr pwcsName = IntPtr.Zero;
commonui\System\Drawing\Advanced\GraphicsPath.cs (25)
59IntPtr nativePath = IntPtr.Zero; 97IntPtr nativePath = IntPtr.Zero; 150IntPtr nativePath = IntPtr.Zero; 183IntPtr clonePath = IntPtr.Zero; 200if (nativePath == IntPtr.Zero) 218if (nativePath != IntPtr.Zero) { 236nativePath = IntPtr.Zero; 493graphics.NativeGraphics : IntPtr.Zero), 546graphics.NativeGraphics : IntPtr.Zero), 608graphics.NativeGraphics : IntPtr.Zero), 671graphics.NativeGraphics : IntPtr.Zero), 1368new HandleRef(family, (family != null) ? family.NativeFamily : IntPtr.Zero), 1372new HandleRef(format, (format != null) ? format.nativeFormat : IntPtr.Zero)); 1391new HandleRef(family, (family != null) ? family.NativeFamily : IntPtr.Zero), 1395new HandleRef(format, (format != null) ? format.nativeFormat : IntPtr.Zero)); 1413new HandleRef(family, (family != null) ? family.NativeFamily : IntPtr.Zero), 1417new HandleRef(format, (format != null) ? format.nativeFormat : IntPtr.Zero)); 1435new HandleRef(family, (family != null) ? family.NativeFamily : IntPtr.Zero), 1439new HandleRef(format, (format != null) ? format.nativeFormat : IntPtr.Zero)); 1454if (matrix.nativeMatrix == IntPtr.Zero) 1495IntPtr nativeMatrix = IntPtr.Zero, nativePen = IntPtr.Zero; 1544new HandleRef(matrix, (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix), 1586nativeMatrix = IntPtr.Zero; 1651new HandleRef(matrix, (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix),
commonui\System\Drawing\Advanced\GraphicsPathIterator.cs (6)
41IntPtr nativeIter = IntPtr.Zero; 43int status = SafeNativeMethods.Gdip.GdipCreatePathIter(out nativeIter, new HandleRef(path, (path == null) ? IntPtr.Zero : path.nativePath)); 65if (nativeIter != IntPtr.Zero) { 83nativeIter = IntPtr.Zero; 133new HandleRef(path, (path == null) ? IntPtr.Zero : path.nativePath), out isClosed); 190new HandleRef(path, (path == null) ? IntPtr.Zero : path.nativePath));
commonui\System\Drawing\Advanced\HatchBrush.cs (3)
54IntPtr brush = IntPtr.Zero; 68Debug.Assert( nativeBrush != IntPtr.Zero, "Initializing native brush with null." ); 80IntPtr cloneBrush = IntPtr.Zero;
commonui\System\Drawing\Advanced\ImageAttributes.cs (6)
58if (handle == IntPtr.Zero) 72IntPtr newImageAttributes = IntPtr.Zero; 102if (nativeImageAttributes != IntPtr.Zero) { 120nativeImageAttributes = IntPtr.Zero; 143IntPtr clone = IntPtr.Zero; 740if(memory != IntPtr.Zero) {
commonui\System\Drawing\Advanced\ImageCodecInfoPrivate.cs (7)
21public IntPtr CodecName = IntPtr.Zero; 22public IntPtr DllName = IntPtr.Zero; 23public IntPtr FormatDescription = IntPtr.Zero; 24public IntPtr FilenameExtension = IntPtr.Zero; 25public IntPtr MimeType = IntPtr.Zero; 32public IntPtr SigPattern = IntPtr.Zero; 33public IntPtr SigMask = IntPtr.Zero;
commonui\System\Drawing\Advanced\InstalledFontCollection.cs (1)
35nativeFontCollection = IntPtr.Zero;
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (24)
43IntPtr brush = IntPtr.Zero; 70IntPtr brush = IntPtr.Zero; 108IntPtr brush = IntPtr.Zero; 148IntPtr brush = IntPtr.Zero; 189IntPtr brush = IntPtr.Zero; 237IntPtr brush = IntPtr.Zero; 264Debug.Assert( nativeBrush != IntPtr.Zero, "Initializing native brush with null." ); 275IntPtr cloneBrush = IntPtr.Zero; 420IntPtr factors = IntPtr.Zero; 421IntPtr positions = IntPtr.Zero; 442if( factors != IntPtr.Zero ){ 445if( positions != IntPtr.Zero ){ 459IntPtr factors = IntPtr.Zero; 460IntPtr positions = IntPtr.Zero; 479if( factors != IntPtr.Zero ) { 482if( positions != IntPtr.Zero ) { 575IntPtr colors = IntPtr.Zero; 576IntPtr positions = IntPtr.Zero; 607if( colors != IntPtr.Zero ) { 610if( positions != IntPtr.Zero ) { 653IntPtr colors = IntPtr.Zero; 654IntPtr positions = IntPtr.Zero; 678if( colors != IntPtr.Zero ) { 681if( positions != IntPtr.Zero ){
commonui\System\Drawing\Advanced\Matrix.cs (7)
38IntPtr matrix = IntPtr.Zero; 61IntPtr matrix = IntPtr.Zero; 91IntPtr matrix = IntPtr.Zero; 126IntPtr matrix = IntPtr.Zero; 153if (nativeMatrix != IntPtr.Zero) { 155nativeMatrix = IntPtr.Zero; 173IntPtr cloneMatrix = IntPtr.Zero;
commonui\System\Drawing\Advanced\Metafile.cs (14)
66IntPtr metafile = IntPtr.Zero; 92IntPtr metafile = IntPtr.Zero; 114IntPtr metafile = IntPtr.Zero; 138IntPtr metafile = IntPtr.Zero; 170IntPtr metafile = IntPtr.Zero; 234IntPtr metafile = IntPtr.Zero; 298IntPtr metafile = IntPtr.Zero; 361IntPtr metafile = IntPtr.Zero; 438IntPtr metafile = IntPtr.Zero; 519IntPtr metafile = IntPtr.Zero; 584IntPtr metafile = IntPtr.Zero; 650IntPtr metafile = IntPtr.Zero; 719IntPtr metafile = IntPtr.Zero; 954IntPtr hEmf = IntPtr.Zero;
commonui\System\Drawing\Advanced\PathGradientBrush.cs (23)
63IntPtr brush = IntPtr.Zero; 82if (pointsBuf != IntPtr.Zero) 123IntPtr brush = IntPtr.Zero; 142if (pointsBuf != IntPtr.Zero) 163IntPtr brush = IntPtr.Zero; 178Debug.Assert( nativeBrush != IntPtr.Zero, "Initializing native brush with null." ); 189IntPtr cloneBrush = IntPtr.Zero; 374IntPtr factors = IntPtr.Zero; 375IntPtr positions = IntPtr.Zero; 399if( factors != IntPtr.Zero ) { 402if( positions != IntPtr.Zero ) { 416IntPtr factors = IntPtr.Zero; 417IntPtr positions = IntPtr.Zero; 436if( factors != IntPtr.Zero ) { 439if( positions != IntPtr.Zero ) { 538IntPtr colors = IntPtr.Zero; 539IntPtr positions = IntPtr.Zero; 570if( colors != IntPtr.Zero ) { 573if( positions != IntPtr.Zero ) { 587IntPtr colors = IntPtr.Zero; 588IntPtr positions = IntPtr.Zero; 612if( colors != IntPtr.Zero ) { 615if( positions != IntPtr.Zero ) {
commonui\System\Drawing\Advanced\PrivateFontCollection.cs (3)
39nativeFontCollection = IntPtr.Zero; 58if (nativeFontCollection != IntPtr.Zero) { 83nativeFontCollection = IntPtr.Zero;
commonui\System\Drawing\Advanced\SafeCustomLineCapHandle.cs (4)
25: base(IntPtr.Zero, true) { 45handle = IntPtr.Zero; 53get { return handle == IntPtr.Zero; } 57return (handle == null) ? IntPtr.Zero : handle.handle;
commonui\System\Drawing\Advanced\StringFormat.cs (10)
182if (nativeFormat != IntPtr.Zero) { 200nativeFormat = IntPtr.Zero; 212IntPtr cloneFormat = IntPtr.Zero; 241Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!"); 273Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!"); 288Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!"); 304Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!"); 317Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!"); 334Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!"); 349Debug.Assert(nativeFormat != IntPtr.Zero, "NativeFormat is null!");
commonui\System\Drawing\Advanced\TextureBrush.cs (9)
81IntPtr brush = IntPtr.Zero; 119IntPtr brush = IntPtr.Zero; 161IntPtr brush = IntPtr.Zero; 216IntPtr brush = IntPtr.Zero; 220IntPtr.Zero : imageAttr.nativeImageAttributes), 271IntPtr brush = IntPtr.Zero; 275IntPtr.Zero : imageAttr.nativeImageAttributes), 294Debug.Assert( nativeBrush != IntPtr.Zero, "Initializing native brush with null." ); 305IntPtr cloneBrush = IntPtr.Zero;
commonui\System\Drawing\Bitmap.cs (16)
63IntPtr bitmap = IntPtr.Zero; 99IntPtr bitmap = IntPtr.Zero; 137IntPtr bitmap = IntPtr.Zero; 172IntPtr bitmap = IntPtr.Zero; 205IntPtr bitmap = IntPtr.Zero; 242IntPtr bitmap = IntPtr.Zero; 262IntPtr bitmap = IntPtr.Zero; 295IntPtr bitmap = IntPtr.Zero; 356IntPtr bitmap = IntPtr.Zero; 419IntPtr hBitmap = IntPtr.Zero; 442IntPtr hIcon = IntPtr.Zero; 494IntPtr dstHandle = IntPtr.Zero; 505if (status != SafeNativeMethods.Gdip.Ok || dstHandle == IntPtr.Zero) 528IntPtr dstHandle = IntPtr.Zero; 539if (status != SafeNativeMethods.Gdip.Ok || dstHandle == IntPtr.Zero) 596GraphicsUnit.Pixel, attributes, null, IntPtr.Zero);
commonui\System\Drawing\Brush.cs (4)
58Debug.Assert( brush != IntPtr.Zero, "WARNING: Assigning null to the GDI+ native brush object."); 59Debug.Assert( this.nativeBrush == IntPtr.Zero, "WARNING: Initialized GDI+ native brush object being assigned a new value."); 99if (this.nativeBrush != IntPtr.Zero) { 117this.nativeBrush = IntPtr.Zero;
commonui\System\Drawing\BufferedGraphicsContext.cs (24)
118return AllocBufferInTempManager(targetGraphics, IntPtr.Zero, targetRectangle); 120return AllocBuffer(targetGraphics, IntPtr.Zero, targetRectangle); 245IntPtr hbm = IntPtr.Zero; 255if (hbm == IntPtr.Zero) { 269IntPtr.Zero, 287IntPtr.Zero, 295if (hbm != IntPtr.Zero) { 297hbm = IntPtr.Zero; 340IntPtr palHalftone = IntPtr.Zero; 341if (hpal == IntPtr.Zero) { 394IntPtr pvbits = IntPtr.Zero; 395dib = CreateCompatibleDIB(src, IntPtr.Zero, optWidth, optHeight, ref pvbits); 440if (hdc == IntPtr.Zero) { 444IntPtr hbmRet = IntPtr.Zero; 489hbmRet = SafeNativeMethods.CreateDIBSection(new HandleRef(null, hdc), ref pbmi, NativeMethods.DIB_RGB_COLORS, ref ppvBits, IntPtr.Zero, 0); 491if ( hbmRet == IntPtr.Zero ) { 527if (oldBitmap != IntPtr.Zero && compatDC != IntPtr.Zero) 531oldBitmap = IntPtr.Zero; 533if (compatDC != IntPtr.Zero) 537compatDC = IntPtr.Zero; 547if (dib != IntPtr.Zero) 549Debug.Assert(oldBitmap == IntPtr.Zero); 553dib = IntPtr.Zero;
commonui\System\Drawing\Graphics.cs (69)
115if (gdipNativeGraphics == IntPtr.Zero) 135if( hdc == IntPtr.Zero ) 149Debug.Assert(hdc != IntPtr.Zero, "Must pass in a valid DC"); 150IntPtr nativeGraphics = IntPtr.Zero; 174Debug.Assert(hdc != IntPtr.Zero, "Must pass in a valid DC"); 175Debug.Assert(hdevice != IntPtr.Zero, "Must pass in a valid device"); 177IntPtr gdipNativeGraphics = IntPtr.Zero; 210IntPtr nativeGraphics = IntPtr.Zero; 237IntPtr gdipNativeGraphics = IntPtr.Zero; 259Debug.Assert( this.nativeGraphics != IntPtr.Zero, "this.nativeGraphics == IntPtr.Zero." ); 284IntPtr hdc = IntPtr.Zero; 339this.nativeHdc = IntPtr.Zero; 382if (this.nativeGraphics != IntPtr.Zero) 386if (this.nativeHdc != IntPtr.Zero) // avoid a handle leak. 421this.nativeGraphics = IntPtr.Zero; 920using( DeviceContext dc = DeviceContext.FromHwnd( IntPtr.Zero )){ // screen DC 2501IntPtr nativeStringFormat = (format == null) ? IntPtr.Zero : format.nativeFormat; 2527new HandleRef(stringFormat, (stringFormat == null) ? IntPtr.Zero : stringFormat.nativeFormat), 2558new HandleRef(stringFormat, (stringFormat == null) ? IntPtr.Zero : stringFormat.nativeFormat), 2594new HandleRef(stringFormat, (stringFormat == null) ? IntPtr.Zero : stringFormat.nativeFormat), 2641int status = SafeNativeMethods.Gdip.GdipGetStringFormatMeasurableCharacterRangeCount(new HandleRef(stringFormat, (stringFormat == null) ? IntPtr.Zero : stringFormat.nativeFormat) 2660new HandleRef(stringFormat, (stringFormat == null) ? IntPtr.Zero : stringFormat.nativeFormat), 3193new HandleRef(imageAttr, (imageAttr != null ? imageAttr.nativeImageAttributes : IntPtr.Zero)), 3259new HandleRef(imageAttr, (imageAttr != null ? imageAttr.nativeImageAttributes : IntPtr.Zero)), 3295DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttrs, callback, IntPtr.Zero); 3319new HandleRef(imageAttrs, (imageAttrs != null ? imageAttrs.nativeImageAttributes : IntPtr.Zero)), 3351DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttr, callback, IntPtr.Zero); 3374new HandleRef(imageAttrs, (imageAttrs != null ? imageAttrs.nativeImageAttributes : IntPtr.Zero)), 3389EnumerateMetafile(metafile, destPoint, callback, IntPtr.Zero); 3405IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3406IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3424EnumerateMetafile(metafile, destPoint, callback, IntPtr.Zero); 3440IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3441IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3459EnumerateMetafile(metafile, destRect, callback, IntPtr.Zero); 3475IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3476IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3497EnumerateMetafile(metafile, destRect, callback, IntPtr.Zero); 3513IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3514IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3533EnumerateMetafile(metafile, destPoints, callback, IntPtr.Zero); 3540EnumerateMetafile(metafile, destPoints, callback, IntPtr.Zero, null); 3555IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3556IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3579EnumerateMetafile(metafile, destPoints, callback, IntPtr.Zero); 3601IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3602IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3625EnumerateMetafile(metafile, destPoint, srcRect, srcUnit, callback, IntPtr.Zero); 3643IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3644IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3667EnumerateMetafile(metafile, destPoint, srcRect, srcUnit, callback, IntPtr.Zero); 3685IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3686IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3710EnumerateMetafile(metafile, destRect, srcRect, srcUnit, callback, IntPtr.Zero); 3728IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3729IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3754EnumerateMetafile(metafile, destRect, srcRect, srcUnit, callback, IntPtr.Zero); 3775IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3776IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3803EnumerateMetafile(metafile, destPoints, srcRect, srcUnit, callback, IntPtr.Zero); 3833IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3834IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 3865EnumerateMetafile(metafile, destPoints, srcRect, srcUnit, callback, IntPtr.Zero); 3895IntPtr mf = (metafile == null ? IntPtr.Zero : metafile.nativeImage); 3896IntPtr ia = (imageAttr == null ? IntPtr.Zero : imageAttr.nativeImageAttributes); 4576if (halftonePalette == IntPtr.Zero) { 4578if (halftonePalette == IntPtr.Zero) { 4596if (halftonePalette != IntPtr.Zero) { 4598halftonePalette = IntPtr.Zero;
commonui\System\Drawing\Icon.cs (14)
62private IntPtr handle = IntPtr.Zero; 72if (handle == IntPtr.Zero) { 283if (hIcon != IntPtr.Zero) { 303if (handle == IntPtr.Zero) { 330if (info.hbmColor != IntPtr.Zero) { 335else if (info.hbmMask != IntPtr.Zero) { 340if (info.hbmMask != IntPtr.Zero) { 384handle = IntPtr.Zero; 399if (handle != IntPtr.Zero) { 607if (iconData == null || handle != IntPtr.Zero) { 776if (handle == IntPtr.Zero) { 1004if (info.hbmColor != IntPtr.Zero) { 1048if(info.hbmColor != IntPtr.Zero) 1050if(info.hbmMask != IntPtr.Zero)
commonui\System\Drawing\Image.cs (21)
188IntPtr image = IntPtr.Zero; 258IntPtr image = IntPtr.Zero; 292IntPtr image = IntPtr.Zero; 332IntPtr cloneImage = IntPtr.Zero; 368if (nativeImage != IntPtr.Zero) { 386nativeImage = IntPtr.Zero; 605IntPtr encoderParamsMemory = IntPtr.Zero; 635if (encoderParamsMemory != IntPtr.Zero) { 694IntPtr encoderParamsMemory = IntPtr.Zero; 723if (encoderParamsMemory != IntPtr.Zero) { 742IntPtr encoder = IntPtr.Zero; 750if (encoder != IntPtr.Zero) { 767IntPtr encoder = IntPtr.Zero; 779if (encoder != IntPtr.Zero){ 1016if (memory != IntPtr.Zero) { 1048IntPtr thumbImage = IntPtr.Zero; 1087if (buffer == IntPtr.Zero) { 1215if (propdata == IntPtr.Zero) 1308if (handle == IntPtr.Zero) 1324return FromHbitmap(hbitmap, IntPtr.Zero); 1339IntPtr bitmap = IntPtr.Zero;
commonui\System\Drawing\ImageConverter.cs (1)
190if (addr == IntPtr.Zero)
commonui\System\Drawing\NativeMethods.cs (1)
19internal static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero);
commonui\System\Drawing\Pen.cs (12)
77IntPtr pen = IntPtr.Zero; 115IntPtr pen = IntPtr.Zero; 132if (nativePen == IntPtr.Zero) { 164IntPtr clonePen = IntPtr.Zero; 207if (this.nativePen != IntPtr.Zero) 226this.nativePen = IntPtr.Zero; 472IntPtr lineCap = IntPtr.Zero; 486new HandleRef(value, (value == null) ? IntPtr.Zero : value.nativeCap)); 506IntPtr lineCap = IntPtr.Zero; 520new HandleRef(value, (value == null) ? IntPtr.Zero : value.nativeCap)); 877IntPtr nativeBrush = IntPtr.Zero; 1090if (this.NativePen != IntPtr.Zero)
commonui\System\Drawing\Printing\PageSettings.cs (3)
191return GetPaperSize(IntPtr.Zero); 468if (modeHandle == IntPtr.Zero) { 554if (hdevmode == IntPtr.Zero)
commonui\System\Drawing\Printing\PrintController.cs (5)
39private SafeDeviceModeHandle() : base(IntPtr.Zero, true) { return; } 42: base(IntPtr.Zero, true) // "true" means "owns the handle" 49get { return handle == IntPtr.Zero; } 62handle = IntPtr.Zero; 69return (handle == null) ? IntPtr.Zero : handle.handle;
commonui\System\Drawing\Printing\PrinterSettings.cs (48)
82get { return DeviceCapabilities(SafeNativeMethods.DC_DUPLEX, IntPtr.Zero, 0) == 1;} 241SafeNativeMethods.EnumPrinters(SafeNativeMethods.PRINTER_ENUM_LOCAL | SafeNativeMethods.PRINTER_ENUM_CONNECTIONS, null, level, IntPtr.Zero, 0, out bufferSize, out count); 305return DeviceCapabilities(SafeNativeMethods.DC_COPIES, IntPtr.Zero, -1) != -1; 317get { return DeviceCapabilities(SafeNativeMethods.DC_ORIENTATION, IntPtr.Zero, 0);} 327get { return DeviceCapabilities(SafeNativeMethods.DC_COPIES, IntPtr.Zero, 1);} 777data.hwndOwner = IntPtr.Zero; 778data.hDevMode = IntPtr.Zero; 779data.hDevNames = IntPtr.Zero; 781data.hwndOwner = IntPtr.Zero; 782data.hDC = IntPtr.Zero; 788data.hInstance = IntPtr.Zero; 789data.lCustData = IntPtr.Zero; 790data.lpfnPrintHook = IntPtr.Zero; 791data.lpfnSetupHook = IntPtr.Zero; 794data.hPrintTemplate = IntPtr.Zero; 795data.hSetupTemplate = IntPtr.Zero; 805data.hwndOwner = IntPtr.Zero; 806data.hDevMode = IntPtr.Zero; 807data.hDevNames = IntPtr.Zero; 809data.hwndOwner = IntPtr.Zero; 810data.hDC = IntPtr.Zero; 816data.hInstance = IntPtr.Zero; 817data.lCustData = IntPtr.Zero; 818data.lpfnPrintHook = IntPtr.Zero; 819data.lpfnSetupHook = IntPtr.Zero; 822data.hPrintTemplate = IntPtr.Zero; 823data.hSetupTemplate = IntPtr.Zero; 842capability, pointerToBuffer, IntPtr.Zero); 864if (names == IntPtr.Zero) 869names = IntPtr.Zero; 887if (names == IntPtr.Zero) 892names = IntPtr.Zero; 919if (names == IntPtr.Zero) 925names = IntPtr.Zero; 943if (names == IntPtr.Zero) 949names = IntPtr.Zero; 1006int modeSize = SafeNativeMethods.DocumentProperties(NativeMethods.NullHandleRef, NativeMethods.NullHandleRef, printer, IntPtr.Zero, NativeMethods.NullHandleRef, 0); 1057return IntPtr.Zero; 1127return GetModeField(field, defaultValue, IntPtr.Zero); 1137if (modeHandle == IntPtr.Zero) { 1184int count = FastDeviceCapabilities(SafeNativeMethods.DC_PAPERNAMES, IntPtr.Zero, -1, printerName); 1191Debug.Assert(FastDeviceCapabilities(SafeNativeMethods.DC_PAPERS, IntPtr.Zero, -1, printerName) == count, 1196Debug.Assert(FastDeviceCapabilities(SafeNativeMethods.DC_PAPERSIZE, IntPtr.Zero, -1, printerName) == count, 1227int count = FastDeviceCapabilities(SafeNativeMethods.DC_BINNAMES, IntPtr.Zero, -1, printerName); 1237Debug.Assert(FastDeviceCapabilities(SafeNativeMethods.DC_BINS, IntPtr.Zero, -1, printerName) == count, 1265int count = FastDeviceCapabilities(SafeNativeMethods.DC_ENUMRESOLUTIONS, IntPtr.Zero, -1, printerName); 1315if (hdevmode == IntPtr.Zero) 1359if (hdevnames == IntPtr.Zero)
commonui\System\Drawing\PropertyItemInternal.cs (4)
19public IntPtr value = IntPtr.Zero; 36if (value != IntPtr.Zero) 39value = IntPtr.Zero; 82propcopy.value = IntPtr.Zero; // we dont actually own this memory so dont free it.
commonui\System\Drawing\Region.cs (16)
47IntPtr region = IntPtr.Zero; 66IntPtr region = IntPtr.Zero; 87IntPtr region = IntPtr.Zero; 112IntPtr region = IntPtr.Zero; 132IntPtr region = IntPtr.Zero; 158IntPtr region = IntPtr.Zero; 169if (nativeRegion == IntPtr.Zero) 185IntPtr region = IntPtr.Zero; 214if (nativeRegion != IntPtr.Zero) { 232nativeRegion = IntPtr.Zero; 345if (regionHandle == IntPtr.Zero) { 670IntPtr hrgn = IntPtr.Zero; 818new HandleRef(g, (g==null) ? IntPtr.Zero : g.NativeGraphics), 871new HandleRef(g, (g==null) ? IntPtr.Zero : g.NativeGraphics), 913new HandleRef(g, (g == null) ? IntPtr.Zero : g.NativeGraphics), 968new HandleRef(g, (g == null) ? IntPtr.Zero : g.NativeGraphics),
commonui\System\Drawing\SolidBrush.cs (4)
44IntPtr brush = IntPtr.Zero; 67Debug.Assert( nativeBrush != IntPtr.Zero, "Initializing native brush with null." ); 79IntPtr cloneBrush = IntPtr.Zero; 163if( this.NativeBrush != IntPtr.Zero ){
commonui\System\Drawing\SystemIcons.cs (1)
177IntPtr hIcon = IntPtr.Zero;
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
256if (buffer == IntPtr.Zero) throw new OutOfMemoryException();
misc\DbgUtil.cs (2)
241new HandleRef(null, IntPtr.Zero), 246new HandleRef(null, IntPtr.Zero) );
misc\DpiHelper.cs (1)
109if (hDC != IntPtr.Zero)
misc\GDI\DeviceContext.cs (15)
145if( this.hDC == IntPtr.Zero ) 164Debug.Assert( this.hDC != IntPtr.Zero, "Attempt to use deleted HDC - DC type: " + this.dcType ); 180Debug.Assert(this.hDC != IntPtr.Zero, "Cannot get initial state without a valid HDC"); 190IntPtr handleToDelete = IntPtr.Zero; 196hCurrentPen = IntPtr.Zero; 204hCurrentBrush = IntPtr.Zero; 212hCurrentBmp = IntPtr.Zero; 323Debug.Assert( hdc != IntPtr.Zero, "hdc == 0" ); 388this.hDC = IntPtr.Zero; 400this.hDC = IntPtr.Zero; 431if (this.hDC == IntPtr.Zero) 454if (this.hDC != IntPtr.Zero && this.dcType == DeviceContextType.Display) 464this.hDC = IntPtr.Zero; 620if (wr.HRegion == IntPtr.Zero) { 630Debug.Assert(clip.HRegion != IntPtr.Zero);
misc\GDI\SafeNativeMethods.cs (4)
66DbgUtil.AssertWin32(hBrush != IntPtr.Zero, "IntCreateSolidBrush(color={0}) failed.", crColor); 80DbgUtil.AssertWin32(hPen != IntPtr.Zero, "IntCreatePen(style={0}, width={1}, color=[{2}]) failed.", fnStyle, nWidth, crColor); 92DbgUtil.AssertWin32(hPen != IntPtr.Zero, "IntExtCreatePen(style={0}, width={1}, brush={2}, styleCount={3}, styles={4}) failed.", fnStyle, dwWidth, lplb, dwStyleCount, lpStyle); 106DbgUtil.AssertWin32(hRgn != IntPtr.Zero, "IntCreateRectRgn([x1={0}, y1={1}, x2={2}, y2={3}]) failed.", x1, y1, x2, y2);
misc\GDI\UnsafeNativeMethods.cs (23)
44DbgUtil.AssertWin32(hdc != IntPtr.Zero, "GetHdc([hWnd=0x{0:X8}]) failed.", hWnd); 87DbgUtil.AssertWin32(hdc != IntPtr.Zero, "CreateDC([driverName={0}], [deviceName={1}], [fileName={2}], [devMode={3}]) failed.", lpszDriverName, lpszDeviceName, lpszOutput, lpInitData.Handle); 101DbgUtil.AssertWin32(hdc != IntPtr.Zero, "CreateIC([driverName={0}], [deviceName={1}], [fileName={2}], [devMode={3}]) failed.", lpszDriverName, lpszDeviceName, lpszOutput, lpInitData.Handle); 117DbgUtil.AssertWin32(compatibleDc != IntPtr.Zero, "CreateCompatibleDC([hdc=0x{0:X8}]) failed", hDC.Handle); 191Debug.Assert(hRgnDest.Wrapper != null && hRgnDest.Handle != IntPtr.Zero, "Destination region is invalid"); 192Debug.Assert(hRgnSrc1.Wrapper != null && hRgnSrc1.Handle != IntPtr.Zero, "Source region 1 is invalid"); 193Debug.Assert(hRgnSrc2.Wrapper != null && hRgnSrc2.Handle != IntPtr.Zero, "Source region 2 is invalid"); 243DbgUtil.AssertWin32(hFont != IntPtr.Zero, "CreateFontIndirect(logFont) failed."); 288DbgUtil.AssertWin32(oldObj != IntPtr.Zero, "SelectObject(hdc=hObj=[0x{0:X8}], hObj=[0x{1:X8}]) failed.", hdc.Handle, obj.Handle); 301DbgUtil.AssertWin32(hGdiObj != IntPtr.Zero, "GetObject(hdc=[0x{0:X8}], type=[{1}]) failed.", hDC, uObjectType ); 313DbgUtil.AssertWin32(hGdiObj != IntPtr.Zero, "GetStockObject({0}) failed.", nIndex ); 387int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero ); 389IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero ); 426int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 428IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 461byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 463IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero);
misc\GDI\WindowsGraphics.cs (2)
82DeviceContext dc = DeviceContext.FromCompatibleDC(IntPtr.Zero); 120Debug.Assert( hDc != IntPtr.Zero, "null hDc" );
misc\GDI\WindowsRegion.cs (5)
78if( hRegion != IntPtr.Zero ) { 134Debug.Assert(nativeHandle == IntPtr.Zero, "nativeHandle should be null, we're leaking handle"); 148if (this.nativeHandle != IntPtr.Zero) { 155this.nativeHandle = IntPtr.Zero; 182return this.nativeHandle == IntPtr.Zero;
misc\HandleCollector.cs (2)
139if( handle == IntPtr.Zero ) 240if( handle == IntPtr.Zero )
System.IdentityModel (59)
System\IdentityModel\Claims\WindowsClaimSet.cs (2)
151if (this.windowsIdentity.Token == IntPtr.Zero) 276if (windowsIdentity.Token != IntPtr.Zero)
System\IdentityModel\CryptoApi.cs (9)
201pvExtraPolicyPara = IntPtr.Zero; 215lChainIndex = IntPtr.Zero; 216lElementIndex = IntPtr.Zero; 217pvExtraPolicyStatus = IntPtr.Zero; 235rgpChain = IntPtr.Zero; 237rgpLowerQualityChainContext = IntPtr.Zero; 361get { return new SafeCertStoreHandle(IntPtr.Zero); } 388get { return new SafeCertContextHandle(IntPtr.Zero); } 414get { return new SafeCertChainHandle(IntPtr.Zero); }
System\IdentityModel\Privilege.cs (2)
140IntPtr.Zero, 218if (!NativeMethods.SetThreadToken(IntPtr.Zero, threadToken))
System\IdentityModel\RijndaelCryptoServiceProvider.cs (2)
289ThrowIfFalse(SR.AESCryptEncryptFailed, NativeMethods.CryptEncrypt(keyHandle, IntPtr.Zero, final, 0, tempBufferPtr, ref dwCount, tempBuffer.Length - tempOffset)); 318ThrowIfFalse(SR.AESCryptDecryptFailed, NativeMethods.CryptDecrypt(keyHandle, IntPtr.Zero, bFinal, 0, outputBufferPtr, ref dwCount));
System\IdentityModel\SafeCryptHandles.cs (5)
23DiagnosticUtility.DebugAssert(handle == IntPtr.Zero, "SafeProvHandle constructor can only be called with IntPtr.Zero."); 29get { return new SafeProvHandle(IntPtr.Zero); } 50DiagnosticUtility.DebugAssert(handle == IntPtr.Zero, "SafeKeyHandle constructor can only be called with IntPtr.Zero."); 56get { return new SafeKeyHandle(IntPtr.Zero); } 99b = NativeMethods.CryptImportKey(provHandle, pbDataPtr, (uint)cbData, IntPtr.Zero, 0, out keyHandle);
System\IdentityModel\SecurityUtils.cs (4)
305if (collection == null || certificate == null || certificate.Handle == IntPtr.Zero) 312if (collection[i].Handle == IntPtr.Zero) 526return certificate != null && certificate.Handle != IntPtr.Zero; 666if (token != IntPtr.Zero)
System\IdentityModel\Selectors\X509CertificateChain.cs (7)
81if (certificate.Handle == IntPtr.Zero) 192IntPtr.Zero, 217if ((collection == null || collection.Count <= 0) && certContext.hCertStore == IntPtr.Zero) 227IntPtr.Zero, 282if (intermediatesCertContext.hCertStore != IntPtr.Zero) 330IntPtr pOid = IntPtr.Zero; 331IntPtr pNullTerminator = IntPtr.Zero;
System\IdentityModel\Selectors\X509CertificateStore.cs (1)
91IntPtr.Zero,
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (4)
166IntPtr dummy = IntPtr.Zero; 233pInfo->UserPrincipalName = new UNICODE_INTPTR_STRING(0, 0, IntPtr.Zero); 234pInfo->DomainName = new UNICODE_INTPTR_STRING(0, 0, IntPtr.Zero); 253IntPtr.Zero,
System\IdentityModel\SspiHelper.cs (1)
255rootStore = phMappers = palgSupportedAlgs = certContextArray = IntPtr.Zero;
System\IdentityModel\SspiSafeHandles.cs (17)
117get { return HandleHi == IntPtr.Zero && HandleLo == IntPtr.Zero; } 123HandleHi = IntPtr.Zero; 124HandleLo = IntPtr.Zero; 144: base(IntPtr.Zero, true) 241inUnmanagedBuffer[index].token = IntPtr.Zero; 260outUnmanagedBuffer[0].token = IntPtr.Zero; 521inUnmanagedBuffer[index].token = IntPtr.Zero; 541outUnmanagedBuffer[0].token = IntPtr.Zero; 867safeHandle = new SafeCloseHandle(IntPtr.Zero, false); 962: base(IntPtr.Zero, true) 1066if (copiedPtr != IntPtr.Zero) 1368DiagnosticUtility.DebugAssert(handle == IntPtr.Zero || !ownsHandle, "Unsafe to create a SafeHandle that owns a pre-existing handle before the SafeHandle was created."); 1397DiagnosticUtility.DebugAssert(handle == IntPtr.Zero, "SafeHGlobalHandle constructor can only be called with IntPtr.Zero."); 1409get { return new SafeHGlobalHandle(IntPtr.Zero); } 1467get { return new SafeLsaLogonProcessHandle(IntPtr.Zero); } 1490get { return new SafeLsaReturnBufferHandle(IntPtr.Zero); }
System\IdentityModel\SspiWrapper.cs (5)
182if (unmanagedString != IntPtr.Zero) 188if (unmanagedString != IntPtr.Zero) 224if (unmanagedString != IntPtr.Zero) 716unmanagedBuffer[i].token = IntPtr.Zero; 823retCode = NativeMethods.SspiPromptForCredentials(targetName, ref credui_Info, 0, packageName, IntPtr.Zero, out ppAuthIdentity, ref saveCredentials, 0);
System.IdentityModel.Selectors (16)
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (2)
201: base(IntPtr.Zero, true) 267return (IntPtr.Zero == base.handle);
infocard\client\System\IdentityModel\Selectors\InternalPolicyElement.cs (4)
38m_nativePtr = IntPtr.Zero; 68IDT.DebugAssert(IntPtr.Zero == m_nativePtr, "Pointer already assigned"); 106if (IntPtr.Zero != m_nativePtr) 109m_nativePtr = IntPtr.Zero;
infocard\client\System\IdentityModel\Selectors\NativeMethods.cs (1)
23if (IntPtr.Zero == procaddr)
infocard\client\System\IdentityModel\Selectors\SafeTokenHandle.cs (2)
37: base(IntPtr.Zero, true) 46return (IntPtr.Zero == base.handle);
infocard\common\managed\GlobalAllocSafeHandle.cs (2)
43private GlobalAllocSafeHandle() : base(IntPtr.Zero, true) { m_bytes = 0; } 54return (IntPtr.Zero == base.handle);
infocard\common\managed\HGlobalSafeHandle.cs (3)
55: base(IntPtr.Zero, true) 61private HGlobalSafeHandle() : base(IntPtr.Zero, true) { } 67return (IntPtr.Zero == base.handle);
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (2)
144: base(IntPtr.Zero, true) 155return (IntPtr.Zero == base.handle);
System.IO.Log (27)
System\IO\Log\CoTaskMemHandle.cs (2)
14public CoTaskMemHandle() : base(IntPtr.Zero, true) 22return IsClosed || this.handle == IntPtr.Zero;
System\IO\Log\LogManagementAsyncResult.cs (1)
171IntPtr.Zero);
System\IO\Log\LogRecordSequence.cs (3)
951IntPtr.Zero, 952IntPtr.Zero, 953IntPtr.Zero,
System\IO\Log\LogWriteRestartAreaState.cs (2)
500IntPtr.Zero, 511IntPtr.Zero,
System\IO\Log\OverlappedAsyncResult.cs (1)
166Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, this);
System\IO\Log\SafeArchiveContext.cs (2)
14public SafeArchiveContext() : base(IntPtr.Zero, true) 22return IsClosed || this.handle == IntPtr.Zero;
System\IO\Log\SafeMarshalContext.cs (2)
14public SafeMarshalContext() : base(IntPtr.Zero, true) 22return IsClosed || this.handle == IntPtr.Zero;
System\IO\Log\SafeReadContext.cs (2)
15public SafeReadContext() : base(IntPtr.Zero, true) 23return IsClosed || this.handle == IntPtr.Zero;
System\IO\Log\SmuggledIUnknown.cs (4)
13internal SmuggledIUnknown() : base(IntPtr.Zero, true) 33return (IsClosed || (IntPtr.Zero == base.handle)); 54if (base.handle != IntPtr.Zero) 57base.handle = IntPtr.Zero;
System\IO\Log\UnsafeNativeMethods.cs (8)
170this.hLog = IntPtr.Zero; 175this.pinfoContainer = IntPtr.Zero; 898IntPtr.Zero, 1024IntPtr.Zero, 1067IntPtr.Zero)) 1104IntPtr.Zero, 1106IntPtr.Zero)) 1221IntPtr.Zero);
System.Management (139)
Instrumentation\EventSource.cs (5)
534pResponseHandler.SetStatus_(0, (int)tag_WBEMSTATUS.WBEM_E_NOT_FOUND, null, IntPtr.Zero); 546pResponseHandler.SetStatus_(0, (int)tag_WBEMSTATUS.WBEM_E_NOT_FOUND, null, IntPtr.Zero); 601pResponseHandler.SetStatus_(0, 0, null, IntPtr.Zero); 606pResponseHandler.SetStatus_(0, (int)tag_WBEMSTATUS.WBEM_E_NOT_FOUND, null, IntPtr.Zero); 912pResponseHandler.SetStatus_(0, 0, null, IntPtr.Zero);
InteropClasses\WMIInterop.cs (53)
33IntPtr pWbemClassObject = IntPtr.Zero; 44return IntPtr.Zero; 71if(pWbemClassObject != IntPtr.Zero) 74pWbemClassObject = IntPtr.Zero; 86IntPtr hGlobal = IntPtr.Zero; 91pWbemClassObject = IntPtr.Zero; 102if(hGlobal != IntPtr.Zero) 111IntPtr pData = IntPtr.Zero; 115stream = CreateStreamOnHGlobal(IntPtr.Zero, 1); 117CoMarshalInterface(stream, ref IID_IWbemClassObject, pWbemClassObject, (UInt32)MSHCTX.MSHCTX_DIFFERENTMACHINE, IntPtr.Zero, (UInt32)MSHLFLAGS.MSHLFLAGS_TABLEWEAK); 127if(pData != IntPtr.Zero) 139if(pWbemClassObject == IntPtr.Zero) 152if(pWbemClassObject == IntPtr.Zero) 174if(pWbemClassObject == IntPtr.Zero) 182if(pWbemClassObject == IntPtr.Zero) 190if(pWbemClassObject == IntPtr.Zero) 199if(pWbemClassObject == IntPtr.Zero) 207if(pWbemClassObject == IntPtr.Zero) 217if(pWbemClassObject == IntPtr.Zero) 225if(pWbemClassObject == IntPtr.Zero) 239if(pWbemClassObject == IntPtr.Zero) 253if(pWbemClassObject == IntPtr.Zero) 261if(pWbemClassObject == IntPtr.Zero) 275if(pWbemClassObject == IntPtr.Zero) 289if(pWbemClassObject == IntPtr.Zero) 297if(pWbemClassObject == IntPtr.Zero) 305if(pWbemClassObject == IntPtr.Zero) 313if(pWbemClassObject == IntPtr.Zero) 323if(pInSignature != IntPtr.Zero) 325if(pOutSignature != IntPtr.Zero) 334if(pWbemClassObject == IntPtr.Zero) 342if(pWbemClassObject == IntPtr.Zero) 350if(pWbemClassObject == IntPtr.Zero) 358if(pWbemClassObject == IntPtr.Zero) 370if(pInSignature != IntPtr.Zero) 372if(pOutSignature != IntPtr.Zero) 380if(pWbemClassObject == IntPtr.Zero) 388if(pWbemClassObject == IntPtr.Zero) 401if(pWbemClassObject == IntPtr.Zero) 476IntPtr pWbemQualifierSet = IntPtr.Zero; 490if(pWbemQualifierSet != IntPtr.Zero) 493pWbemQualifierSet = IntPtr.Zero; 510if(pWbemQualifierSet == IntPtr.Zero) 519if(pWbemQualifierSet == IntPtr.Zero) 527if(pWbemQualifierSet == IntPtr.Zero) 535if(pWbemQualifierSet == IntPtr.Zero) 543if(pWbemQualifierSet == IntPtr.Zero) 551if(pWbemQualifierSet == IntPtr.Zero) 559if(pWbemQualifierSet == IntPtr.Zero) 2112IntPtr pComThreadingInfo = IntPtr.Zero; 2113IntPtr pObjectContext = IntPtr.Zero; 2138if(pComThreadingInfo != IntPtr.Zero) 2140if(pObjectContext != IntPtr.Zero)
managementbaseobject.cs (1)
259return IntPtr.Zero;
managementobject.cs (15)
802IntPtr.Zero ); 1484IntPtr ppwbemCallResult = IntPtr.Zero; 1485IntPtr pwbemCallResult = IntPtr.Zero; 1495Marshal.WriteIntPtr(ppwbemCallResult, IntPtr.Zero); // Init to NULL. 1542if (ppwbemCallResult != IntPtr.Zero) // Cleanup from allocations above. 1545if (pwbemCallResult != IntPtr.Zero) 1785IntPtr ppwbemCallResult = IntPtr.Zero; 1786IntPtr pwbemCallResult = IntPtr.Zero; 1796Marshal.WriteIntPtr(ppwbemCallResult, IntPtr.Zero); // Init to NULL. 1845if (ppwbemCallResult != IntPtr.Zero) // Cleanup from allocations above. 1848if (pwbemCallResult != IntPtr.Zero) 1995IntPtr.Zero); 2003IntPtr.Zero); 2336IntPtr.Zero); 2670status = scope.GetSecuredIWbemServicesHandler( wbemServices ).GetObject_(objectPath, options.Flags, options.GetContext(), ref tempObj, IntPtr.Zero);
managementoptions.cs (2)
1653return IntPtr.Zero; 1657return IntPtr.Zero;
managementscope.cs (60)
305IntPtr procAddr = IntPtr.Zero; 306IntPtr loadLibrary = IntPtr.Zero; 308if( loadLibrary != IntPtr.Zero) 311if( procAddr != IntPtr.Zero) 316if( procAddr != IntPtr.Zero) 321if( procAddr != IntPtr.Zero) 326if( procAddr != IntPtr.Zero) 331if( procAddr != IntPtr.Zero) 336if( procAddr != IntPtr.Zero) 341if( procAddr != IntPtr.Zero) 346if( procAddr != IntPtr.Zero) 351if( procAddr != IntPtr.Zero) 356if( procAddr != IntPtr.Zero) 361if( procAddr != IntPtr.Zero) 366if( procAddr != IntPtr.Zero) 371if( procAddr != IntPtr.Zero) 376if( procAddr != IntPtr.Zero) 381if( procAddr != IntPtr.Zero) 386if( procAddr != IntPtr.Zero) 391if( procAddr != IntPtr.Zero) 396if( procAddr != IntPtr.Zero) 401if( procAddr != IntPtr.Zero) 406if( procAddr != IntPtr.Zero) 411if( procAddr != IntPtr.Zero) 416if( procAddr != IntPtr.Zero) 421if( procAddr != IntPtr.Zero) 426if( procAddr != IntPtr.Zero) 431if( procAddr != IntPtr.Zero) 436if( procAddr != IntPtr.Zero) 441if( procAddr != IntPtr.Zero) 446if( procAddr != IntPtr.Zero) 451if( procAddr != IntPtr.Zero) 456if( procAddr != IntPtr.Zero) 461if( procAddr != IntPtr.Zero) 466if( procAddr != IntPtr.Zero) 471if( procAddr != IntPtr.Zero) 476if( procAddr != IntPtr.Zero) 481if( procAddr != IntPtr.Zero) 486if( procAddr != IntPtr.Zero) 491if( procAddr != IntPtr.Zero) 496if( procAddr != IntPtr.Zero) 501if( procAddr != IntPtr.Zero) 506if( procAddr != IntPtr.Zero) 511if( procAddr != IntPtr.Zero) 516if( procAddr != IntPtr.Zero) 521if( procAddr != IntPtr.Zero) 526if( procAddr != IntPtr.Zero) 531if( procAddr != IntPtr.Zero) 536if( procAddr != IntPtr.Zero) 541if( procAddr != IntPtr.Zero) 546if( procAddr != IntPtr.Zero) 551if( procAddr != IntPtr.Zero) 556if( procAddr != IntPtr.Zero) 561if( procAddr != IntPtr.Zero) 1118IntPtr punk = IntPtr.Zero; 1260IntPtr handle = IntPtr.Zero; 1329if( !Object.ReferenceEquals(ppCallResult, IntPtr.Zero) ) 1371if( !Object.ReferenceEquals(ppCallResult, IntPtr.Zero) ) 1438if( !Object.ReferenceEquals(ppCallResult, IntPtr.Zero) ) 1534if( !Object.ReferenceEquals(ppCallResult, IntPtr.Zero) )
wmieventsink.cs (1)
174if(pErrorObj != IntPtr.Zero)
wmiutil.cs (2)
53if (IntPtr.Zero != pErrorInfo && new IntPtr(-1) != pErrorInfo) 60if(pIWbemClassObject != IntPtr.Zero)
System.Messaging (19)
System\Messaging\ActiveXMessageFormatter.cs (1)
452if (buffer == IntPtr.Zero) throw new OutOfMemoryException();
System\Messaging\Interop\MessagePropertyVariants.cs (1)
278return IntPtr.Zero;
System\Messaging\Interop\NativeMethods.cs (1)
328return IntMQGetSecurityContextEx(IntPtr.Zero, 0, out securityContext);
System\Messaging\Interop\UnsafeNativeMethods.cs (1)
126return IntMQLocateBegin(context, Restriction, columnSet, IntPtr.Zero, out enumHandle);
System\Messaging\MessageQueue.cs (13)
419if (handle != IntPtr.Zero) 719if (handle != IntPtr.Zero) 748if (handle != IntPtr.Zero) 1020if (handle != IntPtr.Zero) 1185if (handle != IntPtr.Zero) 1680status = UnsafeNativeMethods.MQCreateQueue(IntPtr.Zero, properties.Lock(), formatName, ref formatNameLen); 1910int status = UnsafeNativeMethods.MQGetMachineProperties(machineName, IntPtr.Zero, machineProperties.Lock()); 1915if (handle != IntPtr.Zero) 1921if (handle != IntPtr.Zero) 3791localStatus = this.owner.StaleSafeReceiveMessage(this.timeout, this.action, this.message.Lock(), overlappedPointer, this.onMessageReceived, this.cursorHandle, IntPtr.Zero); 3801localStatus = this.owner.StaleSafeReceiveMessage(this.timeout, this.action, this.message.Lock(), overlappedPointer, this.onMessageReceived, this.cursorHandle, IntPtr.Zero); 3914result = this.owner.StaleSafeReceiveMessage(this.timeout, this.action, this.message.Lock(), overlappedPointer, this.onMessageReceived, this.cursorHandle, IntPtr.Zero); 3936result = this.owner.StaleSafeReceiveMessage(this.timeout, this.action, this.message.Lock(), overlappedPointer, this.onMessageReceived, this.cursorHandle, IntPtr.Zero);
System\Messaging\MessageQueueException.cs (2)
89IntPtr.Zero, error, 0, sb, sb.Capacity + 1, IntPtr.Zero);
System.Net (91)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (8)
152IntPtr.Zero, 201IntPtr.Zero, 203IntPtr.Zero); 233pd.pbData = IntPtr.Zero; 242pd.pbData = IntPtr.Zero; 450pcer.pInstance = IntPtr.Zero; 509pcer.pInstance = IntPtr.Zero; 567pcer.pInstance = IntPtr.Zero;
net\PeerToPeer\Collaboration\ContactManager.cs (16)
255pcer.pInstance = IntPtr.Zero; 345if (watchlistData.pContact != IntPtr.Zero){ 456pcer.pInstance = IntPtr.Zero; 547if (endpointData.pContact != IntPtr.Zero){ 552if (endpointData.pEndPoint != IntPtr.Zero){ 662pcer.pInstance = IntPtr.Zero; 752if (presenceData.pPresenceInfo != IntPtr.Zero){ 762if (presenceData.pContact != IntPtr.Zero){ 767if (presenceData.pEndPoint != IntPtr.Zero){ 876pcer.pInstance = IntPtr.Zero; 974if (appData.pContact != IntPtr.Zero){ 979if (appData.pEndPoint != IntPtr.Zero){ 1090pcer.pInstance = IntPtr.Zero; 1187if (objData.pContact != IntPtr.Zero){ 1192if (objData.pEndPoint != IntPtr.Zero){ 1354if (!safeContact.DangerousGetHandle().Equals(IntPtr.Zero)){
net\PeerToPeer\Collaboration\MyContact.cs (7)
89pcer.pInstance = IntPtr.Zero; 187if (presenceData.pPresenceInfo != IntPtr.Zero) 196if (presenceData.pEndPoint != IntPtr.Zero){ 256pcer.pInstance = IntPtr.Zero; 357if (appData.pEndPoint != IntPtr.Zero){ 419pcer.pInstance = IntPtr.Zero; 525if (objData.pEndPoint != IntPtr.Zero){
net\PeerToPeer\Collaboration\Peer.cs (3)
533IntPtr guidPtr = IntPtr.Zero; 688pi.applicationData.pbData = IntPtr.Zero; 1111pi.applicationData.pbData = IntPtr.Zero;
net\PeerToPeer\Collaboration\PeerApplication.cs (2)
395if (appData.pContact != IntPtr.Zero){ 400if (appData.pEndPoint != IntPtr.Zero){
net\PeerToPeer\Collaboration\PeerCollaboration.cs (15)
42int errorCode = UnsafeCollabNativeMethods.PeerCollabGetPresenceInfo(IntPtr.Zero, out safePresenceInfo); 261if (pali.pContact != IntPtr.Zero){ 333int errorCode = UnsafeCollabNativeMethods.PeerCollabSignin(IntPtr.Zero, peerScope); 527appRegInfo.application.data.pbData = IntPtr.Zero; 684errorCode = UnsafeCollabNativeMethods.PeerCollabEnumApplications(IntPtr.Zero, IntPtr.Zero, out handlePeerEnum); 827po.data.pbData = IntPtr.Zero; 914errorCode = UnsafeCollabNativeMethods.PeerCollabEnumObjects(IntPtr.Zero, IntPtr.Zero, out handlePeerEnum); 1052pcer.pInstance = IntPtr.Zero; 1137if (ped.endpointChangedData.pEndPoint != IntPtr.Zero){ 1298if (presenceData.pPresenceInfo != IntPtr.Zero){ 1305if (presenceData.pEndPoint != IntPtr.Zero){ 1473if (objData.pEndPoint != IntPtr.Zero){ 1635if (appData.pEndPoint != IntPtr.Zero){
net\PeerToPeer\Collaboration\PeerContact.cs (11)
1021IntPtr guidPtr = IntPtr.Zero; 1245pcer.pInstance = IntPtr.Zero; 1361if (appData.pContact != IntPtr.Zero){ 1373if (appData.pEndPoint != IntPtr.Zero){ 1495pcer.pInstance = IntPtr.Zero; 1612if (objData.pContact != IntPtr.Zero){ 1620if (objData.pEndPoint != IntPtr.Zero) 1749pcer.pInstance = IntPtr.Zero; 1863if (presenceData.pContact != IntPtr.Zero){ 1871if (presenceData.pEndPoint != IntPtr.Zero){ 1879if (presenceData.pPresenceInfo != IntPtr.Zero){
net\PeerToPeer\Collaboration\PeerEndPoint.cs (3)
229pcer.pInstance = IntPtr.Zero; 321if (epData.pEndPoint != IntPtr.Zero){ 329if (epData.pContact != IntPtr.Zero){
net\PeerToPeer\Collaboration\PeerNearMe.cs (4)
249pcer.pInstance = IntPtr.Zero; 307if (statusData.pEndPoint != IntPtr.Zero){ 568pcer.pInstance = IntPtr.Zero; 655if (pnmData.pPeopleNearMe != IntPtr.Zero){
net\PeerToPeer\Collaboration\PeerObject.cs (2)
340if (objData.pContact != IntPtr.Zero){ 345if (objData.pEndPoint != IntPtr.Zero){
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (7)
39SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 63SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 87SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 111SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 135if (IntPtr.Equals(handle, IntPtr.Zero)){ 147SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 169SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero
net\PeerToPeer\PeerNameRegistration.cs (2)
418if (pSocketAddrList != IntPtr.Zero) 599if (pSocketAddrList != IntPtr.Zero)
net\PeerToPeer\PeerToPeerException.cs (4)
97IntPtr NativeMessagePtr = IntPtr.Zero; 104(facility == FACILITY_P2P ? PeerToPeerOSHelper.P2PModuleHandle : IntPtr.Zero), 109IntPtr.Zero); 130if (NativeMessagePtr != IntPtr.Zero)
net\PeerToPeer\UnsafePeerToPeerMethods.cs (5)
196SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 217SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 237SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 272if (Address != IntPtr.Zero) { 346return IntPtr.Zero;
net\UnsafeMethods.cs (2)
97if (hKernel32 != IntPtr.Zero && 98UnsafeSystemNativeMethods.GetProcAddress(hKernel32, AddDllDirectory) != IntPtr.Zero) {
System.Runtime.Caching (1)
System\Caching\PerfCounters.cs (1)
46if (UnsafeNativeMethods.GetModuleFileName(IntPtr.Zero, sb, 512) != 0) {
System.Runtime.Remoting (10)
channels\ipc\ipcport.cs (7)
149IntPtr.Zero, 154IntPtr.Zero); 208status = NativePipe.ReadFile(_handle, p + offset, length, ref numBytesRead, IntPtr.Zero); 223Overlapped overlapped = new Overlapped(0, 0, IntPtr.Zero, asyncResult); 233status = NativePipe.ReadFile(_handle, p + offset, size, IntPtr.Zero, intOverlapped); 302status = NativePipe.WriteFile(_handle, p + offset, size, ref numBytesWritten, IntPtr.Zero); 319InternalRemotingServices.RemotingAssert(_handle.Handle != IntPtr.Zero, "Handle should be valid");
channels\ipc\ipcserverchannel.cs (1)
298IntPtr handle = IntPtr.Zero;
channels\ipc\win32namedpipes.cs (2)
33internal IntPtr lpSecurityDescriptor = IntPtr.Zero; 42internal static readonly IntPtr NULL = IntPtr.Zero;
System.Security (107)
system\security\cryptography\cryptoapi.cs (47)
1068pvExtraPolicyPara = IntPtr.Zero; 1080lChainIndex = IntPtr.Zero; 1081lElementIndex = IntPtr.Zero; 1082pvExtraPolicyStatus = IntPtr.Zero; 1299hCryptProv = IntPtr.Zero; 1405hCryptProv = IntPtr.Zero; 1407pvEncryptionAuxInfo = IntPtr.Zero; 1409rgpRecipients = IntPtr.Zero; 1410rgCmsRecipients = IntPtr.Zero; 1412rgCertEncoded = IntPtr.Zero; 1414rgCrlEncoded = IntPtr.Zero; 1416rgAttrCertEncoded = IntPtr.Zero; 1418rgUnprotectedAttr = IntPtr.Zero; 1443hCryptProv = IntPtr.Zero; 1445pKeyAgree = IntPtr.Zero; 1506hCryptProv = IntPtr.Zero; 1509pvSigner = IntPtr.Zero; 1532rgSigners = IntPtr.Zero; 1534rgCertEncoded = IntPtr.Zero; 1536rgCrlEncoded = IntPtr.Zero; 1538rgAttrCertEncoded = IntPtr.Zero; 1567pCertInfo = IntPtr.Zero; 1568hCryptProv = IntPtr.Zero; 1571pvHashAuxInfo = IntPtr.Zero; 1573rgAuthAttr = IntPtr.Zero; 1575rgUnauthAttr = IntPtr.Zero; 1578pvHashEncryptionAuxInfo = IntPtr.Zero; 1584hCryptProv = IntPtr.Zero; 1586if (SignerId.Value.KeyId.pbData != IntPtr.Zero) { 1590if (rgAuthAttr != IntPtr.Zero) { 1593if (rgUnauthAttr != IntPtr.Zero) { 2528if (pwszContainer != IntPtr.Zero) { 2533if (pwszProvider != IntPtr.Zero) { 2550if (pvKey == IntPtr.Zero) 2558if (pv != IntPtr.Zero) 2580if (pv != IntPtr.Zero) 2674if (pCertContext == IntPtr.Zero) 2690if (pPrevCertContext == IntPtr.Zero) { 2696if (handle == IntPtr.Zero) { 2957SafeLocalAllocHandle invalidHandle = new SafeLocalAllocHandle(IntPtr.Zero); 2973return LocalFree(handle) == IntPtr.Zero; 3011SafeCryptProvHandle invalidHandle = new SafeCryptProvHandle(IntPtr.Zero); 3045SetHandle(IntPtr.Zero); 3073SafeCertContextHandle invalidHandle = new SafeCertContextHandle(IntPtr.Zero); 3104SafeCertStoreHandle invalidHandle = new SafeCertStoreHandle(IntPtr.Zero); 3134SafeCryptMsgHandle invalidHandle = new SafeCryptMsgHandle(IntPtr.Zero); 3164SafeCertChainHandle invalidHandle = new SafeCertChainHandle(IntPtr.Zero);
system\security\cryptography\dataprotection.cs (9)
69IntPtr.Zero, 70IntPtr.Zero, 89if (blob.pbData == IntPtr.Zero) 105if (blob.pbData != IntPtr.Zero) { 142IntPtr.Zero, 144IntPtr.Zero, 145IntPtr.Zero, 152if (userData.pbData == IntPtr.Zero) 168if (userData.pbData != IntPtr.Zero) {
system\security\cryptography\pkcs\envelopedpkcs7.cs (6)
448IntPtr.Zero); 500IntPtr.Zero, 501IntPtr.Zero, 502IntPtr.Zero); 598if (!CAPI.CryptAcquireContext(ref hCryptProv, IntPtr.Zero, IntPtr.Zero, CAPI.PROV_RSA_FULL, CAPI.CRYPT_VERIFYCONTEXT)) {
system\security\cryptography\pkcs\pkcsmisc.cs (5)
474private IntPtr m_pContent = IntPtr.Zero; 521if (IntPtr.Zero == m_pContent) { 541IntPtr.Zero, 542IntPtr.Zero, 543IntPtr.Zero);
system\security\cryptography\pkcs\pkcsutils.cs (11)
45m_cmsSupported = pFunc == IntPtr.Zero ? 0 : 1; 129IntPtr.Zero, 193IntPtr.Zero, 296IntPtr.Zero, 599return IntPtr.Zero; 737cmsSignerEncodeInfo.pCertInfo = IntPtr.Zero; 884hKey = IntPtr.Zero; 888IntPtr.Zero, 1096IntPtr.Zero, //StartTime 1097IntPtr.Zero, //EndTime 1098IntPtr.Zero); //Extensions
system\security\cryptography\pkcs\recipientinfo.cs (1)
292if (m_encryptedKeyInfo.pOtherAttr != IntPtr.Zero) {
system\security\cryptography\pkcs\signedpkcs7.cs (6)
323IntPtr.Zero, 324IntPtr.Zero); 332IntPtr.Zero); 416IntPtr.Zero, 417IntPtr.Zero, 418IntPtr.Zero);
system\security\cryptography\pkcs\signerinfo.cs (4)
378if (Marshal.ReadIntPtr(ppbData) == IntPtr.Zero) { 481if (!CAPI.CAPISafe.CryptMsgVerifyCountersignatureEncoded(IntPtr.Zero, 530IntPtr pAttr = IntPtr.Zero; 744IntPtr.Zero,
system\security\cryptography\x509\x509ui.cs (13)
31DisplayX509Certificate(X509Utils.GetCertContext(certificate), IntPtr.Zero); 42return SelectFromCollectionHelper(certificates, title, message, selectionFlag, IntPtr.Zero); 64ViewInfo.rgszPurposes = IntPtr.Zero; 66ViewInfo.pCryptProviderData = IntPtr.Zero; 73ViewInfo.rghStores = IntPtr.Zero; 75ViewInfo.rgPropSheetPages = IntPtr.Zero; 79if (!CAPI.CryptUIDlgViewCertificateW(ViewInfo, IntPtr.Zero)) 117IntPtr.Zero, 133csc.pFilterCallback = IntPtr.Zero; 134csc.pDisplayCallback = IntPtr.Zero; 135csc.pvCallbackData = IntPtr.Zero; 140csc.rghStores = IntPtr.Zero; 142csc.rgPropSheetPages = IntPtr.Zero;
system\security\cryptography\x509\x509utils.cs (5)
199IntPtr.Zero, 282IntPtr pEnumContext = CAPI.CertEnumCertificatesInStore(safeCertStoreHandle, IntPtr.Zero); 283while (pEnumContext != IntPtr.Zero) { 346IntPtr.Zero, 397if (pdwErrorStatus != IntPtr.Zero)
System.ServiceModel (152)
System\ServiceModel\Activation\ListenerUnsafeNativeMethods.cs (1)
254DiagnosticUtility.DebugAssert(handle == IntPtr.Zero || !ownsHandle, "Unsafe to create a SafeHandle that owns a pre-existing handle before the SafeHandle was created.");
System\ServiceModel\Activation\Utility.cs (3)
190bool success = ListenerUnsafeNativeMethods.LookupPrivilegeValue(IntPtr.Zero, privilege, &luid); 218success = ListenerUnsafeNativeMethods.AdjustTokenPrivileges(token, false, pTP, tokenInformation.Length, IntPtr.Zero, IntPtr.Zero);
System\ServiceModel\Administration\WbemProvider.cs (3)
727ref wbemObject, IntPtr.Zero)); 730WbemException.ThrowIfFail(wbemObject.GetMethod(methodName, 0, IntPtr.Zero, out wbemMethod)); 902parms.WbemServices.GetObject(className, 0, parms.WbemContext, ref tempObj, IntPtr.Zero)
System\ServiceModel\Channels\AppContainerInfo.cs (3)
168IntPtr appContainerSid = IntPtr.Zero; 198IntPtr.Zero, 212if (appContainerSid != IntPtr.Zero)
System\ServiceModel\Channels\ChannelBindingUtility.cs (1)
272base.SetHandle(IntPtr.Zero);
System\ServiceModel\Channels\Msmq.cs (1)
117errorStrings = UnsafeNativeMethods.LoadLibraryEx("MQUTIL.DLL", IntPtr.Zero, UnsafeNativeMethods.LOAD_LIBRARY_AS_DATAFILE | UnsafeNativeMethods.LOAD_LIBRARY_SEARCH_SYSTEM32);
System\ServiceModel\Channels\MsmqDefaultLockingQueue.cs (3)
108UnsafeNativeMethods.MQ_ACTION_RECEIVE, nativePropertiesPointer, null, IntPtr.Zero, IntPtr.Zero, internalTrans); 391nativePropertiesPointer, null, IntPtr.Zero, internalTrans);
System\ServiceModel\Channels\MsmqQueue.cs (11)
504return UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, action, nativePropertiesPointer, null, IntPtr.Zero, dtcTransaction); 513return UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, action, nativePropertiesPointer, null, IntPtr.Zero, (IntPtr)GetTransactionConstant(transactionMode)); 535return UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, action, nativePropertiesPointer, null, IntPtr.Zero, (IntPtr)GetTransactionConstant(transactionMode)); 558action, nativePropertiesPointer, null, IntPtr.Zero, IntPtr.Zero, dtcTransaction); 568action, nativePropertiesPointer, null, IntPtr.Zero, IntPtr.Zero, (IntPtr)GetTransactionConstant(transactionMode)); 591action, nativePropertiesPointer, null, IntPtr.Zero, IntPtr.Zero, (IntPtr)GetTransactionConstant(transactionMode)); 724IntPtr.Zero, (IntPtr)UnsafeNativeMethods.MQ_NO_TRANSACTION); 805nativeOverlapped = new Overlapped(0, 0, IntPtr.Zero, this).UnsafePack(onPortedCompletion, this.message.GetBuffersForAsync());
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (1)
366props.status = IntPtr.Zero;
System\ServiceModel\Channels\NativeMsmqMessage.cs (3)
85this.nativeProperties.status = IntPtr.Zero; 376this.Variants[this.Index].byteArrayValue.intPtr = IntPtr.Zero; 459this.Variants[this.Index].intPtr = IntPtr.Zero;
System\ServiceModel\Channels\OverlappedContext.cs (1)
194this.overlapped.EventHandleIntPtr = IntPtr.Zero;
System\ServiceModel\Channels\PeerUnsafeNativeCryptMethods.cs (10)
56: base(IntPtr.Zero, true) 63get { return handle == IntPtr.Zero; } 90: base(IntPtr.Zero, true) 97get { return handle == IntPtr.Zero; } 115: base(IntPtr.Zero, true) 122get { return handle == IntPtr.Zero; } 139: base(IntPtr.Zero, true) 146get { return handle == IntPtr.Zero; } 296IntPtr.Zero, 305IntPtr.Zero,
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (2)
94IntPtr.Zero, 95IntPtr.Zero);
System\ServiceModel\Channels\PipeConnection.cs (11)
279if (UnsafeNativeMethods.ReadFile(this.pipe.DangerousGetHandle(), this.readOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.readOverlapped.NativeOverlapped) == 0) 373if (UnsafeNativeMethods.WriteFile(this.pipe.DangerousGetHandle(), this.writeOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.writeOverlapped.NativeOverlapped) == 0) 651if (sourceProcessHandle == IntPtr.Zero) 1376if (UnsafeNativeMethods.ReadFile(this.pipe.DangerousGetHandle(), this.readOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.readOverlapped.NativeOverlapped) == 0) 1474if (UnsafeNativeMethods.WriteFile(this.pipe.DangerousGetHandle(), this.writeOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.writeOverlapped.NativeOverlapped) == 0) 1810PipeHandle pipeHandle = UnsafeNativeMethods.CreateFile(resolvedAddress, access, 0, IntPtr.Zero, 1811UnsafeNativeMethods.OPEN_EXISTING, flags, IntPtr.Zero); 1820if (UnsafeNativeMethods.SetNamedPipeHandleState(pipeHandle, ref mode, IntPtr.Zero, IntPtr.Zero) == 0) 2890IntPtr.Zero, error, CultureInfo.CurrentCulture.LCID, stringBuilder, stringBuilder.Capacity, IntPtr.Zero) != 0)
System\ServiceModel\Channels\PnrpPeerResolver.cs (16)
1211target.saHint.lpSockAddr = IntPtr.Zero; 1361result.lpafpProtocols = IntPtr.Zero; // not used 1362result.lpszQueryString = IntPtr.Zero; 1523native.lpVersion = IntPtr.Zero; // not used 1529native.lpafpProtocols = IntPtr.Zero; // not used 1530native.lpszQueryString = IntPtr.Zero; // not used 1834if (nativeQuerySetPtr != IntPtr.Zero) 2090if (nativeQuerySetPtr != IntPtr.Zero) 2143if (pNativeData == IntPtr.Zero) 2174if (nativeQuerySet.lpNSProviderId != IntPtr.Zero) 2178if (nativeQuerySet.lpServiceClassId != IntPtr.Zero) 2185if (nativeQuerySet.lpBlob != IntPtr.Zero) 2192if (blob.pBlobData != IntPtr.Zero) 2200if (nativeQuerySet.lpBlob != IntPtr.Zero) 2207if (blob.pBlobData != IntPtr.Zero) 2222if (socketAddress.lpSockAddr != IntPtr.Zero)
System\ServiceModel\Channels\SelfSignedCertificate.cs (5)
76IntPtr.Zero); 107IntPtr.Zero, 109IntPtr.Zero)) 136IntPtr.Zero, 154IntPtr.Zero,
System\ServiceModel\Channels\UnsafeNativeMethods.cs (6)
475internal IntPtr lpSecurityDescriptor = IntPtr.Zero; 1150if (hModule == IntPtr.Zero) { 1151System.Diagnostics.Debug.Assert(hModule != IntPtr.Zero, "GetModuleHandle failed. Dll isn't loaded?"); 1155return (functionPointer != IntPtr.Zero); 1265handle = IntPtr.Zero; 1285handle = IntPtr.Zero;
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (12)
310IntPtr.Zero, 377if (IntPtr.Zero == clientIdentity.Token) 407IntPtr oldSecurityObject = IntPtr.Zero; 433if (IntPtr.Zero == clientIdentity.Token) 479if (authnSvc != IntPtr.Zero) 496if (authzSvc != IntPtr.Zero) 501if (serverPrincipalName != IntPtr.Zero) 511if (authnLevel != IntPtr.Zero) 516if (impLevel != IntPtr.Zero) 521if (clientPrincipalName != IntPtr.Zero) 528if (Capabilities != IntPtr.Zero) 596if (IntPtr.Zero == secCtx)
System\ServiceModel\ComIntegration\ComProxy.cs (5)
17if (outer == IntPtr.Zero) 21IntPtr inner = IntPtr.Zero; 39if (inner == IntPtr.Zero) 57if (inner == IntPtr.Zero) 71if (inner == IntPtr.Zero)
System\ServiceModel\ComIntegration\DispatchProxy.cs (8)
43IntPtr inner = IntPtr.Zero; 61if (inner != IntPtr.Zero) 279if (pExcepInfo != IntPtr.Zero) 320if ((result != null) && (pVarResult != IntPtr.Zero)) 358if (baseArray == IntPtr.Zero) 394if (baseArray == IntPtr.Zero) 501if (baseArray == IntPtr.Zero) 529if (baseArray == IntPtr.Zero)
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (1)
503IntPtr inner = IntPtr.Zero;
System\ServiceModel\ComIntegration\MonikerBuilder.cs (1)
27if (outer == IntPtr.Zero)
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (2)
130IntPtr pOuter = IntPtr.Zero; 151IntPtr pInner = IntPtr.Zero;
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (9)
53if (IntPtr.Zero == pBuff) 80if (null == hGlobal || IntPtr.Zero == hGlobal.DangerousGetHandle()) 102if (IntPtr.Zero == pBuff) 161if (IntPtr.Zero == punk) 167IntPtr persistStream = IntPtr.Zero; 174if (IntPtr.Zero == persistStream) 215if (IntPtr.Zero == punk) 221IntPtr persistStream = IntPtr.Zero; 228if (IntPtr.Zero == persistStream)
System\ServiceModel\ComIntegration\ProxyBuilder.cs (2)
16if (IntPtr.Zero == ppv) 19Marshal.WriteIntPtr(ppv, IntPtr.Zero);
System\ServiceModel\ComIntegration\ProxyManager.cs (3)
100tearOff = IntPtr.Zero; 169IntPtr tearOffDispatch = IntPtr.Zero; 180if (pExcepInfo != IntPtr.Zero)
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (2)
547if (IntPtr.Zero == pUnk) 552IntPtr ppv = IntPtr.Zero;
System\ServiceModel\ComIntegration\ServiceMoniker.cs (5)
79if (IntPtr.Zero == pdwHash) 131if (IntPtr.Zero == pdwMksys) 161if (IntPtr.Zero == ppmkOut) 164System.Runtime.InteropServices.Marshal.WriteIntPtr(ppmkOut, IntPtr.Zero); 166if (IntPtr.Zero == pchEaten)
System\ServiceModel\ComIntegration\TransactionProxy.cs (2)
32if (outer == IntPtr.Zero) 184if (IntPtr.Zero == voterBallot)
System\ServiceModel\ComIntegration\TypedServiceChannelBuilder.cs (1)
294if (outer == IntPtr.Zero)
System\ServiceModel\ComIntegration\TypeLibraryHelper.cs (2)
81IntPtr ptr = IntPtr.Zero; 91if ((ptr != IntPtr.Zero) && (tlb != null))
System\ServiceModel\ComIntegration\WsdlServiceChannelBuilder.cs (1)
343IntPtr inner = IntPtr.Zero;
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (2)
499tokenHandle = new SafeCloseHandle(IntPtr.Zero, false); 536if (!SafeNativeMethods.SetCurrentThreadToken(IntPtr.Zero, this.tokenHandle))
System\ServiceModel\MsmqException.cs (3)
178IntPtr.Zero)); 188IntPtr.Zero, 193IntPtr.Zero));
System\ServiceModel\Security\SecurityUtils.cs (2)
473if (token != IntPtr.Zero) 2366return certificate != null && certificate.Handle != IntPtr.Zero;
System\ServiceModel\Security\TlsSspiNegotiation.cs (1)
738if (context.hCertStore != IntPtr.Zero)
System\ServiceModel\Security\WindowsSspiNegotiation.cs (4)
465IntPtr ppAuthIdentity = IntPtr.Zero; 469IntPtr ppNewAuthIdentity = IntPtr.Zero; 485if (IntPtr.Zero != ppNewAuthIdentity) 498if (IntPtr.Zero != ppAuthIdentity)
System\ServiceModel\UpnEndpointIdentity.cs (3)
107IntPtr pDomainControllerInfo = IntPtr.Zero; 111int result = SafeNativeMethods.DsGetDcName(null, null, IntPtr.Zero, null, (uint)DSFlags.DS_DIRECTORY_SERVICE_REQUIRED, out pDomainControllerInfo); 117if (pDomainControllerInfo != IntPtr.Zero)
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (2)
29Fx.Assert(handle == IntPtr.Zero, "SafeHGlobalHandleCritical constructor can only be called with IntPtr.Zero."); 41get { return new SafeHGlobalHandleCritical(IntPtr.Zero); }
System\ServiceModel\Activation\MetabaseReader.cs (1)
218record.pbMDData = IntPtr.Zero;
System.ServiceModel.Internals (4)
System\Runtime\Diagnostics\EventLogger.cs (1)
154if (stringsRootHandle.AddrOfPinnedObject() != IntPtr.Zero)
System\Runtime\IOThreadTimer.cs (3)
632SafeWaitHandle handle = UnsafeNativeMethods.CreateWaitableTimer(IntPtr.Zero, false, null); 643if (!UnsafeNativeMethods.SetWaitableTimer(timer, ref dueTime, 0, IntPtr.Zero, IntPtr.Zero, false))
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\MessageRpc.cs (1)
67autoRevert = WindowsIdentity.Impersonate(IntPtr.Zero);
System.Transactions (35)
System\Transactions\Oletx\CoTaskMemHandle.cs (2)
16public CoTaskMemHandle() : base(IntPtr.Zero, true) 24return IsClosed || this.handle == IntPtr.Zero;
System\Transactions\Oletx\DTCTransactionManager.cs (2)
37IntPtr handle = IntPtr.Zero; 105if ( handle != IntPtr.Zero && null == resourceManagerShim )
System\Transactions\Oletx\HandleTable.cs (2)
28Debug.Assert(handle != IntPtr.Zero, "handle is invalid"); 37Debug.Assert(handle != IntPtr.Zero, "handle is invalid");
System\Transactions\Oletx\OletxEnlistment.cs (1)
61internal IntPtr phase1Handle = IntPtr.Zero;
System\Transactions\Oletx\OletxResourceManager.cs (5)
94IntPtr handle = IntPtr.Zero; 108if ( null == localResourceManagerShim && handle != IntPtr.Zero ) 318IntPtr handlePhase0 = IntPtr.Zero; 408if ( handlePhase0 != IntPtr.Zero && !phase0EnlistSucceeded ) 415if ( enlistment.phase1Handle != IntPtr.Zero )
System\Transactions\Oletx\OleTxTransaction.cs (6)
832IntPtr phase0Handle = IntPtr.Zero; 990if ( phase0Handle != IntPtr.Zero && localPhase0VolatileContainer.Phase0EnlistmentShim == null ) 997localPhase1VolatileContainer.voterHandle != IntPtr.Zero && 1039IntPtr phase0Handle = IntPtr.Zero; 1173if ( phase0Handle != IntPtr.Zero && localPhase0VolatileContainer.Phase0EnlistmentShim == null ) 1180localPhase1VolatileContainer.voterHandle != IntPtr.Zero &&
System\Transactions\Oletx\OletxTransactionManager.cs (4)
70IntPtr enlistmentHandleIntPtr = IntPtr.Zero; 499if ( !cleanExit && enlistmentHandleIntPtr != IntPtr.Zero ) 627IntPtr outcomeEnlistmentHandle = IntPtr.Zero; 648if ( transactionShim == null && outcomeEnlistmentHandle != IntPtr.Zero )
System\Transactions\Oletx\OletxVolatileEnlistment.cs (1)
599internal IntPtr voterHandle = IntPtr.Zero;
System\Transactions\SafeIUnknown.cs (5)
22internal SafeIUnknown() : base(IntPtr.Zero, true) 28internal SafeIUnknown(IntPtr unknown) : base(IntPtr.Zero, true) 42return (IsClosed || (IntPtr.Zero == base.handle)); 50base.handle = IntPtr.Zero; 51if (IntPtr.Zero != ptr)
System\Transactions\Transaction.cs (1)
171IntPtr contextToken = IntPtr.Zero;
System\Transactions\TransactionInterop.cs (6)
233IntPtr outcomeEnlistmentHandle = IntPtr.Zero; 248if ( transactionShim == null && outcomeEnlistmentHandle != IntPtr.Zero ) 466IntPtr outcomeEnlistmentHandle = IntPtr.Zero; 482if ( transactionShim == null && outcomeEnlistmentHandle != IntPtr.Zero ) 644IntPtr outcomeEnlistmentHandle = IntPtr.Zero; 658if ( transactionShim == null && outcomeEnlistmentHandle != IntPtr.Zero )
System.Web (436)
AspNetEventSource.cs (1)
232if (PtrToNullChar != IntPtr.Zero) {
Compilation\CodeDirectoryCompiler.cs (1)
181if (hModule == IntPtr.Zero)
Compilation\CompilationLock.cs (5)
68if (_mutexHandle.Handle == IntPtr.Zero) { 91if (_mutexHandle.Handle != IntPtr.Zero) { 93_mutexHandle = new HandleRef(this, IntPtr.Zero); 103if (_mutexHandle.Handle == IntPtr.Zero) 137if (_mutexHandle.Handle == IntPtr.Zero)
Configuration\COAUTHINFO.cs (2)
47authidentitydata = IntPtr.Zero; 82authidentitydata = IntPtr.Zero;
Configuration\COSERVERINFO.cs (2)
43authinfo = IntPtr.Zero; 74authinfo = IntPtr.Zero;
Configuration\ExpressServerConfig.cs (16)
115IntPtr pAppCollection = IntPtr.Zero; 116IntPtr pBstr = IntPtr.Zero; 121if (result < 0 || pBstr == IntPtr.Zero) { 126pBstr = IntPtr.Zero; 139if (result < 0 || pBstr == IntPtr.Zero) { 145pBstr = IntPtr.Zero; 168if (pAppCollection != IntPtr.Zero) { 170pAppCollection = IntPtr.Zero; 172if (pBstr != IntPtr.Zero) { 174pBstr = IntPtr.Zero; 197IntPtr pBstrUserName = IntPtr.Zero; 199IntPtr pBstrPassword = IntPtr.Zero; 216if (pBstrUserName != IntPtr.Zero) { 219if (pBstrPassword != IntPtr.Zero) { 351IntPtr pBstr = IntPtr.Zero; 359if (pBstr != IntPtr.Zero) {
Configuration\GacUtil.cs (2)
24if (0 == hr) hr = ac.InstallAssembly(0, assemblyPath, IntPtr.Zero); 66hr = ac.UninstallAssembly(0, assemblyName, IntPtr.Zero, out position);
Configuration\IdentitySection.cs (10)
37private ImpersonateTokenRef _impersonateTokenRef = new ImpersonateTokenRef(IntPtr.Zero); 127_impersonateTokenRef = new ImpersonateTokenRef(IntPtr.Zero); 183if (Impersonate && ImpersonateToken == IntPtr.Zero && _username != null) { 205if (_impersonateTokenRef.Handle == IntPtr.Zero) { 223if (_impersonateTokenRef.Handle == IntPtr.Zero) { 233IntPtr token = IntPtr.Zero; 241if (UnsafeNativeMethods.PMCallISAPI(IntPtr.Zero, 257if (token == IntPtr.Zero) { 262if (token != IntPtr.Zero) { 270if (token == IntPtr.Zero) {
Configuration\ImpersonateTokenRef.cs (4)
32if (_handle != IntPtr.Zero) { 34_handle = IntPtr.Zero; 38if (_handle != IntPtr.Zero) { 40_handle = IntPtr.Zero;
Configuration\MULTI_QI.cs (10)
29pItf = IntPtr.Zero; 39if (pItf != IntPtr.Zero) 42pItf = IntPtr.Zero; 44if (piid != IntPtr.Zero) 47piid = IntPtr.Zero; 60pItf = IntPtr.Zero; 74if (pItf != IntPtr.Zero) { 76pItf = IntPtr.Zero; 78if (piid != IntPtr.Zero) { 80piid = IntPtr.Zero;
Configuration\NativeConfig.cs (9)
47if (_nativeConfig != IntPtr.Zero) { 48IntPtr pConfigSystem = Interlocked.Exchange(ref _nativeConfig, IntPtr.Zero); 49if (pConfigSystem != IntPtr.Zero) { 57IntPtr pBstr = IntPtr.Zero; 62siteName = (result == 0 && pBstr != IntPtr.Zero) ? StringUtil.StringFromWCharPtr(pBstr, cBstr) : String.Empty; 65if (pBstr != IntPtr.Zero) { 74IntPtr pBstr = IntPtr.Zero; 81physicalPath = (pBstr != IntPtr.Zero) ? StringUtil.StringFromWCharPtr(pBstr, cBstr) : null; 84if (pBstr != IntPtr.Zero) {
Configuration\ProcessHostConfigUtils.cs (8)
55IntPtr pBstr = IntPtr.Zero; 58int result = UnsafeIISMethods.MgdMapPathDirect(IntPtr.Zero, siteName, path.VirtualPathString, out pBstr, out cBstr); 62physicalPath = (pBstr != IntPtr.Zero) ? StringUtil.StringFromWCharPtr(pBstr, cBstr) : null; 65if (pBstr != IntPtr.Zero) { 76IntPtr pBstr = IntPtr.Zero; 80int result = UnsafeIISMethods.MgdGetSiteNameFromId(IntPtr.Zero, siteId, out pBstr, out cBstr); 81siteName = (result == 0 && pBstr != IntPtr.Zero) ? StringUtil.StringFromWCharPtr(pBstr, cBstr) : String.Empty; 84if (pBstr != IntPtr.Zero) {
Configuration\ProcessHostMapPath.cs (6)
50Debug.Assert(IntPtr.Zero != configSystem, "null != configSystem"); 52if (IntPtr.Zero != configSystem) { 142uint id = UnsafeIISMethods.MgdResolveSiteName(IntPtr.Zero, siteArgument); 195IntPtr pBstr = IntPtr.Zero; 199int result = UnsafeIISMethods.MgdGetAppPathForPath(IntPtr.Zero, siteValue, path.VirtualPathString, out pBstr, out cBstr); 203if (pBstr != IntPtr.Zero) {
Configuration\ProcessHostServerConfig.cs (19)
57Debug.Assert(IntPtr.Zero != configSystem, "null != configSystem"); 59if (IntPtr.Zero != configSystem) { 105IntPtr pAppCollection = IntPtr.Zero; 106IntPtr pBstr = IntPtr.Zero; 110int result = UnsafeIISMethods.MgdGetAppCollection(IntPtr.Zero, _siteNameForCurrentApplication, vpath, out pBstr, out cBstr, out pAppCollection, out count); 111if (result < 0 || pBstr == IntPtr.Zero) { 116pBstr = IntPtr.Zero; 129if (result < 0 || pBstr == IntPtr.Zero) { 135pBstr = IntPtr.Zero; 158if (pAppCollection != IntPtr.Zero) { 160pAppCollection = IntPtr.Zero; 162if (pBstr != IntPtr.Zero) { 164pBstr = IntPtr.Zero; 179return UnsafeIISMethods.MgdIsWithinApp(IntPtr.Zero, _siteNameForCurrentApplication, HttpRuntime.AppDomainAppVirtualPathString, virtualPath); 187IntPtr pBstrUserName = IntPtr.Zero; 189IntPtr pBstrPassword = IntPtr.Zero; 193int result = UnsafeIISMethods.MgdGetVrPathCreds( IntPtr.Zero, 207if (pBstrUserName != IntPtr.Zero) { 210if (pBstrPassword != IntPtr.Zero) {
Configuration\RemoteWebConfigurationHost.cs (21)
74_Identity = (tokenHandle == IntPtr.Zero) ? null : new WindowsIdentity(tokenHandle); //CreateWindowsIdentity(username, domain, password, tokenHandle); 498IntPtr guidbuf = IntPtr.Zero; 500IntPtr captr = IntPtr.Zero; 505IntPtr ciptr = IntPtr.Zero; 521hr = UnsafeNativeMethods.CoCreateInstanceEx(ref clsid, IntPtr.Zero, (int)ClsCtx.RemoteServer, cs, 1, amqi); 533if (amqi[0].pItf != IntPtr.Zero) 536amqi[0].pItf = IntPtr.Zero; 538amqi[0].piid = IntPtr.Zero; 539if (captr != IntPtr.Zero) { 543if (ciptr != IntPtr.Zero) { 547if (guidbuf != IntPtr.Zero) 558IntPtr guidbuf = IntPtr.Zero; 560IntPtr captr = IntPtr.Zero; 565IntPtr ciptr = IntPtr.Zero; 581hr = UnsafeNativeMethods.CoCreateInstanceEx(ref clsid, IntPtr.Zero, (int)ClsCtx.RemoteServer, cs, 1, amqi); 593if (amqi[0].pItf != IntPtr.Zero) { 595amqi[0].pItf = IntPtr.Zero; 597amqi[0].piid = IntPtr.Zero; 598if (captr != IntPtr.Zero) { 602if (ciptr != IntPtr.Zero) { 606if (guidbuf != IntPtr.Zero)
Configuration\StrongNameUtility.cs (4)
23IntPtr keyBlob = IntPtr.Zero; 32if (!createdKey || keyBlob == IntPtr.Zero) { 37Debug.Assert(keyBlob != IntPtr.Zero); 58if (keyBlob != IntPtr.Zero) {
Configuration\WebConfigurationManager.cs (14)
101null, null, null, IntPtr.Zero); 106null, null, null, IntPtr.Zero); 111server, null, null, IntPtr.Zero); 116server, userName, password, IntPtr.Zero); 127null, null, null, IntPtr.Zero); 132null, null, null, IntPtr.Zero); 140null, null, null, IntPtr.Zero); 145null, null, null, IntPtr.Zero); 150null, null, null, IntPtr.Zero); 155server, null, null, IntPtr.Zero); 160server, userName, password, IntPtr.Zero); 171null, null, null, IntPtr.Zero); 176null, null, null, IntPtr.Zero); 181null, null, null, IntPtr.Zero);
DataAccess\DataConnectionHelper.cs (3)
51IntPtr pSid = IntPtr.Zero; 56pSid != IntPtr.Zero ) 92if( pSid != IntPtr.Zero )
FileChangesMonitor.cs (2)
487if (ndirMonCompletionHandle.Handle != IntPtr.Zero) { 488_ndirMonCompletionHandle = new HandleRef(this, IntPtr.Zero);
Hosting\ApplicationManager.cs (6)
929IntPtr uncTokenConfig = IntPtr.Zero; 948if (uncTokenConfig != IntPtr.Zero) { 1233if (uncTokenConfig != IntPtr.Zero) { 1235uncTokenConfig = IntPtr.Zero; 1252IntPtr uncToken = IntPtr.Zero; 1275if (uncToken != IntPtr.Zero) {
Hosting\HostingEnvironment.cs (7)
268if (_configToken != IntPtr.Zero) { 270_configToken = IntPtr.Zero; 459if (c.Impersonate && c.ImpersonateToken != IntPtr.Zero) { 1704return IntPtr.Zero; 1719return (ApplicationIdentityToken != IntPtr.Zero); 1732if (token == IntPtr.Zero) { 1751if (c.ImpersonateToken != IntPtr.Zero) {
Hosting\IIS7WorkerRequest.cs (41)
111if ( IntPtr.Zero == requestContext ) { 132if ( _context == IntPtr.Zero ) { 133return IntPtr.Zero; 155if (httpMethodPtr != IntPtr.Zero) { 239_context = IntPtr.Zero; 240_pCookedUrl = IntPtr.Zero; 250if (originalContext != IntPtr.Zero) { 267if (_traceEnabled && _context != IntPtr.Zero) { 278if (_traceEnabled && _context != IntPtr.Zero) { 335return IntPtr.Zero; 342if (buffer == IntPtr.Zero) { 530if (_context == IntPtr.Zero) { 553ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true); 610ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true); 637else if (ppAsyncReceiveBuffer != IntPtr.Zero) { 688if (correlationIdStringPtr != IntPtr.Zero && correlationIdStringLength > 0) { 865if (_context == IntPtr.Zero) { 908if (_context != IntPtr.Zero) { 921IntPtr token = IntPtr.Zero; 928IntPtr token = IntPtr.Zero; 978if (data != IntPtr.Zero && length >= 0) { 1161if (buffer != IntPtr.Zero) { 1179if (buffer != IntPtr.Zero) { 1215if (buffer != IntPtr.Zero) { 1232if (buffer != IntPtr.Zero) { 1333if ( _context == IntPtr.Zero ) 1410if ( _context == IntPtr.Zero ) 1630if(IntPtr.Zero != _context) { 1672if (buffer != IntPtr.Zero) { 1686return IntPtr.Zero; 1921IntPtr token = IntPtr.Zero; 2106if (pValue != IntPtr.Zero) { 2184if (pValue != IntPtr.Zero) { 2207IntPtr pValue = (index < unknownHeaderSnapshotCount) ? snapshotValues[index] : IntPtr.Zero; // if index >= diffCount, need to delete header 2210if (pValue!=IntPtr.Zero) { 2261if (pManagedPrincipal != IntPtr.Zero) { 2271if (pUserName != IntPtr.Zero && cchUserName > 0) { 2276if (pAuthType != IntPtr.Zero && cchAuthType > 0) { 2292else if ( pToken != IntPtr.Zero ) 2569IntPtr token = IntPtr.Zero; 2609if (hr < 0 || pWebSocketContext == IntPtr.Zero) {
Hosting\IPipelineRuntime.cs (30)
99private static IntPtr _asyncCompletionDelegatePointer = IntPtr.Zero; 102private static IntPtr _asyncDisconnectNotificationDelegatePointer = IntPtr.Zero; 105private static IntPtr _executeDelegatePointer = IntPtr.Zero; 108private static IntPtr _disposeDelegatePointer = IntPtr.Zero; 111private static IntPtr _roleDelegatePointer = IntPtr.Zero; 114private static IntPtr _principalDelegatePointer = IntPtr.Zero; 118if (IntPtr.Zero == _asyncCompletionDelegatePointer) { 120if (IntPtr.Zero == _asyncCompletionDelegatePointer) { 124if (IntPtr.Zero != p) { 136if (IntPtr.Zero == _asyncDisconnectNotificationDelegatePointer) { 138if (IntPtr.Zero == _asyncDisconnectNotificationDelegatePointer) { 142if (IntPtr.Zero != p) { 154if (IntPtr.Zero == _executeDelegatePointer) { 156if (IntPtr.Zero == _executeDelegatePointer) { 160if (IntPtr.Zero != p) { 174if (IntPtr.Zero == _disposeDelegatePointer) { 176if (IntPtr.Zero == _disposeDelegatePointer) { 180if (IntPtr.Zero != p) { 194if (IntPtr.Zero == _roleDelegatePointer) { 196if (IntPtr.Zero == _roleDelegatePointer) { 200if (IntPtr.Zero != p) { 214if (IntPtr.Zero == _principalDelegatePointer) { 216if (IntPtr.Zero == _principalDelegatePointer) { 220if (IntPtr.Zero != p) { 268if (s_ApplicationContext == IntPtr.Zero) { 411Debug.Assert(pManagedRootedObjects != IntPtr.Zero); 412if (pManagedRootedObjects != IntPtr.Zero) { 448return IntPtr.Zero; 506if (rootedObjectsPointer == IntPtr.Zero) { 736if (s_thisAppDomainsIsapiAppId != null && s_ApplicationContext != IntPtr.Zero) {
Hosting\ISAPIApplicationHost.cs (1)
114IntPtr token = IntPtr.Zero;
Hosting\ISAPIRuntime.cs (3)
150IntPtr pHttpCompletion = IntPtr.Zero; 186if (wr != null && wr.Ecb == IntPtr.Zero) { 187if (pHttpCompletion != IntPtr.Zero) {
Hosting\ISAPIWorkerRequest.cs (69)
394_intptrData = IntPtr.Zero; 395_fileHandle = IntPtr.Zero; 409_intptrData = IntPtr.Zero; 410_fileHandle = IntPtr.Zero; 421_fileHandle = IntPtr.Zero; 446if (_fileHandle != IntPtr.Zero && _fileHandle != UnsafeNativeMethods.INVALID_HANDLE_VALUE) { 449_fileHandle = IntPtr.Zero; 491if (_fileHandle != IntPtr.Zero) { 878_asyncCompletionCallback(0, flushAsyncResult.HResult, IntPtr.Zero); 885if (_ecb == IntPtr.Zero) 953_ecb = IntPtr.Zero; 1053EtwTrace.TraceEnableCheck(EtwTraceConfigType.DOWNLEVEL, IntPtr.Zero); 1066EtwTrace.TraceEnableCheck(EtwTraceConfigType.DOWNLEVEL, IntPtr.Zero); 1696if (ecb == IntPtr.Zero || UnsafeNativeMethods.EcbGetTraceContextId(ecb, out _traceId) != 1) { 1702if (_ecb == IntPtr.Zero) 1709if (_ecb == IntPtr.Zero) 1716if (_ecb == IntPtr.Zero) 1723if (_ecb == IntPtr.Zero) 1733if (_ecb == IntPtr.Zero) 1755if (_ecb == IntPtr.Zero) 1763if (_ecb == IntPtr.Zero) 1782if (_ecb == IntPtr.Zero) 1802if (_ecb == IntPtr.Zero) 1809if (_ecb == IntPtr.Zero) 1816if (_token == IntPtr.Zero && _ecb != IntPtr.Zero) 1817_token = UnsafeNativeMethods.EcbGetImpersonationToken(_ecb, IntPtr.Zero); 1822if (_token == IntPtr.Zero && _ecb != IntPtr.Zero) 1823_token = UnsafeNativeMethods.EcbGetVirtualPathToken(_ecb, IntPtr.Zero); 1829if (_ecb == IntPtr.Zero) 1837if (_ecb == IntPtr.Zero) 1861if (_ecb == IntPtr.Zero) 2005if (_ecb == IntPtr.Zero) 2017IntPtr token = IntPtr.Zero; 2050if (IntPtr.Zero != _ecb) { 2061if (IntPtr.Zero != _ecb) { 2110if (_ecb == IntPtr.Zero) 2153if (_ecb == IntPtr.Zero) 2198if (_ecb == IntPtr.Zero) 2272if (_ecb == IntPtr.Zero) 2288if (_ecb == IntPtr.Zero) 2342if (_ecb == IntPtr.Zero) 2490if (_ecb == IntPtr.Zero || _disableKernelCache) 2527if (_ecb == IntPtr.Zero) { 2605if (_ecb == IntPtr.Zero) 2611ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true); 2695if (_ecb == IntPtr.Zero || // after done with session 2733if (_entity != IntPtr.Zero) { 2763if (_entity != IntPtr.Zero) { 2834if (_ecb == IntPtr.Zero) 2870if (_ecb == IntPtr.Zero) 2877if (_ecb == IntPtr.Zero) 2884if (_ecb == IntPtr.Zero) 2891if (_ecb == IntPtr.Zero) 2900if (_ecb == IntPtr.Zero) 2909if (_ecb == IntPtr.Zero) 2961if (_ecb == IntPtr.Zero) 3024if (_ecb == IntPtr.Zero) 3031if (_ecb == IntPtr.Zero) 3038if (_token == IntPtr.Zero && _ecb != IntPtr.Zero) 3045if (_token == IntPtr.Zero && _ecb != IntPtr.Zero) 3052if (_ecb == IntPtr.Zero) 3059if (_ecb == IntPtr.Zero) 3077if (_ecb == IntPtr.Zero) 3084if (_ecb == IntPtr.Zero) 3091if (_ecb == IntPtr.Zero || _useBaseTime)
Hosting\ProcessHost.cs (5)
1252Exception ex = Marshal.GetExceptionForHR(hr, (pErrorInfo != IntPtr.Zero) ? pErrorInfo : (IntPtr)(-1)); 1343if (IntPtr.Zero == pUnk) { 1347IntPtr ppv = IntPtr.Zero; 1363if (IntPtr.Zero != ppv) { 1366if (IntPtr.Zero != pUnk) {
Hosting\SimpleApplicationHost.cs (1)
60return IntPtr.Zero;
Hosting\SimpleWorkerRequest.cs (1)
146return IntPtr.Zero;
HttpApplication.cs (18)
1754if (appContext != IntPtr.Zero) { 1777if (appContext != IntPtr.Zero) { 2856IntPtr pModuleCollection = IntPtr.Zero; 2857IntPtr pBstrModuleName = IntPtr.Zero; 2859IntPtr pBstrModuleType = IntPtr.Zero; 2861IntPtr pBstrModulePrecondition = IntPtr.Zero; 2865int result = UnsafeIISMethods.MgdGetModuleCollection(IntPtr.Zero, appContext, out pModuleCollection, out count); 2883pBstrModuleName = IntPtr.Zero; 2886pBstrModuleType = IntPtr.Zero; 2889pBstrModulePrecondition = IntPtr.Zero; 2898if (pModuleCollection != IntPtr.Zero) { 2900pModuleCollection = IntPtr.Zero; 2902if (pBstrModuleName != IntPtr.Zero) { 2904pBstrModuleName = IntPtr.Zero; 2906if (pBstrModuleType != IntPtr.Zero) { 2908pBstrModuleType = IntPtr.Zero; 2910if (pBstrModulePrecondition != IntPtr.Zero) { 2912pBstrModulePrecondition = IntPtr.Zero;
HttpApplicationFactory.cs (1)
419return GetSpecialApplicationInstance(IntPtr.Zero, null);
HttpChannelBindingToken.cs (1)
29SetHandle(IntPtr.Zero);
HttpContext.cs (8)
534if (pBuffer != IntPtr.Zero) { 595_rootedPtr = IntPtr.Zero; 1262IntPtr pManagedPrincipal = IntPtr.Zero; 2025if (HttpRuntime.IsOnUNCShareInternal && HostingEnvironment.ApplicationIdentityToken != IntPtr.Zero) { 2129return IntPtr.Zero; 2139return (c != null && c.Impersonate && c.ImpersonateToken == IntPtr.Zero); 2156token = (c.ImpersonateToken != IntPtr.Zero) ? c.ImpersonateToken : ClientIdentityToken; 2164token = IntPtr.Zero;
HttpResponse.cs (1)
751ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true);
HttpRuntime.cs (4)
143if (UnsafeNativeMethods.GetModuleHandle(ModName.ENGINE_FULL_NAME) != IntPtr.Zero) { 152if (UnsafeNativeMethods.LoadLibrary(fullPath) != IntPtr.Zero) { 1146if (c.Impersonate && c.ImpersonateToken == IntPtr.Zero) 1363fGetStoredKeys = (UnsafeNativeMethods.EcbCallISAPI(IntPtr.Zero, UnsafeNativeMethods.CallISAPIFunc.GetAutogenKeys,
HttpWriter.cs (8)
199if (_data == IntPtr.Zero) { 210IntPtr data = Interlocked.Exchange(ref _data, IntPtr.Zero); 211if (data != IntPtr.Zero) { 238IntPtr data = Interlocked.Exchange(ref _data, IntPtr.Zero); 239if (data != IntPtr.Zero) { 568if (pbBuffer != IntPtr.Zero) { 578if (pbBuffer == IntPtr.Zero) { 628return (_firstSubstData == IntPtr.Zero) ? null : new byte[0];
ImpersonationContext.cs (12)
40if (_savedToken.Handle != IntPtr.Zero) { 43_savedToken = new HandleRef(this, IntPtr.Zero); 54if (_savedToken.Handle != IntPtr.Zero) { 61if (token.Handle != IntPtr.Zero) { 62if (UnsafeNativeMethods.SetThreadToken(IntPtr.Zero, token.Handle) == 0) { 84if (_savedToken.Handle != IntPtr.Zero) { 86if (UnsafeNativeMethods.SetThreadToken(IntPtr.Zero, _savedToken.Handle) == 0) { 106IntPtr token = IntPtr.Zero; 131if (token != IntPtr.Zero) { 144ImpersonateToken(new HandleRef(this, IntPtr.Zero)); 164IntPtr token = IntPtr.Zero; 184if (token != IntPtr.Zero) {
Management\regiisutil.cs (4)
68exception = IntPtr.Zero; 95exception = IntPtr.Zero; 169exception = IntPtr.Zero; 436exception = IntPtr.Zero;
Management\WebEvents.cs (1)
1836if (UnsafeNativeMethods.GetModuleFileName(IntPtr.Zero, buf, 256) == 0) {
MimeMapping.cs (7)
456IntPtr mimeMapCollection = IntPtr.Zero; 462result = UnsafeIISMethods.MgdGetMimeMapCollection(IntPtr.Zero, _applicationContext, out mimeMapCollection, out mimeMapCount); 466IntPtr bstrFileExtension = IntPtr.Zero; 467IntPtr bstrMimeType = IntPtr.Zero; 483if (bstrFileExtension != IntPtr.Zero) Marshal.FreeBSTR(bstrFileExtension); 484if (bstrMimeType != IntPtr.Zero) Marshal.FreeBSTR(bstrMimeType); 490if (mimeMapCollection != IntPtr.Zero) {
parent\parent\parent\parent\parent\parent\InternalApis\NDP_Common\inc\StrongNameHelpers.cs (7)
64ppbPublicKeyBlob = IntPtr.Zero; 91ppbKeyBlob = IntPtr.Zero; 113IntPtr ppbSignatureBlob = IntPtr.Zero; 178ppbStrongNameToken = IntPtr.Zero; 204ppbStrongNameToken = IntPtr.Zero; 218ppbPublicKeyBlob = IntPtr.Zero; 240IntPtr ppbSignatureBlob = IntPtr.Zero;
PerfCounters.cs (14)
17internal PerfInstanceDataHandle() : base(IntPtr.Zero, true) { 25get { return handle == IntPtr.Zero; } 30handle = IntPtr.Zero; 41private static IntPtr _global = IntPtr.Zero; 42private static IntPtr _stateService = IntPtr.Zero; 66if (_global == IntPtr.Zero) { 72if (_stateService == IntPtr.Zero) { 121if (_global != IntPtr.Zero) 128if (_global != IntPtr.Zero) 133if (_global != IntPtr.Zero) 138if (_global != IntPtr.Zero) 143if (_stateService == IntPtr.Zero) 166if (_stateService == IntPtr.Zero) 189if (_stateService == IntPtr.Zero)
RootedObjects.cs (1)
116Pointer = IntPtr.Zero;
Security\ADMembershipProvider.cs (3)
4317IntPtr pDomainControllerInfo = IntPtr.Zero; 4327int result = NativeMethods.DsGetDcName(null, name, IntPtr.Zero, null, flags, out pDomainControllerInfo); 4351if (pDomainControllerInfo != IntPtr.Zero) {
Security\AuthStoreRoleProvider.cs (2)
663return IntPtr.Zero; 673if (token != IntPtr.Zero)
Security\FileAuthorizationModule.cs (7)
60if (token == IntPtr.Zero) 345if (iToken == IntPtr.Zero) 355if (_securityDescriptor == IntPtr.Zero) 375if (iToken == IntPtr.Zero) 379if (secDes == IntPtr.Zero) 430_securityDescriptor != IntPtr.Zero; 442if (_securityDescriptor != IntPtr.Zero) {
Security\PassportIdentity.cs (5)
74if (_iPassport == IntPtr.Zero) 98if (_iPassport == IntPtr.Zero) 138_iPassport = IntPtr.Zero; 951if (_iPassport != IntPtr.Zero) 953_iPassport = IntPtr.Zero;
State\OutOfProcStateClientManager.cs (2)
449results.content = IntPtr.Zero; 509if (results.content != IntPtr.Zero) {
State\StateRuntime.cs (3)
505if (stateItemDelete != IntPtr.Zero) { 634return IntPtr.Zero; 709content._stateItem = IntPtr.Zero;
State\StateWorkerRequest.cs (2)
405Debug.Assert(_unmanagedState == IntPtr.Zero, "_unmanagedState == 0"); 430Debug.Assert(_unmanagedState != IntPtr.Zero, "_unmanagedState != 0");
StringResourceManager.cs (5)
44if (hModule == IntPtr.Zero) { 49if (hModule == IntPtr.Zero) { 56if (hrsrc == IntPtr.Zero) { 64if (hglob == IntPtr.Zero) { 70if (pv == IntPtr.Zero) {
Util\GCUtil.cs (2)
22: IntPtr.Zero; 26if (pointer != IntPtr.Zero) {
Util\Misc.cs (4)
121if (IntPtr.Zero == pUnk) { 125IntPtr ppv = IntPtr.Zero; 141if (IntPtr.Zero != ppv) { 144if (IntPtr.Zero != pUnk) {
Util\PinnedArraySegment.cs (3)
55if (_pointer != IntPtr.Zero) { 57_pointer = IntPtr.Zero; 63if (_pointer == IntPtr.Zero) {
Util\SmtpMail.cs (1)
282if(cdoSysModule != IntPtr.Zero) {
Util\TlsTokenBindingHandle.cs (1)
42if (blob == IntPtr.Zero || blobSize == 0) {
Util\versioninfo.cs (1)
56if (h == IntPtr.Zero)
WebSockets\WebSocketPipe.cs (2)
198reasonPtr = IntPtr.Zero; 207if (reasonPtr != IntPtr.Zero) {
WorkerRequest.cs (3)
592return IntPtr.Zero; 599if (token != IntPtr.Zero) { 618return IntPtr.Zero;
System.Web.ApplicationServices (5)
Hosting\CustomLoaderHelper.cs (5)
130IntPtr pUnknown = IntPtr.Zero; 131IntPtr pInterface = IntPtr.Zero; 136return (hr == 0 && pInterface != IntPtr.Zero); 139if (pUnknown != IntPtr.Zero) { 142if (pInterface != IntPtr.Zero) {
System.Web.DataVisualization (2)
Common\General\Chart.cs (2)
253IntPtr hdc = IntPtr.Zero; 293if (hdc != IntPtr.Zero)
System.Web.Extensions (2)
ClientServices\ClientFormsIdentity.cs (2)
84IntPtr bstr = IntPtr.Zero; 89if (bstr != IntPtr.Zero)
System.Web.Mobile (4)
UI\MobileControls\Design\Util\MSHTMLHost.cs (4)
58Debug.Assert(Handle != IntPtr.Zero, 96Debug.Assert((parent != null) && (parent.Handle != IntPtr.Zero), 204lpFrameInfo.hAccel = IntPtr.Zero; 391tridentOleObject.DoVerb(NativeMethods.OLEIVERB_UIACTIVATE, IntPtr.Zero, (NativeMethods.IOleClientSite)this, 0, parentControl.Handle, r);
System.Web.Services (2)
System\Web\Services\Protocols\RemoteDebugger.cs (2)
196if (bufferPtr == IntPtr.Zero) return; 301if (bufferPtr == IntPtr.Zero) return;
System.Windows.Forms (1219)
misc\DbgUtil.cs (2)
241new HandleRef(null, IntPtr.Zero), 246new HandleRef(null, IntPtr.Zero) );
misc\DpiHelper.cs (1)
109if (hDC != IntPtr.Zero)
misc\GDI\DeviceContext.cs (15)
145if( this.hDC == IntPtr.Zero ) 164Debug.Assert( this.hDC != IntPtr.Zero, "Attempt to use deleted HDC - DC type: " + this.dcType ); 180Debug.Assert(this.hDC != IntPtr.Zero, "Cannot get initial state without a valid HDC"); 190IntPtr handleToDelete = IntPtr.Zero; 196hCurrentPen = IntPtr.Zero; 204hCurrentBrush = IntPtr.Zero; 212hCurrentBmp = IntPtr.Zero; 323Debug.Assert( hdc != IntPtr.Zero, "hdc == 0" ); 388this.hDC = IntPtr.Zero; 400this.hDC = IntPtr.Zero; 431if (this.hDC == IntPtr.Zero) 454if (this.hDC != IntPtr.Zero && this.dcType == DeviceContextType.Display) 464this.hDC = IntPtr.Zero; 620if (wr.HRegion == IntPtr.Zero) { 630Debug.Assert(clip.HRegion != IntPtr.Zero);
misc\GDI\DeviceContext2.cs (5)
190if (font != null && (font.Hfont != IntPtr.Zero)) { 229return DeviceContext.FromHwnd(IntPtr.Zero); 238if (selectedFont != null && selectedFont.Hfont != IntPtr.Zero) { 265return IntPtr.Zero; 290if (result != IntPtr.Zero)
misc\GDI\SafeNativeMethods.cs (4)
66DbgUtil.AssertWin32(hBrush != IntPtr.Zero, "IntCreateSolidBrush(color={0}) failed.", crColor); 80DbgUtil.AssertWin32(hPen != IntPtr.Zero, "IntCreatePen(style={0}, width={1}, color=[{2}]) failed.", fnStyle, nWidth, crColor); 92DbgUtil.AssertWin32(hPen != IntPtr.Zero, "IntExtCreatePen(style={0}, width={1}, brush={2}, styleCount={3}, styles={4}) failed.", fnStyle, dwWidth, lplb, dwStyleCount, lpStyle); 106DbgUtil.AssertWin32(hRgn != IntPtr.Zero, "IntCreateRectRgn([x1={0}, y1={1}, x2={2}, y2={3}]) failed.", x1, y1, x2, y2);
misc\GDI\UnsafeNativeMethods.cs (23)
44DbgUtil.AssertWin32(hdc != IntPtr.Zero, "GetHdc([hWnd=0x{0:X8}]) failed.", hWnd); 87DbgUtil.AssertWin32(hdc != IntPtr.Zero, "CreateDC([driverName={0}], [deviceName={1}], [fileName={2}], [devMode={3}]) failed.", lpszDriverName, lpszDeviceName, lpszOutput, lpInitData.Handle); 101DbgUtil.AssertWin32(hdc != IntPtr.Zero, "CreateIC([driverName={0}], [deviceName={1}], [fileName={2}], [devMode={3}]) failed.", lpszDriverName, lpszDeviceName, lpszOutput, lpInitData.Handle); 117DbgUtil.AssertWin32(compatibleDc != IntPtr.Zero, "CreateCompatibleDC([hdc=0x{0:X8}]) failed", hDC.Handle); 191Debug.Assert(hRgnDest.Wrapper != null && hRgnDest.Handle != IntPtr.Zero, "Destination region is invalid"); 192Debug.Assert(hRgnSrc1.Wrapper != null && hRgnSrc1.Handle != IntPtr.Zero, "Source region 1 is invalid"); 193Debug.Assert(hRgnSrc2.Wrapper != null && hRgnSrc2.Handle != IntPtr.Zero, "Source region 2 is invalid"); 243DbgUtil.AssertWin32(hFont != IntPtr.Zero, "CreateFontIndirect(logFont) failed."); 288DbgUtil.AssertWin32(oldObj != IntPtr.Zero, "SelectObject(hdc=hObj=[0x{0:X8}], hObj=[0x{1:X8}]) failed.", hdc.Handle, obj.Handle); 301DbgUtil.AssertWin32(hGdiObj != IntPtr.Zero, "GetObject(hdc=[0x{0:X8}], type=[{1}]) failed.", hDC, uObjectType ); 313DbgUtil.AssertWin32(hGdiObj != IntPtr.Zero, "GetStockObject({0}) failed.", nIndex ); 387int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero ); 389IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero ); 426int byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 428IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 461byteCount = IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 463IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero);
misc\GDI\WindowsBrush.cs (5)
89if (dc != null && this.nativeHandle != IntPtr.Zero) 95this.nativeHandle = IntPtr.Zero; 119if( this.nativeHandle == IntPtr.Zero ) 129Debug.Assert(this.nativeHandle == IntPtr.Zero, "WindowsBrush object is immutable"); 130Debug.Assert(value != IntPtr.Zero, "WARNING: assigning IntPtr.Zero to the nativeHandle object.");
misc\GDI\WindowsFont.cs (4)
70Debug.Assert( hFont == IntPtr.Zero, "hFont is not null, this will generate a handle leak." ); 78if (this.hFont == IntPtr.Zero) 314Debug.Assert( this.hFont != IntPtr.Zero, "Unexpected null hFont." ); 321this.hFont = IntPtr.Zero;
misc\GDI\WindowsGraphics.cs (2)
82DeviceContext dc = DeviceContext.FromCompatibleDC(IntPtr.Zero); 120Debug.Assert( hDc != IntPtr.Zero, "null hDc" );
misc\GDI\WindowsGraphicsCacheManager.cs (1)
162Debug.Assert(WindowsFontCache[index].Value.Hfont != IntPtr.Zero, "Cached WindowsFont was disposed, enable GDI_FINALIZATION_WATCH to track who did it!");
misc\GDI\WindowsPen.cs (3)
157if (this.nativeHandle != IntPtr.Zero && dc != null) 162this.nativeHandle = IntPtr.Zero; 181if( this.nativeHandle == IntPtr.Zero )
misc\GDI\WindowsRegion.cs (5)
78if( hRegion != IntPtr.Zero ) { 134Debug.Assert(nativeHandle == IntPtr.Zero, "nativeHandle should be null, we're leaking handle"); 148if (this.nativeHandle != IntPtr.Zero) { 155this.nativeHandle = IntPtr.Zero; 182return this.nativeHandle == IntPtr.Zero;
misc\GDI\WindowsSolidBrush.cs (1)
36if(nativeHandle == IntPtr.Zero) // Don't use Debug.Assert, DbgUtil.GetLastErrorStr would always be evaluated.
misc\HandleCollector.cs (2)
139if( handle == IntPtr.Zero ) 240if( handle == IntPtr.Zero )
parent\parent\parent\public\Internal\NDP\Inc\CmsInterop.cs (32)
273if (StringIds != IntPtr.Zero) 276StringIds = IntPtr.Zero; 278if (IntegerIds != IntPtr.Zero) 281IntegerIds = IntPtr.Zero; 325if (StringIds != IntPtr.Zero) 328StringIds = IntPtr.Zero; 330if (IntegerIds != IntPtr.Zero) 333IntegerIds = IntPtr.Zero; 377if (ResourceTypeIdInt != IntPtr.Zero) 380ResourceTypeIdInt = IntPtr.Zero; 382if (ResourceTypeIdString != IntPtr.Zero) 385ResourceTypeIdString = IntPtr.Zero; 434if (TransformMetadata != IntPtr.Zero) 437TransformMetadata = IntPtr.Zero; 439if (DigestValue != IntPtr.Zero) 442DigestValue = IntPtr.Zero; 505if (HashValue != IntPtr.Zero) 508HashValue = IntPtr.Zero; 782if (HashValue != IntPtr.Zero) 785HashValue = IntPtr.Zero; 1150if (ManifestHash != IntPtr.Zero) 1153ManifestHash = IntPtr.Zero; 1155if (MvidValue != IntPtr.Zero) 1158MvidValue = IntPtr.Zero; 1371if (SecurityDescriptor != IntPtr.Zero) 1374SecurityDescriptor = IntPtr.Zero; 1376if (Values != IntPtr.Zero) 1379Values = IntPtr.Zero; 1381if (Keys != IntPtr.Zero) 1384Keys = IntPtr.Zero; 1438if (SecurityDescriptor != IntPtr.Zero) 1441SecurityDescriptor = IntPtr.Zero;
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (49)
25if (BlobData != IntPtr.Zero) 28BlobData = IntPtr.Zero; 1325if (ip != IntPtr.Zero) 1524this.ValueSize = (Value != null) ? new IntPtr((Value.Length + 1) * 2) : IntPtr.Zero; 1571PropertiesToSet = IntPtr.Zero; 1572cPropertiesToSet = IntPtr.Zero; 1582PropertiesToTest = IntPtr.Zero; 1583cPropertiesToTest = IntPtr.Zero; 1592if (PropertiesToSet != IntPtr.Zero) 1595PropertiesToSet = IntPtr.Zero; 1596cPropertiesToSet = IntPtr.Zero; 1599if (PropertiesToTest != IntPtr.Zero) 1602PropertiesToTest = IntPtr.Zero; 1603cPropertiesToTest = IntPtr.Zero; 1606if (InstallerReference != IntPtr.Zero) 1609InstallerReference = IntPtr.Zero; 1616if (rgItems != IntPtr.Zero) 1636return IntPtr.Zero; 1835IntPtr DelimIntPtr = IntPtr.Zero; 1992private IntPtr _pLockCookie = IntPtr.Zero; 2008if (_pLockCookie != IntPtr.Zero) 2011_pLockCookie = IntPtr.Zero; 2039private IntPtr _pLockCookie = IntPtr.Zero; 2055if (_pLockCookie != IntPtr.Zero) 2058_pLockCookie = IntPtr.Zero; 2459if (op.Data.DataPtr != IntPtr.Zero) 2645_userStore = new Store(GetUserStore(0, IntPtr.Zero, ref IID_IStore) as IStore); 2659return new Store(GetUserStore(0, IntPtr.Zero, ref IID_IStore) as IStore); 2827Parameters.CustomStoreList = IntPtr.Zero; 2828Parameters.CultureFallbackList = IntPtr.Zero; 2829Parameters.ProcessorArchitectureList = IntPtr.Zero; 2830Parameters.Source = IntPtr.Zero; 2836SourceInfo.Data = IntPtr.Zero; 2854if (SourceInfo.Data != IntPtr.Zero) 2857SourceInfo.Data = IntPtr.Zero; 2860if (Parameters.Source != IntPtr.Zero) 2863Parameters.Source = IntPtr.Zero; 2877Parameters.CustomStoreList = IntPtr.Zero; 2878Parameters.CultureFallbackList = IntPtr.Zero; 2879Parameters.ProcessorArchitectureList = IntPtr.Zero; 2880Parameters.Source = IntPtr.Zero; 2886SourceInfo.Data = IntPtr.Zero; 2904if (SourceInfo.Data != IntPtr.Zero) 2907SourceInfo.Data = IntPtr.Zero; 2910if (Parameters.Source != IntPtr.Zero) 2913Parameters.Source = IntPtr.Zero; 3099_appcontext.PrepareForExecution(IntPtr.Zero, IntPtr.Zero); 3130_appcontext.GetApplicationStateFilesystemLocation(0, UIntPtr.Zero, IntPtr.Zero, out s);
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (5)
1330if (signerInfo.pChainContext != IntPtr.Zero) 1336if (signerInfo.pwszHash != IntPtr.Zero) { 1339if (signerInfo.pwszDescription != IntPtr.Zero) { 1342if (signerInfo.pwszDescriptionUrl != IntPtr.Zero) { 1426if (timestamperInfo.pChainContext != IntPtr.Zero) {
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (14)
1012IntPtr ppTsContext = IntPtr.Zero; 1013IntPtr ppTsSigner = IntPtr.Zero; 1014IntPtr phStore = IntPtr.Zero; 1023IntPtr.Zero, 1033if (ppTsContext != IntPtr.Zero) 1036if (ppTsSigner != IntPtr.Zero) 1039if (phStore != IntPtr.Zero) 1774IntPtr ppTsContext = IntPtr.Zero; 1775IntPtr ppTsSigner = IntPtr.Zero; 1776IntPtr phStore = IntPtr.Zero; 1790pszTSAPolicyId = IntPtr.Zero, 1821if (ppTsContext != IntPtr.Zero) 1824if (ppTsSigner != IntPtr.Zero) 1827if (phStore != IntPtr.Zero)
winforms\Managed\System\WinForms\AccessibleObject.cs (3)
914ppvObject = IntPtr.Zero; 2165hwnd = IntPtr.Zero; 3334ppvObject = IntPtr.Zero;
winforms\Managed\System\WinForms\Application.cs (34)
156if (hModule != IntPtr.Zero) { 159return (pFunc != IntPtr.Zero); 165if (hModule != IntPtr.Zero) { 167return (pFunc != IntPtr.Zero); 781SafeNativeMethods.EnumWindows(callback, IntPtr.Zero); 798SendThemeChangedRecursive(handle, IntPtr.Zero); 2110if (msg.hwnd != IntPtr.Zero && SafeNativeMethods.IsWindowUnicode(new HandleRef(null, msg.hwnd))) { 2185UnsafeNativeMethods.MsgWaitForMultipleObjectsEx(0, IntPtr.Zero, 100, NativeMethods.QS_ALLINPUT, NativeMethods.MWMO_INPUTAVAILABLE); 2238ppvObj = IntPtr.Zero; 2394IntPtr address = IntPtr.Zero; 2458IntPtr retval = IntPtr.Zero; 2470if (NativeMethods.Succeeded(hr) && retval != IntPtr.Zero) { 2484if (NativeMethods.Succeeded(hr) && pmsocm != IntPtr.Zero) { 2817if (handle != IntPtr.Zero) { 2819handle = IntPtr.Zero; 3007if (handle != IntPtr.Zero) { 3009handle = IntPtr.Zero; 3312UnsafeNativeMethods.PostThreadMessage(id, NativeMethods.WM_QUIT, IntPtr.Zero, IntPtr.Zero); 3342IntPtr userCookie = IntPtr.Zero; 3405HandleRef hwndOwner = new HandleRef(null, IntPtr.Zero); 3429if (hwndOwner.Handle != IntPtr.Zero) { 3436hwndOwner = new HandleRef(null, IntPtr.Zero); 3487if (hwndOwner.Handle != IntPtr.Zero) { 3535if (msg.hwnd != IntPtr.Zero && SafeNativeMethods.IsWindowUnicode(new HandleRef(null, msg.hwnd))) { 3702if (hwndRoot != IntPtr.Zero && UnsafeNativeMethods.IsDialogMessage(new HandleRef(null, hwndRoot), ref msg)) 4041return IntPtr.Zero; 4156UnsafeNativeMethods.PostMessage(new HandleRef(this, HandleInternal), WM_CHECKDESTROY, IntPtr.Zero, IntPtr.Zero); 4168if (hwndChild == IntPtr.Zero) { 4211UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), WM_CHECKDESTROY, IntPtr.Zero, IntPtr.Zero); 4313if (activeHwnd != IntPtr.Zero && UnsafeNativeMethods.IsWindow(new HandleRef(null, activeHwnd))) { 4317if (focusedHwnd != IntPtr.Zero && UnsafeNativeMethods.IsWindow(new HandleRef(null, focusedHwnd))) {
winforms\Managed\System\WinForms\AxHost.cs (31)
189private IntPtr wndprocAddr = IntPtr.Zero; 202private IntPtr hwndFocus = IntPtr.Zero; 1205return IntPtr.Zero; 1453if (hDC == IntPtr.Zero) 1613if (!IsHandleCreated || wndprocAddr == IntPtr.Zero) return true; 2114msg.hwnd = (ContainingControl == null) ? IntPtr.Zero : ContainingControl.Handle; 2470GetOleObject().DoVerb(verb, IntPtr.Zero, oleSite, -1, parent != null ? parent.Handle : IntPtr.Zero, FillInRect(new NativeMethods.COMRECT(), Bounds)); 3294if (uuids.pElems != IntPtr.Zero) { 3308opcparams.hwndOwner = (ContainingControl == null) ? IntPtr.Zero : ContainingControl.Handle; 3380IntPtr handle = (ContainingControl == null) ? IntPtr.Zero : ContainingControl.Handle; 3381SafeNativeMethods.OleCreatePropertyFrame(new HandleRef(this, handle), 0, 0, name, 1, ref o, uuids.cElems, new HandleRef(null, uuids.pElems), Application.CurrentCulture.LCID, 0, IntPtr.Zero); 3390if (uuids.pElems != IntPtr.Zero) 3408return IntPtr.Zero; // bypass Control's anti-reflect logic 3470hwndFocus = IntPtr.Zero; 3560if (handle != IntPtr.Zero) { 4195if (hwnd != IntPtr.Zero) { 4230return parent != null ? parent.Handle : IntPtr.Zero; 4275lpFrameInfo.hAccel = IntPtr.Zero; 4582wndprocAddr = IntPtr.Zero; 4807IntPtr hPal = IntPtr.Zero; 4829IntPtr hPal = IntPtr.Zero; 5156if (lpBuffer == IntPtr.Zero || cpBuffer < 2) 5159IntPtr pbstr = IntPtr.Zero; 5164if (pbstr != IntPtr.Zero) { 5203if (pceltFetched != IntPtr.Zero) 5224if (pceltFetched != IntPtr.Zero) 6691IntPtr hglobal = IntPtr.Zero; 6696if (pointer != IntPtr.Zero) { 6721if (iLockBytes == null && hglobal != IntPtr.Zero) { 6798if (pointer != IntPtr.Zero) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
95if (color.A == 255 && e.HDC != IntPtr.Zero) {
winforms\Managed\System\WinForms\ButtonRenderer.cs (1)
140DrawButtonForHandle(g, bounds, focused, state, IntPtr.Zero);
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (3)
100DrawCheckBox(g, glyphLocation, state, IntPtr.Zero); 141DrawCheckBox(g, glyphLocation, textBounds, checkBoxText, font, flags, focused, state, IntPtr.Zero); 231return GetGlyphSize(g, state, IntPtr.Zero);
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
1106m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
398if (hwndHdr != IntPtr.Zero) {
winforms\Managed\System\WinForms\ComboBox.cs (13)
655return focus != IntPtr.Zero && ((childEdit != null && focus == childEdit.Handle) || (childListBox != null && focus == childListBox.Handle)); 2048if (childEdit != null && childEdit.Handle != IntPtr.Zero) { 2051if (childListBox != null && childListBox.Handle != IntPtr.Zero) { 2205return IntPtr.Zero; 2441if (hwnd != IntPtr.Zero) { 2520dropDownHandle = IntPtr.Zero; 3367if (dropDownHandle != IntPtr.Zero) { 3442if (childEdit != null && childEdit.Handle != IntPtr.Zero) { 3443UnsafeNativeMethods.SendMessage(new HandleRef(this, childEdit.Handle), NativeMethods.WM_SETTEXT, IntPtr.Zero, s); 3620if (oldPal != IntPtr.Zero) { 3774if (m.WParam == IntPtr.Zero) { 4442Debug.Assert(owner != null && owner.Handle != IntPtr.Zero, "ComboBox's handle hasn't been created"); 5871UnsafeNativeMethods.EnumThreadWindows(SafeNativeMethods.GetCurrentThreadId(), new NativeMethods.EnumThreadWindowsCallback(this.Callback), new HandleRef(null, IntPtr.Zero));
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (1)
153DrawDropDownButtonForHandle(g, bounds, state, IntPtr.Zero);
winforms\Managed\System\WinForms\CommonDialog.cs (10)
167return IntPtr.Zero; 222return IntPtr.Zero; 275IntPtr hwndOwner = IntPtr.Zero; 282if (hwndOwner == IntPtr.Zero) { 286if (hwndOwner == IntPtr.Zero) { 299System.Diagnostics.Debug.Assert(IntPtr.Zero == defOwnerWndProc, "The previous subclass wasn't properly cleaned up"); 301IntPtr userCookie = IntPtr.Zero; 320if ( IntPtr.Zero != defOwnerWndProc || currentSubClass != hookedWndProc) { 325defOwnerWndProc = IntPtr.Zero; 326hookedWndProc = IntPtr.Zero;
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (2)
410return IntPtr.Zero; 594if (_original == null) { ppvObj = IntPtr.Zero; return false; }
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\BaseCAMarshaler.cs (2)
51if (itemArray == null && caArrayAddress != IntPtr.Zero) { 136caArrayAddress = IntPtr.Zero;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (5)
41if (uuids.pElems != IntPtr.Zero) { 59IntPtr handle = (parent == null ? IntPtr.Zero : parent.Handle); 69SafeNativeMethods.OleCreatePropertyFrame(new HandleRef(parent, handle), 0, 0, "PropertyPages", 1, ref o, 1, new Guid[]{guid}, Application.CurrentCulture.LCID, 0, IntPtr.Zero); 92SafeNativeMethods.OleCreatePropertyFrame(new HandleRef(parent, handle), 0, 0, "PropertyPages", 1, ref o, uuids.cElems, new HandleRef(uuids, uuids.pElems), Application.CurrentCulture.LCID, 0, IntPtr.Zero); 96if (uuids.pElems != IntPtr.Zero) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
25private IntPtr lastHandle = IntPtr.Zero; 56lastHandle = IntPtr.Zero;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (6)
55IntPtr pbstrs = IntPtr.Zero; 56IntPtr pvars = IntPtr.Zero; 199if (ptr != IntPtr.Zero) { 205if (bstr != IntPtr.Zero) { 231if (ptr != IntPtr.Zero) { 238if (curVariant != IntPtr.Zero) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
27IntPtr lastPalette = IntPtr.Zero; 70if (handle != IntPtr.Zero) { 133lastNativeHandle = lastPalette = IntPtr.Zero;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
410IntPtr pTypeAttr = IntPtr.Zero;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (2)
1090, IntPtr.Zero ); 113if (objAddrs[i] != IntPtr.Zero) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (25)
131if (NativeMethods.Failed(pCI.GetInfoOfIndex(i, 1 /*MULTICLASSINFO_GETTYPEINFO*/, ref temp, 0, 0, IntPtr.Zero, IntPtr.Zero))){ 283IntPtr pTypeAttr = IntPtr.Zero; 342Debug.Assert(typeDesc.unionMember != IntPtr.Zero, "typeDesc doesn't contain an hreftype!"); 348Debug.Assert(typeDesc.unionMember != IntPtr.Zero, "typeDesc doesn't contain an refTypeDesc!"); 389IntPtr pRefTypeAttr = IntPtr.Zero; 621IntPtr pTypeAttr = IntPtr.Zero; 624if (!NativeMethods.Succeeded(hr) || pTypeAttr == IntPtr.Zero) { 644IntPtr pFuncDesc = IntPtr.Zero; 647if (!NativeMethods.Succeeded(hr) || pFuncDesc == IntPtr.Zero) { 679Debug.Assert(funcDesc.lprgelemdescParam != IntPtr.Zero, "ELEMDESC param is null!"); 680if (funcDesc.lprgelemdescParam == IntPtr.Zero || funcDesc.cParams != 1) { 726IntPtr pTypeAttr = IntPtr.Zero; 729if (!NativeMethods.Succeeded(hr) || pTypeAttr == IntPtr.Zero) { 736if (pTypeAttr == IntPtr.Zero) { 762IntPtr pVarDesc = IntPtr.Zero; 765if (!NativeMethods.Succeeded(hr) || pVarDesc == IntPtr.Zero) { 776varDesc.unionMember == IntPtr.Zero) { 826if (pVarDesc != IntPtr.Zero) { 865if (pTypeInfoUnk != IntPtr.Zero) { 884IntPtr pTypeAttr = IntPtr.Zero; 887if (!NativeMethods.Succeeded(hr) || pTypeAttr == IntPtr.Zero) { 901IntPtr pVarDesc = IntPtr.Zero; 904if (!NativeMethods.Succeeded(hr) || pVarDesc == IntPtr.Zero) { 926if (pVarDesc != IntPtr.Zero) {
winforms\Managed\System\WinForms\ContainerControl.cs (2)
678if (focusHandle == IntPtr.Zero || Control.FromChildHandleInternal(focusHandle) != activeControl) { 740if (dc == IntPtr.Zero) {
winforms\Managed\System\WinForms\Control.cs (138)
1064Debug.Assert(backBrush != IntPtr.Zero, "Failed to create brushHandle"); 1670if (focusHwnd == IntPtr.Zero) { 1845if ((UnsafeNativeMethods.GetModuleHandle(ExternDll.Comctl32) != IntPtr.Zero) 1846|| (UnsafeNativeMethods.LoadLibraryFromSystemPathIfAvailable(ExternDll.Comctl32) != IntPtr.Zero)) { 1882cp.Parent = parent == null ? IntPtr.Zero : parent.InternalHandle; 1886cp.Parent = IntPtr.Zero; 1899if (cp.Parent == IntPtr.Zero && IsActiveX) { 2936while (parentHandle != IntPtr.Zero) { 2971get { return window.Handle != IntPtr.Zero; } 3015(next = UnsafeNativeMethods.GetWindow(new HandleRef(null, prev), NativeMethods.GW_HWNDPREV)) != IntPtr.Zero; 3051return IntPtr.Zero; 3581IntPtr regionHandle = IntPtr.Zero; 3594regionHandle = IntPtr.Zero; 3598if (regionHandle != IntPtr.Zero) { 4222IntPtr.Zero); 4265IntPtr.Zero); 5777IntPtr userCookie = IntPtr.Zero; 5820if (cp.Parent == IntPtr.Zero && (cp.Style & NativeMethods.WS_CHILD) != 0) { 5979UnsafeNativeMethods.DefMDIChildProc(InternalHandle, NativeMethods.WM_CLOSE, IntPtr.Zero, IntPtr.Zero); 5999if (p != IntPtr.Zero) { 6406while (handle != IntPtr.Zero) { 6677IntPtr childMenu = IntPtr.Zero; 6803hWndChild != IntPtr.Zero; 7043IntPtr hWnd = IntPtr.Zero; 7047Debug.Assert(hWnd == IntPtr.Zero || UnsafeNativeMethods.IsWindow(new HandleRef(null, hWnd))); 7053if (hWnd == IntPtr.Zero || UnsafeNativeMethods.IsWindow(new HandleRef(null, hWnd))) { 7165IntPtr hwndMouseWheel = IntPtr.Zero; 7173if (hwndMouseWheel != IntPtr.Zero) { 7216Debug.Assert(regionHandle != IntPtr.Zero, "Region wasn't null but HRGN is?"); 7838UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), threadCallbackMessage, IntPtr.Zero, IntPtr.Zero); 7863if (m.LParam == IntPtr.Zero) { 7970if (p != IntPtr.Zero) { 8513IntPtr hdc = IntPtr.Zero; 8519if (hdc == IntPtr.Zero) { 8754regionHandle = IntPtr.Zero; 8758if (regionHandle != IntPtr.Zero) { 8817UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), threadCallbackMessage, IntPtr.Zero, IntPtr.Zero); 8875if (p != IntPtr.Zero) { 9645using (WindowsGraphics wg = (e.HDC != IntPtr.Zero && DisplayInformation.BitsPerPixel > 8) ? 10353Debug.Assert(hClippingRegion.Handle != IntPtr.Zero, "CreateRectRgn() failed."); 10514IntPtr newWParam = IntPtr.Zero; 10605int bytesNeeded = UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, keyChar, keyChar.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 10610UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, keyChar, keyChar.Length, mbcsBytes, mbcsBytes.Length, IntPtr.Zero, IntPtr.Zero); 10632IntPtr.Zero, 10633IntPtr.Zero); 10826UnsafeNativeMethods.GetParent(new HandleRef(null, topMostParent.Handle)) == IntPtr.Zero ? NativeMethods.WM_CHANGEUISTATE : NativeMethods.WM_UPDATEUISTATE, 10828IntPtr.Zero); 11030if (parentHandle.Handle != IntPtr.Zero // the parent was not null 11961if (value == IntPtr.Zero) { 11973if (parentHandle != value || (parentHandle == IntPtr.Zero && !topLevel)) { 11976bool recreate = (parentHandle == IntPtr.Zero && !topLevel) 11977|| (value == IntPtr.Zero && topLevel); 11997if (value == IntPtr.Zero) { 12010else if (value == IntPtr.Zero && parentHandle == IntPtr.Zero && topLevel) { 12014UnsafeNativeMethods.SetParent(new HandleRef(window, Handle), new HandleRef(null, IntPtr.Zero)); 12057if (result != IntPtr.Zero && realizePalette) { 12102SetParentHandle(IntPtr.Zero); 12644while ((hWnd = UnsafeNativeMethods.GetWindow(new HandleRef(null, hWnd), NativeMethods.GW_HWNDPREV)) != IntPtr.Zero) { 12673if (parentHandle != IntPtr.Zero) { 12798while (parentHandle != IntPtr.Zero) { 12810if (lastParentHandle != IntPtr.Zero) { 12811UnsafeNativeMethods.PostMessage(new HandleRef(null, lastParentHandle), NativeMethods.WM_CLOSE, IntPtr.Zero, IntPtr.Zero); 12833if (IntPtr.Zero == m.LParam) { 12906if (m.Result != IntPtr.Zero) { 12927if (m.WParam == IntPtr.Zero) { 12960if (dc == IntPtr.Zero) { // This happens under extreme stress conditions 13182if (m.WParam == IntPtr.Zero) { 13187Debug.Assert(m.LParam != IntPtr.Zero, "m.lparam is null"); 13213if (m.Result != IntPtr.Zero) { 13618if (p == IntPtr.Zero) { 13628if (handle != IntPtr.Zero) { 13658IntPtr hWnd = IntPtr.Zero; 13665if (m.WParam == IntPtr.Zero) { 13670if (dc == IntPtr.Zero) { 13686IntPtr oldPal = IntPtr.Zero; 13692if (doubleBuffered || m.WParam == IntPtr.Zero) { 13743if ((m.WParam == IntPtr.Zero) && GetStyle(ControlStyles.AllPaintingInWmPaint) || doubleBuffered) { 13766if (oldPal != IntPtr.Zero) { 13865IntPtr hWnd = IntPtr.Zero; 13876if (hWnd == IntPtr.Zero || !ReflectMessageInternal(hWnd, ref m)) { 13932bool visible = m.WParam != IntPtr.Zero; 14190m.Result = IntPtr.Zero; 14329m.Result = IntPtr.Zero; 14335m.Result = IntPtr.Zero; 14417if (hwndFocus == IntPtr.Zero) { 14421IntPtr result = IntPtr.Zero; 14424while (result == IntPtr.Zero && hwndFocus != IntPtr.Zero && hwndFocus != hwndDesktop) { 15038value.SetParentHandle(IntPtr.Zero); 15278pCI.hAccel = IntPtr.Zero; 16374IntPtr hfont = IntPtr.Zero; 16564if (lpmsg != IntPtr.Zero) { 16572IntPtr hwndMap = msg.hwnd == IntPtr.Zero ? hwndParent : msg.hwnd; 16932 if (accelTable != IntPtr.Zero) { 16934 accelTable = IntPtr.Zero; 16940if (accelBlob != IntPtr.Zero) { 17008hwnd = IntPtr.Zero; 17069IntPtr hwndParent = IntPtr.Zero; 17208hwndParent = IntPtr.Zero; 17264stream = stg.OpenStream(this.GetStreamName(), IntPtr.Zero, NativeMethods.STGM_READ | NativeMethods.STGM_SHARE_EXCLUSIVE, 0); 17270stream = stg.OpenStream(GetType().FullName, IntPtr.Zero, NativeMethods.STGM_READ | NativeMethods.STGM_SHARE_EXCLUSIVE, 0); 17438if (clipRegion == IntPtr.Zero) { 17442if (region == IntPtr.Zero) { 17632IntPtr hfont = IntPtr.Zero; 17778: base(IntPtr.Zero, true) { 17831if (hresult != 0 || ppv == IntPtr.Zero) { 17843return (IntPtr.Zero == base.handle); 17854base.handle = IntPtr.Zero; 17855if (IntPtr.Zero != ptr1) { 17899IntPtr result = IntPtr.Zero; 17903if (hresult != 0 || result == IntPtr.Zero) { 18193if (accelTable != IntPtr.Zero) { 18195accelTable = IntPtr.Zero; 18378if (clipRegion != IntPtr.Zero) { 18381clipRegion = IntPtr.Zero; 18988IntPtr hfont = IntPtr.Zero; 19252hBitmap = new HandleRef(this, SafeNativeMethods.CreateBitmap(size.Width, size.Height, planes, bitsPixel, IntPtr.Zero)); 19262if (hBitmapDC.Handle == IntPtr.Zero || hMetafileDC.Handle == IntPtr.Zero || hBitmap.Handle == IntPtr.Zero) { 19300HandleRef hNullBitmap = new HandleRef(this, SafeNativeMethods.CreateBitmap(1, 1, 1, 1, IntPtr.Zero)); 19301if (hNullBitmap.Handle == IntPtr.Zero) return fSuccess; 19305if (hBitmap.Handle == IntPtr.Zero) return fSuccess; 19411private IntPtr handle = IntPtr.Zero; // Associated window handle (if any) 19640if (oleAccAvailable == IntPtr.Zero) { 19648freeLib = (oleAccAvailable != IntPtr.Zero); 19655if (handle != IntPtr.Zero && oleAccAvailable != IntPtr.Zero) { 19997Debug.Assert(handle != IntPtr.Zero, "FontHandleWrapper disposed, but still being accessed"); 20013if (handle != IntPtr.Zero) { 20018handle = IntPtr.Zero;
winforms\Managed\System\WinForms\Control.Ime.cs (12)
420if( focusHandle != IntPtr.Zero ) { 428if( focusHandle != IntPtr.Zero ) { 718m.Result = IntPtr.Zero; 903if( oldContext != IntPtr.Zero ) { 925if( inputContext == IntPtr.Zero ) { 926if( originalImeContext == IntPtr.Zero ) { 929if( inputContext != IntPtr.Zero ) { 961IntPtr inputContext = IntPtr.Zero; 977if( inputContext == IntPtr.Zero ) { 1021if( inputContext != IntPtr.Zero ) { 1118if( inputContext != IntPtr.Zero ) { 1237if( inputContext != IntPtr.Zero ) {
winforms\Managed\System\WinForms\ControlPaint.cs (8)
206enoughBits, IntPtr.Zero, 0); 210if (hBitmap == IntPtr.Zero) { 216if (previousBitmap == IntPtr.Zero) { 271Debug.Assert(data.Scan0 != IntPtr.Zero, "BitmapData.Scan0 is null; check marshalling"); 1383graphics.DrawImage(bitmap, new Rectangle(x, y, width, height), 0, 0, width, height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero); 1524g.DrawImage(image, dest, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero); 1537GraphicsUnit.Pixel, attributes, null, IntPtr.Zero); 1807if (pen != IntPtr.Zero)
winforms\Managed\System\WinForms\Cursor.cs (14)
44private IntPtr handle = IntPtr.Zero; // handle to loaded image 104if (handle == IntPtr.Zero) { 230IntPtr handle = (value == null) ? IntPtr.Zero : value.handle; 244if (handle == IntPtr.Zero) { 285if (info.hbmMask != IntPtr.Zero) { 288info.hbmMask = IntPtr.Zero; 290if (info.hbmColor != IntPtr.Zero) { 293info.hbmColor = IntPtr.Zero; 400if (handle != IntPtr.Zero) { 402handle = IntPtr.Zero; 583handle = IntPtr.Zero; 596if (info.hbmColor != IntPtr.Zero) { 601else if (info.hbmMask != IntPtr.Zero) { 606if (info.hbmMask != IntPtr.Zero) {
winforms\Managed\System\WinForms\Cursors.cs (1)
55if (handle == IntPtr.Zero) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
5783if (handle != IntPtr.Zero) {
winforms\Managed\System\WinForms\DataGridToolTip.cs (2)
36if (tipWindow == null || tipWindow.Handle == IntPtr.Zero) 59Debug.Assert(tipWindow != null && tipWindow.Handle != IntPtr.Zero, "the tipWindow was not initialized, bailing out");
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1330UnsafeNativeMethods.SetFocus(new HandleRef(null, IntPtr.Zero));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
5437IntPtr handle = IntPtr.Zero; 5442if (handle != IntPtr.Zero) 29925if (m.LParam == IntPtr.Zero)
winforms\Managed\System\WinForms\DataObject.cs (31)
764if (medium.unionmember == IntPtr.Zero) { 773medium.unionmember = IntPtr.Zero; 950if (handle != IntPtr.Zero) { 955if (handle == IntPtr.Zero) { 959if (ptr == IntPtr.Zero) { 986if (handle == IntPtr.Zero) { 993IntPtr currentPtr = IntPtr.Zero; 1017if (newHandle == IntPtr.Zero) { 1021if (basePtr == IntPtr.Zero) { 1076if (handle == IntPtr.Zero) { 1079IntPtr newHandle = IntPtr.Zero; 1087if (newHandle == IntPtr.Zero) { 1091if (ptr == IntPtr.Zero) { 1103int pinvokeSize = UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, str, str.Length, null, 0, IntPtr.Zero, IntPtr.Zero); 1106UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, str, str.Length, strBytes, strBytes.Length, IntPtr.Zero, IntPtr.Zero); 1113if (newHandle == IntPtr.Zero) { 1117if (ptr == IntPtr.Zero) { 1124if (newHandle != IntPtr.Zero) { 1131if (handle == IntPtr.Zero) { 1134IntPtr newHandle = IntPtr.Zero; 1144if (newHandle == IntPtr.Zero) { 1148if (ptr == IntPtr.Zero) { 1278temp.ptd = IntPtr.Zero; 1318rgelt[0].ptd = IntPtr.Zero; 1417if (medium.unionmember != IntPtr.Zero) { 1447if (hglobal != IntPtr.Zero) { 1558if (medium.unionmember != IntPtr.Zero) { 1618if (medium.unionmember != IntPtr.Zero) { 1694if (ptr == IntPtr.Zero){
winforms\Managed\System\WinForms\DateTimePicker.cs (3)
1575if (c.hwndFound != IntPtr.Zero) { 1637if (handle != IntPtr.Zero) { 1735public IntPtr hwndFound = IntPtr.Zero;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (11)
680Debug.Assert(hbrushDither == IntPtr.Zero, "Brush should not be recreated."); 688Debug.Assert(hbitmapTemp != IntPtr.Zero, 691if (hbitmapTemp != IntPtr.Zero) { 694Debug.Assert(hbrushDither != IntPtr.Zero, 707IntPtr hfontOld = IntPtr.Zero; 715if (((state & STATE_SELECTED) != 0) && (hbrushDither != IntPtr.Zero)) { 769if (hfontOld != IntPtr.Zero) 782if (hbrushDither == IntPtr.Zero) { 827if (!RecreatingHandle && (hbrushDither != IntPtr.Zero)) { 829hbrushDither = IntPtr.Zero; 836if (hbrushOld != IntPtr.Zero) {
winforms\Managed\System\WinForms\ErrorProvider.cs (6)
941if (Handle == IntPtr.Zero) { 1188IntPtr windowRegionHandle = IntPtr.Zero; 1260windowRegionHandle = IntPtr.Zero; 1273if (windowRegionHandle != IntPtr.Zero) { 1695IntPtr mask = IntPtr.Zero; 1724if (mask != IntPtr.Zero)
winforms\Managed\System\WinForms\FileDialog.cs (6)
760int sizeNeeded = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this, dialogHWnd), 1124 /*CDM_GETSPEC*/, System.IntPtr.Zero, System.IntPtr.Zero); 813if (dialogHWnd != IntPtr.Zero) { 814UnsafeNativeMethods.EndDialog(new HandleRef(this, dialogHWnd), IntPtr.Zero); 819return IntPtr.Zero; 1034if (ofn.lpstrFile != IntPtr.Zero) {
winforms\Managed\System\WinForms\FileDialog_Vista.cs (3)
307IntPtr pidl = IntPtr.Zero; 312IntPtr.Zero, //No parent specified 313IntPtr.Zero,
winforms\Managed\System\WinForms\FileDialogCustomPlace.cs (1)
109int result = UnsafeNativeMethods.Shell32.SHGetFolderPathEx(ref folderGuid, 0, IntPtr.Zero, path);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (12)
234IntPtr pidlRoot = IntPtr.Zero; 238if (pidlRoot == IntPtr.Zero) 241if (pidlRoot == IntPtr.Zero) 262IntPtr pidlRet = IntPtr.Zero; 263IntPtr pszDisplayName = IntPtr.Zero; 264IntPtr pszSelectedPath = IntPtr.Zero; 281bi.lParam = IntPtr.Zero; 287if (pidlRet != IntPtr.Zero) 305if (pidlRet != IntPtr.Zero) 311if (pszSelectedPath != IntPtr.Zero) 315if (pszDisplayName != IntPtr.Zero) 347if (selectedPidl != IntPtr.Zero)
winforms\Managed\System\WinForms\FontDialog.cs (6)
479int index = (int)UnsafeNativeMethods.SendDlgItemMessage(new HandleRef(null, hWnd), 0x473, NativeMethods.CB_GETCURSEL, IntPtr.Zero, IntPtr.Zero); 482NativeMethods.CB_GETITEMDATA, (IntPtr) index, IntPtr.Zero)); 575IntPtr logFontPtr = IntPtr.Zero; 582cf.hDC = IntPtr.Zero; 625if (logFontPtr != IntPtr.Zero)
winforms\Managed\System\WinForms\Form.cs (31)
2515if (ownerWindow.Handle == IntPtr.Zero) { 3344hmenu = IntPtr.Zero; 3701if (icon != null && TaskbarOwner.Handle != IntPtr.Zero) { 4106using( Graphics graphics = Graphics.FromHwndInternal(IntPtr.Zero /*screen*/) ) { 4450IntPtr ownerHandle = IntPtr.Zero; 4453if (ownerHandle != IntPtr.Zero) { 4495IntPtr hWndOwner = IntPtr.Zero; 4499if (hWndOwner != IntPtr.Zero) { 5193m.Result = IntPtr.Zero; 5293if (ctlClient != null && ctlClient.Handle != IntPtr.Zero && 6099IntPtr hWndOldOwner = IntPtr.Zero; 6105if (hWndOwner != IntPtr.Zero && hWndOwner != Handle) { 6170if (hWndCapture != IntPtr.Zero) { 6171UnsafeNativeMethods.SendMessage(new HandleRef(null, hWndCapture), NativeMethods.WM_CANCELMODE, IntPtr.Zero, IntPtr.Zero); 6176IntPtr hWndOldOwner = IntPtr.Zero; 6206if (hWndOwner != IntPtr.Zero && hWndOwner != Handle) { 6547UnsafeNativeMethods.SendMessage(new HandleRef(ctlClient, ctlClient.Handle), NativeMethods.WM_MDISETMENU, dummyMenu.Handle, IntPtr.Zero); 6553UnsafeNativeMethods.SendMessage(new HandleRef(ctlClient, ctlClient.Handle), NativeMethods.WM_MDISETMENU, menu.Handle, IntPtr.Zero); 6560if (hMenu != IntPtr.Zero) { 6701if (hMenu == IntPtr.Zero) { 7077e.Cancel = m.WParam == IntPtr.Zero; 7229m.Result = IntPtr.Zero; 7267if (m.Result != IntPtr.Zero) { 7627m.Result = IntPtr.Zero; 7635m.Result = IntPtr.Zero; 7753Debug.Assert(lParam != IntPtr.Zero); 7835if (window.Handle != IntPtr.Zero) { 7859toolInfo.uId = IntPtr.Zero; 7863toolInfo.hwnd = IntPtr.Zero; 7899if (window.Handle != IntPtr.Zero) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
804m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\HtmlDocument.cs (8)
551dp.rgvarg = IntPtr.Zero; 569dp.rgvarg = (args == null) ? IntPtr.Zero : HtmlDocument.ArrayToVARIANTVector(args); 571dp.rgdispidNamedArgs = IntPtr.Zero; 595if (dp.rgvarg != IntPtr.Zero) 1207IntPtr leftPtr = IntPtr.Zero; 1208IntPtr rightPtr = IntPtr.Zero; 1217if (leftPtr != IntPtr.Zero) 1221if (rightPtr != IntPtr.Zero)
winforms\Managed\System\WinForms\HtmlElement.cs (9)
600dp.rgvarg = IntPtr.Zero; 619dp.rgvarg = (parameter == null) ? IntPtr.Zero : HtmlDocument.ArrayToVARIANTVector(parameter); 621dp.rgdispidNamedArgs = IntPtr.Zero; 645if (dp.rgvarg != IntPtr.Zero) 671((UnsafeNativeMethods.IHTMLElement3)this.NativeHtmlElement).FireEvent(eventName, IntPtr.Zero); 1540IntPtr leftPtr = IntPtr.Zero; 1541IntPtr rightPtr = IntPtr.Zero; 1550if (leftPtr != IntPtr.Zero) 1554if (rightPtr != IntPtr.Zero)
winforms\Managed\System\WinForms\HtmlWindow.cs (4)
785IntPtr leftPtr = IntPtr.Zero; 786IntPtr rightPtr = IntPtr.Zero; 795if (leftPtr != IntPtr.Zero) 799if (rightPtr != IntPtr.Zero)
winforms\Managed\System\WinForms\ImageList.cs (3)
550if (Handle == IntPtr.Zero) throw new InvalidOperationException(SR.GetString(SR.ImageListCreateFailed)); 948if (himl != IntPtr.Zero) { 950himl = IntPtr.Zero;
winforms\Managed\System\WinForms\ImageListStreamer.cs (3)
79if (nativeImageList.Handle == IntPtr.Zero) 215IntPtr handle = IntPtr.Zero; 223if (handle == IntPtr.Zero || !WriteImageList(handle, stream))
winforms\Managed\System\WinForms\InputLanguage.cs (3)
78if (handleOld == IntPtr.Zero) { 317uint res = UnsafeNativeMethods.SHLoadIndirectString(layoutDisplayName, sb, (uint)sb.Capacity, IntPtr.Zero); 346bool localeSupportedBySystem = !(m.WParam == IntPtr.Zero);
winforms\Managed\System\WinForms\ListBox.cs (2)
1652bool selected = (unchecked( (int) (long)SendMessage(NativeMethods.LB_GETSEL, (IntPtr)index, IntPtr.Zero)) > 0); 2348if (oldPal != IntPtr.Zero) {
winforms\Managed\System\WinForms\ListView.cs (32)
129private IntPtr odCacheFontHandle = IntPtr.Zero; 592SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, IntPtr.Zero); 1195SendMessage(NativeMethods.LVM_SETIMAGELIST, (IntPtr)NativeMethods.LVSIL_NORMAL, value == null ? IntPtr.Zero: value.Handle); 1439SendMessage(NativeMethods.LVM_SETIMAGELIST, (IntPtr)NativeMethods.LVSIL_SMALL, value == null ? IntPtr.Zero: value.Handle); 1551SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, value == null ? IntPtr.Zero: value.Handle); 1571SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, IntPtr.Zero); 1586SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, (imageListState == null || imageListState.Images.Count == 0) ? IntPtr.Zero : imageListState.Handle); 2905if(lvgroup.pszHeader != IntPtr.Zero) { 3046if (SendMessage(NativeMethods.LVM_HASGROUP, DefaultGroup.ID, 0) == IntPtr.Zero) { 3183lvFindInfo.lParam = IntPtr.Zero; 3587if (hwndHdr != IntPtr.Zero) 3870IntPtr hGlobalColumns = IntPtr.Zero; 3910if (lvItem.cColumns > maxColumns || hGlobalColumns == IntPtr.Zero) { 3911if (hGlobalColumns != IntPtr.Zero) { 3973if (hGlobalColumns != IntPtr.Zero) { 4027IntPtr handle = (LargeImageList == null) ? IntPtr.Zero : LargeImageList.Handle; 4568if (hdrHWND != IntPtr.Zero) { 4570IntPtr prc = IntPtr.Zero; 4571IntPtr pwpos = IntPtr.Zero; 4574if (prc == IntPtr.Zero) { 4581if (prc == IntPtr.Zero) { 4610if (prc != IntPtr.Zero) { 4613if (pwpos != IntPtr.Zero) { 4761int retval = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.LVM_REMOVEGROUP, group.ID, IntPtr.Zero); 5161IntPtr handle = (SmallImageList == null) ? IntPtr.Zero : SmallImageList.Handle; 5180UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.LVM_SORTITEMS, IntPtr.Zero, callback); 5186IntPtr handle = IntPtr.Zero; 5651if (header.pItem != IntPtr.Zero) { 5801SendMessage(NativeMethods.LVM_SETIMAGELIST, NativeMethods.LVSIL_STATE, IntPtr.Zero); 6036if (this.VirtualMode && m.LParam != IntPtr.Zero) { 6123if (VirtualMode && m.LParam != IntPtr.Zero) { 6140if (ShowItemToolTips && m.LParam != IntPtr.Zero) {
winforms\Managed\System\WinForms\ListViewItem.cs (2)
1160Debug.Assert(!updateOwner || listView.SendMessage(NativeMethods.LVM_ISGROUPVIEWENABLED, 0, 0) != IntPtr.Zero, "Groups not enabled"); 1161Debug.Assert(!updateOwner || listView.SendMessage(NativeMethods.LVM_HASGROUP, lvItem.iGroupId, 0) != IntPtr.Zero, "Doesn't contain group id: " + lvItem.iGroupId.ToString(CultureInfo.InvariantCulture));
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
1204if (inputContext != IntPtr.Zero)
winforms\Managed\System\WinForms\MDIClient.cs (11)
120cp.Param = new NativeMethods.CLIENTCREATESTRUCT(IntPtr.Zero, 1); 166if (Handle == IntPtr.Zero) 192if (site != null && site.DesignMode && Handle != IntPtr.Zero) { 290IntPtr rgn1 = IntPtr.Zero; 291IntPtr rgn2 = IntPtr.Zero; 303if (rgn1 == IntPtr.Zero || rgn2 == IntPtr.Zero) 314rgn1 = IntPtr.Zero; 318if (rgn2 != IntPtr.Zero) { 324if (rgn1 != IntPtr.Zero) { 356if (ParentInternal != null && ParentInternal.Site != null && ParentInternal.Site.DesignMode && Handle != IntPtr.Zero) {
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
134Icon icon = (hIcon != IntPtr.Zero) ? Icon.FromHandle(hIcon) : Form.DefaultIcon;
winforms\Managed\System\WinForms\Menu.cs (7)
84if (handle == IntPtr.Zero) handle = CreateMenuHandle(); 216if (handle != IntPtr.Zero) { 219handle = IntPtr.Zero; 312if (handle != IntPtr.Zero) { 314this.handle = IntPtr.Zero; 487return IntPtr.Zero; 654if (result == IntPtr.Zero)
winforms\Managed\System\WinForms\MenuItem.cs (11)
73private IntPtr msaaMenuInfoPtr = IntPtr.Zero; 485if ((info.hSubMenu == IntPtr.Zero || info.hSubMenu == Handle) && info.wID == id) { 859hasHandle = info.hSubMenu != IntPtr.Zero; 908info.hbmpChecked = IntPtr.Zero; 909info.hbmpUnchecked = IntPtr.Zero; 1059Debug.Assert(msaaMenuInfoPtr != IntPtr.Zero); 1066if (msaaMenuInfoPtr != IntPtr.Zero) { 1069msaaMenuInfoPtr = IntPtr.Zero; 1470if (hasHandle && info.hSubMenu == IntPtr.Zero) { 1473hasHandle = info.hSubMenu != IntPtr.Zero; 1505if (oldPal != IntPtr.Zero) {
winforms\Managed\System\WinForms\Message.cs (1)
103m.result = IntPtr.Zero;
winforms\Managed\System\WinForms\MessageBox.cs (4)
455IntPtr handle = IntPtr.Zero; 465IntPtr userCookie = IntPtr.Zero; 469if (UnsafeNativeMethods.GetModuleHandle(ExternDll.Shell32) == IntPtr.Zero) { 470if (UnsafeNativeMethods.LoadLibraryFromSystemPathIfAvailable(ExternDll.Shell32) == IntPtr.Zero) {
winforms\Managed\System\WinForms\MonthCalendar.cs (5)
114private IntPtr mdsBuffer = IntPtr.Zero; 1387if (mdsBuffer != IntPtr.Zero) { 1389mdsBuffer = IntPtr.Zero; 1929if (mdsBuffer != IntPtr.Zero) { 1931mdsBuffer = IntPtr.Zero;
winforms\Managed\System\WinForms\NativeMethods.cs (88)
62public static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero); 2710internal IntPtr hbitmap = IntPtr.Zero; 2711internal IntPtr hpalette = IntPtr.Zero; 2727internal IntPtr hicon = IntPtr.Zero; 2743internal IntPtr hemf = IntPtr.Zero; 2796internal IntPtr hinst = IntPtr.Zero; 2845public IntPtr dwCookie = IntPtr.Zero; 3001public IntPtr himl = IntPtr.Zero; 3003public IntPtr hdcDst = IntPtr.Zero; 3021public IntPtr hbmImage = IntPtr.Zero; 3022public IntPtr hbmMask = IntPtr.Zero; 3124public IntPtr lpfnWndProc = IntPtr.Zero; 3127public IntPtr hInstance = IntPtr.Zero; 3128public IntPtr hIcon = IntPtr.Zero; 3129public IntPtr hCursor = IntPtr.Zero; 3130public IntPtr hbrBackground = IntPtr.Zero; 3131public IntPtr lpszMenuName = IntPtr.Zero; 3132public IntPtr lpszClassName = IntPtr.Zero; 3281public IntPtr lpReserved = IntPtr.Zero; 3282public IntPtr lpDesktop = IntPtr.Zero; 3283public IntPtr lpTitle = IntPtr.Zero; 3294public IntPtr lpReserved2 = IntPtr.Zero; 3295public IntPtr hStdInput = IntPtr.Zero; 3296public IntPtr hStdOutput = IntPtr.Zero; 3297public IntPtr hStdError = IntPtr.Zero; 3324public IntPtr hInstance = IntPtr.Zero; 3325public IntPtr lCustData = IntPtr.Zero; 3329public IntPtr hPageSetupTemplate = IntPtr.Zero; 3582return IntPtr.Zero; 3620public IntPtr lCustData = IntPtr.Zero; 3639public IntPtr bmBits = IntPtr.Zero; 3646public IntPtr hbmMask = IntPtr.Zero; 3647public IntPtr hbmColor = IntPtr.Zero; 3803public IntPtr hSubMenu = IntPtr.Zero; 3804public IntPtr hbmpChecked = IntPtr.Zero; 3805public IntPtr hbmpUnchecked = IntPtr.Zero; 3806public IntPtr dwItemData = IntPtr.Zero; 3807public IntPtr dwTypeData = IntPtr.Zero; 3809public IntPtr hbmpItem = IntPtr.Zero; // requires WINVER > 5 3837public IntPtr lpstrCustomFilter = IntPtr.Zero; 3842public IntPtr lpstrFileTitle = IntPtr.Zero; 3850public IntPtr lCustData = IntPtr.Zero; 3853public IntPtr pvReserved = IntPtr.Zero; 3867public IntPtr lCustData = IntPtr.Zero; 4250public IntPtr pElems = IntPtr.Zero; 4276if ((this.vt == (int)tagVT.VT_UNKNOWN || this.vt == (int)tagVT.VT_DISPATCH) && this.data1 != IntPtr.Zero) { 4280if (this.vt == (int)tagVT.VT_BSTR && this.data1 != IntPtr.Zero) { 4284this.data1 = this.data2 = IntPtr.Zero; 4511return (val != IntPtr.Zero); 4629public IntPtr hInstance = IntPtr.Zero; 4630public IntPtr hIcon = IntPtr.Zero; 4631public IntPtr hCursor = IntPtr.Zero; 4632public IntPtr hbrBackground = IntPtr.Zero; 4766public IntPtr hinst = IntPtr.Zero; 4768public IntPtr lParam = IntPtr.Zero; 4780public IntPtr hinst = IntPtr.Zero; 4782public IntPtr lParam = IntPtr.Zero; 4939public IntPtr pvReserved = IntPtr.Zero; 4941public IntPtr pfnDeferredFillIn = IntPtr.Zero; 4959public IntPtr lprgscode = IntPtr.Zero; 4967public /*NativeMethods.tagELEMDESC*/ IntPtr lprgelemdescParam = IntPtr.Zero; 4992public IntPtr lpstrSchema = IntPtr.Zero; 4993public IntPtr unionMember = IntPtr.Zero; 5030public IntPtr hwndItem = IntPtr.Zero; 5031public IntPtr hDC = IntPtr.Zero; 5033public IntPtr itemData = IntPtr.Zero; 5043public IntPtr itemData = IntPtr.Zero; 5051public IntPtr hItemHandle = IntPtr.Zero; 5052public IntPtr dwContextId = IntPtr.Zero; 5087public IntPtr pElems = IntPtr.Zero; 5186public IntPtr pszText_notUsed = IntPtr.Zero; 5187public IntPtr hbm = IntPtr.Zero; 5190public IntPtr lParam = IntPtr.Zero; 5194public IntPtr pvFilter = IntPtr.Zero; 5217public IntPtr hItem = IntPtr.Zero; 5307public IntPtr lpszText = IntPtr.Zero; 5311public IntPtr lParam = IntPtr.Zero; 5335public IntPtr hBmp = IntPtr.Zero; // not used 5390lParam = IntPtr.Zero; 5394puColumns = IntPtr.Zero; 5439public IntPtr pszFooter = IntPtr.Zero; 5523public IntPtr lpData = IntPtr.Zero; 5531public IntPtr pItem = IntPtr.Zero; // HDITEM* 5539public IntPtr hWnd = IntPtr.Zero; 5717public IntPtr wParam = IntPtr.Zero; 5718public IntPtr lParam = IntPtr.Zero; 5827public IntPtr hDrop = IntPtr.Zero; 6266public IntPtr lpstrSchema = IntPtr.Zero;
winforms\Managed\System\WinForms\NativeWindow.cs (40)
169if (handle != IntPtr.Zero) { 178IntPtr threadHandle = (ctx == null ? IntPtr.Zero : ctx.GetHandle()); 180if (threadHandle != IntPtr.Zero) { 186NativeMethods.WM_UIUNSUBCLASS, IntPtr.Zero, IntPtr.Zero, 187UnsafeNativeMethods.SMTO_ABORTIFHUNG, 100, out result) == IntPtr.Zero) { 194if (handle != IntPtr.Zero) { 200if (h != IntPtr.Zero && ownedHandle) { 342Debug.Assert(handle != IntPtr.Zero, "Should never insert a zero handle into the hash"); 376if ((hashBuckets[bucketNumber].handle == IntPtr.Zero) || 590Debug.Assert(handle != IntPtr.Zero, "handle is 0"); 604if (userDefWindowProc == IntPtr.Zero) { 608if (userDefWindowProc == IntPtr.Zero) { 614Debug.Assert(defWindowProc != IntPtr.Zero, "defWindowProc is 0"); 693if (handle != IntPtr.Zero) { 715|| cp.Parent == IntPtr.Zero) { 734if (this.handle != IntPtr.Zero) { 738IntPtr createResult = IntPtr.Zero; 777if (createResult == IntPtr.Zero) { 824if (defWindowProc == IntPtr.Zero) { 854if (handle != IntPtr.Zero) { 860handle = IntPtr.Zero; 903if ((oldb.handle != IntPtr.Zero) && (oldb.handle != new IntPtr(-1))) { 913if ((newBuckets[bucketNumber].handle == IntPtr.Zero) || (newBuckets[bucketNumber].handle == new IntPtr(-1))) { 943if (handle != IntPtr.Zero && handleCount > 0) { 992Debug.Assert(handle != IntPtr.Zero, "Zero handles cannot be stored in the table"); 1005if (b.handle == IntPtr.Zero) { 1022handle = IntPtr.Zero; 1079Debug.Assert(userDefWindowProc != IntPtr.Zero, "We have active windows but no user window proc?"); 1084if (b.handle != IntPtr.Zero && b.handle != new IntPtr(-1)) { 1095w.handle = IntPtr.Zero; 1105hashBuckets[i].handle = IntPtr.Zero; 1145if (handle != IntPtr.Zero) { 1148if (handle != IntPtr.Zero) { 1160handle = IntPtr.Zero; 1188Debug.Assert(handle != IntPtr.Zero, "Incorrect handle"); 1238hashBuckets[bn].handle = IntPtr.Zero; 1491Debug.Assert(hWnd != IntPtr.Zero, "Windows called us with an HWND of 0"); 1572if (userDefWindowProc == IntPtr.Zero) { 1576if (userDefWindowProc == IntPtr.Zero) {
winforms\Managed\System\WinForms\NotifyIcon.cs (11)
484if (window != null && window.Handle != IntPtr.Zero) { 694if (window.Handle == IntPtr.Zero) { 742UnsafeNativeMethods.PostMessage(new HandleRef(window, window.Handle), NativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero); 774if (window.Handle == IntPtr.Zero) { 780data.hIcon = IntPtr.Zero; 901if (IntPtr.Zero == msg.LParam) { 911if (msg.WParam == IntPtr.Zero) { 917if (msg.WParam == IntPtr.Zero) { 954Debug.Assert(m.LParam != IntPtr.Zero, "m.lparam is null"); 1005if (Handle != IntPtr.Zero) {
winforms\Managed\System\WinForms\PaintEvent.cs (10)
39private readonly IntPtr dc = IntPtr.Zero; 40IntPtr oldPal = IntPtr.Zero; 83Debug.Assert(dc != IntPtr.Zero, "dc is not initialized."); 118return IntPtr.Zero; 132if (graphics == null && dc != IntPtr.Zero) { 164if (graphics != null && dc != IntPtr.Zero) { 169if (oldPal != IntPtr.Zero && dc != IntPtr.Zero) { 171oldPal = IntPtr.Zero; 182Debug.Assert(dc == IntPtr.Zero || savedGraphicsState != null, "Called ResetGraphics more than once?");
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (21)
296data.hwndOwner = IntPtr.Zero; 297data.hDevMode = IntPtr.Zero; 298data.hDevNames = IntPtr.Zero; 300data.hDC = IntPtr.Zero; 306data.hInstance = IntPtr.Zero; 307data.lCustData = IntPtr.Zero; 312data.hPrintTemplate = IntPtr.Zero; 313data.hSetupTemplate = IntPtr.Zero; 323data.hwndOwner = IntPtr.Zero; 324data.hDevMode = IntPtr.Zero; 325data.hDevNames = IntPtr.Zero; 326data.hDC = IntPtr.Zero; 337data.hInstance = IntPtr.Zero; 340data.lphPropertyPages = IntPtr.Zero; 391data.hDevMode = IntPtr.Zero; 392data.hDevNames = IntPtr.Zero; 473data.hDevMode = IntPtr.Zero; 474data.hDevNames = IntPtr.Zero; 550if (data.hDevMode != IntPtr.Zero) 552if (data.hDevNames != IntPtr.Zero) 554if (data.pageRanges != IntPtr.Zero)
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
726if (m.LParam != IntPtr.Zero) { 789if (m.LParam != IntPtr.Zero) {
winforms\Managed\System\WinForms\PropertyGrid.cs (11)
3841if (hWndParent != IntPtr.Zero) { 4806if (cds != null && cds.lpData != IntPtr.Zero) { 4929m.Result = IntPtr.Zero; 4993m.Result = (IntPtr) gridView.GetPropertyLocation(propName, m.LParam == IntPtr.Zero, m.WParam == IntPtr.Zero); 5002if( m.LParam != IntPtr.Zero ) { 5326IntPtr fileId = IntPtr.Zero; 5341fileId = IntPtr.Zero; 5356Debug.Assert(fileId != IntPtr.Zero, "Invalid file Id"); 5360if (fileId != IntPtr.Zero) 5397if (fileId == IntPtr.Zero) // Create id
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1984PaintOutlineWithExplorerTreeStyle(g, r, (DpiHelper.EnableDpiChangedHighDpiImprovements && GridEntryHost!=null) ? this.GridEntryHost.HandleInternal: IntPtr.Zero);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (2)
112cp.Parent = IntPtr.Zero; 243msg.WParam = IntPtr.Zero;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (24)
998gotfocus = IntPtr.Zero != UnsafeNativeMethods.SetFocus(new HandleRef(this, Handle)); 1467if (baseHfont == IntPtr.Zero) { 1500if (boldHfont == IntPtr.Zero) { 2765hwnd != IntPtr.Zero; hwnd = UnsafeNativeMethods.GetParent(new HandleRef(null, hwnd))) { 3658if (baseHfont != IntPtr.Zero) { 3660baseHfont = IntPtr.Zero; 3662if (boldHfont != IntPtr.Zero) { 3664boldHfont = IntPtr.Zero; 4944if (priorFocus != IntPtr.Zero) { 5267if (m.LParam != IntPtr.Zero) { 5580UnsafeNativeMethods.MsgWaitForMultipleObjectsEx(0, IntPtr.Zero, 250, NativeMethods.QS_ALLINPUT, NativeMethods.MWMO_INPUTAVAILABLE); 5682while (hWnd != IntPtr.Zero) { 5684if (hWnd == IntPtr.Zero) { 6110m.Result = IntPtr.Zero; 6650UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), NativeMethods.WM_CHAR, (IntPtr)keyChar, IntPtr.Zero); 6847if (m.LParam != IntPtr.Zero) { 6889if (IntPtr.Zero == m.WParam) { 7079private IntPtr mouseHookHandle = IntPtr.Zero; 7115return mouseHookHandle != IntPtr.Zero; 7144if (mouseHookHandle != IntPtr.Zero) { 7160Debug.Assert(mouseHookHandle != IntPtr.Zero, "Failed to install mouse hook"); 7204if (mouseHookHandle != IntPtr.Zero) { 7207mouseHookHandle = IntPtr.Zero; 7296IntPtr ret = IntPtr.Zero;
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (4)
99DrawRadioButton(g, glyphLocation, state, IntPtr.Zero); 134DrawRadioButton(g, glyphLocation, textBounds, radioButtonText, font, flags, focused, state, IntPtr.Zero); 180DrawRadioButton(g, glyphLocation, textBounds, radioButtonText, font, flags, image, imageBounds, focused, state, IntPtr.Zero); 218return GetGlyphSize(g, state, IntPtr.Zero);
winforms\Managed\System\WinForms\RichTextBox.cs (30)
361if (moduleHandle == IntPtr.Zero) { 718IntPtr hDC = UnsafeNativeMethods.CreateIC("DISPLAY", null, null, new HandleRef(null, IntPtr.Zero)); 723if (hDC != IntPtr.Zero) { 930pf.dxOffset = Pixel2Twip(IntPtr.Zero, bulletIndent, true); 965return Twip2Pixel(IntPtr.Zero,selCharOffset,false); 974cf.yOffset = Pixel2Twip(IntPtr.Zero, value, false); 1120return Twip2Pixel(IntPtr.Zero, selHangingIndent, true); 1127pf.dxOffset = Pixel2Twip(IntPtr.Zero, value, true); 1161return Twip2Pixel(IntPtr.Zero, selIndent, true); 1168pf.dxStartIndent = Pixel2Twip(IntPtr.Zero, value, true); 1290return Twip2Pixel(IntPtr.Zero, selRightIndent, true); 1299pf.dxRightIndent = Pixel2Twip(IntPtr.Zero, value, true); 1330selTabs[x] = Twip2Pixel(IntPtr.Zero, pf.rgxTabs[x], true); 1351pf.rgxTabs[x] = Pixel2Twip(IntPtr.Zero, value[x], true); 2136if (txrg.lpstrText == IntPtr.Zero) 2215if (txrg.lpstrText != IntPtr.Zero) Marshal.FreeCoTaskMem(txrg.lpstrText); 2873return IntPtr.Zero != UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, RichTextBoxConstants.SCF_SELECTION, cf); 2879return IntPtr.Zero != UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETCHARFORMAT, charRange, cf); 2948if (hDC == IntPtr.Zero) { 2952if (hDC == IntPtr.Zero) return; 3282UnsafeNativeMethods.SendCallbackMessage(new HandleRef(this, Handle), RichTextBoxConstants.EM_SETOLECALLBACK, IntPtr.Zero, pRichEditOleCallback); 3354m.Result = IntPtr.Zero; 3379if (unmanagedBuffer == IntPtr.Zero) 3386if (txrg.lpstrText != IntPtr.Zero) 3503m.Result = IntPtr.Zero; 3519m.Result = IntPtr.Zero; 3527m.Result = IntPtr.Zero; 4027hmenu = IntPtr.Zero; 4041if (menu.items[i].handle != IntPtr.Zero) { 4047menu.handle = IntPtr.Zero;
winforms\Managed\System\WinForms\Screen.cs (6)
71internal Screen(IntPtr monitor) : this(monitor, IntPtr.Zero) { 98if (hdc == IntPtr.Zero) { 124SafeNativeMethods.EnumDisplayMonitors(NativeMethods.NullHandleRef, null, proc, IntPtr.Zero); 217return new Screen((IntPtr)PRIMARY_MONITOR, IntPtr.Zero); 332return new Screen((IntPtr)PRIMARY_MONITOR, IntPtr.Zero); 367return new Screen((IntPtr)PRIMARY_MONITOR, IntPtr.Zero);
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
1307if (m.LParam != IntPtr.Zero) { 1385if (m.LParam != IntPtr.Zero) {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
682return IntPtr.Zero;
winforms\Managed\System\WinForms\SendKeys.cs (16)
235if (hhook == IntPtr.Zero) { 242if (hhook == IntPtr.Zero) 260hookSupported = (hookHandle != IntPtr.Zero); 262if (hookHandle != IntPtr.Zero) 272return IntPtr.Zero; 305if (hhook != IntPtr.Zero) { 310hhook = IntPtr.Zero; 588currentInput[0].inputUnion.ki.dwExtraInfo = IntPtr.Zero; 590currentInput[1].inputUnion.ki.dwExtraInfo = IntPtr.Zero; 742AddEvent(new SKEvent(NativeMethods.WM_KEYUP, (int)Keys.ShiftKey, false, IntPtr.Zero)); 746AddEvent(new SKEvent(NativeMethods.WM_KEYUP, (int)Keys.ControlKey, false, IntPtr.Zero)); 750AddEvent(new SKEvent(NativeMethods.WM_SYSKEYUP, (int)Keys.Menu, false, IntPtr.Zero)); 891ParseKeys(keys, (control != null) ? control.Handle : IntPtr.Zero); 974if (hhook != IntPtr.Zero) { 980hhook = IntPtr.Zero; 1109return IntPtr.Zero;
winforms\Managed\System\WinForms\StatusBar.cs (4)
603SendMessage(NativeMethods.SB_SETICON, 0, IntPtr.Zero); 1683cp.Parent = IntPtr.Zero; 1697if (window.Handle == IntPtr.Zero) { 1705get { return window.Handle != IntPtr.Zero;}
winforms\Managed\System\WinForms\StatusBarPanel.cs (2)
212IntPtr handle = (this.icon == null) ? IntPtr.Zero : this.icon.Handle; 652this.parent.SendMessage(NativeMethods.SB_SETICON, (IntPtr)GetIndex(), IntPtr.Zero);
winforms\Managed\System\WinForms\StatusStrip.cs (2)
195if (rootHwnd.Handle != IntPtr.Zero) { 567if (rootHwnd.Handle != IntPtr.Zero && !UnsafeNativeMethods.IsZoomed(rootHwnd)) {
winforms\Managed\System\WinForms\StringSource.cs (1)
128if (pceltFetched != IntPtr.Zero)
winforms\Managed\System\WinForms\SystemInformation.cs (10)
49private static IntPtr processWinStation = IntPtr.Zero; 88data.lpszDefaultScheme = IntPtr.Zero; 122IntPtr hWndMouseWheel = IntPtr.Zero; 130if (hWndMouseWheel != IntPtr.Zero) { 1004IntPtr hWndMouseWheel = IntPtr.Zero; 1012if (hWndMouseWheel != IntPtr.Zero) { 1126IntPtr hwinsta = IntPtr.Zero; 1129if (hwinsta != IntPtr.Zero && processWinStation != hwinsta) { 1972if (hDsk == IntPtr.Zero) { 1977if (hDsk != IntPtr.Zero) {
winforms\Managed\System\WinForms\TabControl.cs (8)
526IntPtr handle = (value != null) ? value.Handle : IntPtr.Zero; 528SendMessage(NativeMethods.TCM_SETIMAGELIST, IntPtr.Zero, handle); 1067UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), tabBaseReLayoutMessage, IntPtr.Zero, IntPtr.Zero); 1361if (tooltipHwnd != IntPtr.Zero) { 1754UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TCM_SETCURSEL, (IntPtr)index, IntPtr.Zero); 2037ttt.hinst = IntPtr.Zero; 2060if (oldPal != IntPtr.Zero) {
winforms\Managed\System\WinForms\TabPage.cs (1)
568tcitem.lParam = IntPtr.Zero;
winforms\Managed\System\WinForms\TextBoxBase.cs (6)
1834IntPtr editOlePtr = IntPtr.Zero; 1840if (editOlePtr != IntPtr.Zero) { 1841IntPtr iTextDocument = IntPtr.Zero; 1882if (iTextDocument != IntPtr.Zero) { 1889if (editOlePtr != IntPtr.Zero) { 2190return IntPtr.Zero;
winforms\Managed\System\WinForms\Timer.cs (13)
310return _timerID != 0 && Handle != IntPtr.Zero; 318if (Handle == IntPtr.Zero) { 338Debug.Assert(Handle != IntPtr.Zero, "Timer HWND creation failed!"); 339return Handle != IntPtr.Zero; 345if (hWnd != IntPtr.Zero) { 357StopTimer(false, IntPtr.Zero); 367_timerID = (int) SafeNativeMethods.SetTimer(new HandleRef(this, Handle), TimerID++, interval, IntPtr.Zero); 376StopTimer(true, IntPtr.Zero); 384if (hWnd == IntPtr.Zero) { 399if (_stoppingTimer || hWnd == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(new HandleRef(this, hWnd))) { 429StopTimer(false, IntPtr.Zero); 441StopTimer(false, IntPtr.Zero); 449Debug.Assert(m.HWnd == Handle && Handle != IntPtr.Zero, "Timer getting messages for other windows?");
winforms\Managed\System\WinForms\ToolBar.cs (4)
1239if (tbbi.pszText != IntPtr.Zero) { 1358IntPtr ptbbuttons = IntPtr.Zero; 1584ttt.hinst = IntPtr.Zero; 1606ttt.hinst = IntPtr.Zero;
winforms\Managed\System\WinForms\ToolStrip.cs (13)
60private IntPtr hwndThatLostFocus = IntPtr.Zero; 793if (dropDownOwnerWindow.Handle == IntPtr.Zero) { 1936if (hwndThatLostFocus == IntPtr.Zero) { 4113if ((hwndThatLostFocus != IntPtr.Zero) && (hwndThatLostFocus != this.Handle)) { 4117hwndThatLostFocus = IntPtr.Zero; 4123hwndThatLostFocus = IntPtr.Zero; 4542if (thisHwndRoot.Handle == otherHwndRoot.Handle && (thisHwndRoot.Handle != IntPtr.Zero)) { 4732if (rootHwnd.Handle != IntPtr.Zero) { 5229if (cachedItemHDC.Handle == IntPtr.Zero) { 5240if (oldBitmap != IntPtr.Zero) { 5243oldBitmap = IntPtr.Zero; 5257if (cachedItemHDC.Handle != IntPtr.Zero) { 5259if (cachedItemBitmap.Handle != IntPtr.Zero) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
2224if (m.WParam != IntPtr.Zero /*activating*/) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
318 if (info.hSubMenu != IntPtr.Zero) {
winforms\Managed\System\WinForms\ToolStripManager.cs (15)
794if (_activeHwnd.Handle != IntPtr.Zero) { 853if (hwndActive != IntPtr.Zero) { 914if (ActiveHwnd.Handle != IntPtr.Zero) { 1125if (hwndActive != IntPtr.Zero) { 1252if (hwndCurrentActiveWindow.Handle == IntPtr.Zero) { 1334ProcessMouseButtonPressed(/*nc messages are in screen coords*/IntPtr.Zero, 1367private IntPtr messageHookHandle = IntPtr.Zero; 1392return messageHookHandle != IntPtr.Zero; 1406if (messageHookHandle != IntPtr.Zero) { 1414new HandleRef(null, IntPtr.Zero), 1417if (messageHookHandle != IntPtr.Zero) { 1420Debug.Assert(messageHookHandle != IntPtr.Zero, "Failed to install mouse hook"); 1445if (messageHookHandle != IntPtr.Zero) { 1448messageHookHandle = IntPtr.Zero; 1710if (hMenu == IntPtr.Zero) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (11)
47private IntPtr targetWindowHandle = IntPtr.Zero; 48private IntPtr nativeMenuHandle = IntPtr.Zero; 228if (base.Enabled && nativeMenuHandle != IntPtr.Zero && targetWindowHandle != IntPtr.Zero) { 703if (nativeMenuCommandID == -1 || nativeMenuHandle == IntPtr.Zero) { 720if (nativeMenuCommandID == -1 || nativeMenuHandle == IntPtr.Zero) { 731info.dwTypeData = IntPtr.Zero; 746 if (info.dwTypeData != IntPtr.Zero){ 753if (allocatedStringBuffer != IntPtr.Zero) { 767if (nativeMenuCommandID == -1 || nativeMenuHandle == IntPtr.Zero) { 778if (info.hbmpItem != IntPtr.Zero && info.hbmpItem.ToInt32() > NativeMethods.HBMMENU_POPUP_MINIMIZE) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
858while (UnsafeNativeMethods.PeekMessage(ref msg, new HandleRef(this, IntPtr.Zero),
winforms\Managed\System\WinForms\ToolStripTextBox.cs (5)
744if (hNonClientRegion.Handle != IntPtr.Zero) { 750if (hClientRegion.Handle != IntPtr.Zero) { 755if (hTotalRegion.Handle != IntPtr.Zero) { 853if (hdc.Handle == IntPtr.Zero) { 890m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\ToolTip.cs (13)
988if(allocatedString && IntPtr.Zero != tool.lpszText) { 1125return (window != null ? window.Handle != IntPtr.Zero: false); 1260if (hwndControl != IntPtr.Zero) 1268return IntPtr.Zero; 1271IntPtr baseHwnd = IntPtr.Zero; 1277IntPtr hwnd = IntPtr.Zero; 1290else if (found == IntPtr.Zero) { 1308if (hwnd != IntPtr.Zero) { 1316hwnd = IntPtr.Zero; 1481if(allocatedString && IntPtr.Zero != toolInfo.lpszText) { 2043if(allocatedString && IntPtr.Zero != ti.lpszText) { 2078if(IntPtr.Zero != toolInfo.lpszText) { 2482m.Result = IntPtr.Zero;
winforms\Managed\System\WinForms\TreeNode.cs (14)
333if (handle == IntPtr.Zero) 512if (handle == IntPtr.Zero) { 602if (handle == IntPtr.Zero) { 616if (handle == IntPtr.Zero) return false; 628if (handle == IntPtr.Zero) return false; 714if (next != IntPtr.Zero) { 843if (prev != IntPtr.Zero) { 909if (handle == IntPtr.Zero) 1202if (handle != IntPtr.Zero) { 1712if (editHandle != IntPtr.Zero) { 1728UnsafeNativeMethods.PostMessage(new HandleRef(tv, tv.Handle), NativeMethods.TVM_EDITLABEL, IntPtr.Zero, handle); 1804if (handle != IntPtr.Zero) { 1808handle = IntPtr.Zero; 1918if (handle == IntPtr.Zero) return;
winforms\Managed\System\WinForms\TreeNodeCollection.cs (2)
322if (node.handle != IntPtr.Zero) 460if (node.handle != IntPtr.Zero)
winforms\Managed\System\WinForms\TreeView.cs (40)
78private IntPtr hNodeMouseDown = IntPtr.Zero;//ensures we fire nodeclick on the correct node 648value==null? IntPtr.Zero: value.Handle); 1125if (hItem == IntPtr.Zero) 1143IntPtr hnode = (value == null ? IntPtr.Zero : value.Handle); 1336return(hitem == IntPtr.Zero ? null : NodeFromHandle(hitem)); 1347IntPtr hnode = (value == null ? IntPtr.Zero : value.Handle); 1750UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), NativeMethods.WM_SETREDRAW, (IntPtr)1, IntPtr.Zero); 1788TreeNode node = (hnode == IntPtr.Zero ? null : NodeFromHandle(hnode)); 1839return(hnode == IntPtr.Zero ? null : NodeFromHandle(hnode)); 1844IntPtr handle = (ImageList == null) ? IntPtr.Zero : ImageList.Handle; 1873IntPtr handle = IntPtr.Zero; 2096if ((handleOld != IntPtr.Zero) && (handleOld != handle)) 2106IntPtr handle = SendMessage(NativeMethods.TVM_GETIMAGELIST, NativeMethods.TVSIL_STATE, IntPtr.Zero); 2107if (handle != IntPtr.Zero) 2112SendMessage(NativeMethods.TVM_SETIMAGELIST, NativeMethods.TVSIL_STATE, IntPtr.Zero); 2169if (hnode != IntPtr.Zero && ((tvhip.flags & NativeMethods.TVHT_ONITEM) != 0)) { 2477if (item.hItem == IntPtr.Zero) { 2490if (item.hItem == IntPtr.Zero) { 2491return IntPtr.Zero; 2510if (item.hItem == IntPtr.Zero) { 2534if (nmtv->itemNew.hItem == IntPtr.Zero) { 2535return IntPtr.Zero; 2561if (nmtv->itemNew.hItem != IntPtr.Zero) { 2579if (nmtv->itemOld.hItem != IntPtr.Zero) { 2588if (nmtvdi.item.hItem == IntPtr.Zero) { 2589return IntPtr.Zero; 2604if (nmtvdi.item.hItem == IntPtr.Zero) { 2609string newText = (nmtvdi.item.pszText == IntPtr.Zero ? null : Marshal.PtrToStringAuto(nmtvdi.item.pszText)); 2694Debug.Assert(nmcd.nmcd.dwItemSpec != IntPtr.Zero, "Invalid node handle in ITEMPREPAINT"); 2807Debug.Assert(nmcd.nmcd.dwItemSpec != IntPtr.Zero, "Invalid node handle in ITEMPOSTPAINT"); 2910if (hnode != IntPtr.Zero && ((tvhip.flags & NativeMethods.TVHT_ONITEM) != 0)) { 2944if (hnode != IntPtr.Zero && ((tvhip.flags & NativeMethods.TVHT_ONITEM) != 0)) { 2957ttt.hinst = IntPtr.Zero; 3034if (hnode != IntPtr.Zero && !ValidationCancelled) { 3107UnsafeNativeMethods.PostMessage(new HandleRef(this, this.Handle), NativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero); 3189if (item.hItem != IntPtr.Zero) { 3275m.Result = IntPtr.Zero; 3290if(hnode != IntPtr.Zero) { 3321hNodeMouseDown = IntPtr.Zero;
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (21)
1665IntPtr pBytes = IntPtr.Zero; 1668int regionDataSize = GetRegionData(new HandleRef(null, hRgn), 0, IntPtr.Zero); 1693if (pBytes != IntPtr.Zero) { 6659if (buffer == IntPtr.Zero) throw new OutOfMemoryException(); 7365public IntPtr hpal = IntPtr.Zero; 7506public IntPtr hdr_hwndFrom = IntPtr.Zero; 7507public IntPtr hdr_idFrom = IntPtr.Zero; 7510public IntPtr lpOFN = IntPtr.Zero; 7511public IntPtr pszFile = IntPtr.Zero; 7639IntPtr path = IntPtr.Zero; 8136IntPtr current = IntPtr.Zero; 8155IntPtr userCookie = IntPtr.Zero; 8164userCookie = IntPtr.Zero; 8177if (userCookie != IntPtr.Zero && OSFeature.Feature.IsPresent(OSFeature.Themes)) 8182userCookie = IntPtr.Zero; 8258public IntPtr hProcess = IntPtr.Zero; 8260public IntPtr hThread = IntPtr.Zero; 8973IntPtr module = IntPtr.Zero; 8979if (kernel32 != IntPtr.Zero) { 8980if (GetProcAddress(new HandleRef(null, kernel32), "AddDllDirectory") != IntPtr.Zero) { 8981module = LoadLibraryEx(libraryName, IntPtr.Zero, NativeMethods.LOAD_LIBRARY_SEARCH_SYSTEM32);
winforms\Managed\System\WinForms\UserControl.cs (1)
293if (hwndFocus == IntPtr.Zero) return false;
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (18)
77supported = (hTheme != IntPtr.Zero); 122if (hTheme != IntPtr.Zero) { 276DrawBackground(dc, bounds, IntPtr.Zero); 289if (IntPtr.Zero != hWnd) { 307DrawBackground(dc, bounds, clipRectangle, IntPtr.Zero); 323if (IntPtr.Zero != hWnd) { 449if (childControl.Handle != IntPtr.Zero) { 568IntPtr hRegion = IntPtr.Zero; 578 if (hRegion == IntPtr.Zero) { 738return GetPartSize(dc, type, IntPtr.Zero); 755if (DpiHelper.EnableDpiChangedMessageHandling && (IntPtr.Zero != hWnd)) { 1103return IntPtr.Zero; 1116private IntPtr _hTheme = IntPtr.Zero; 1129return Create(className, throwExceptionOnFail, new HandleRef(null, IntPtr.Zero)); 1134IntPtr hTheme = IntPtr.Zero; 1158if (hTheme == IntPtr.Zero) { 1170if (_hTheme != IntPtr.Zero) { 1172_hTheme = IntPtr.Zero;
winforms\Managed\System\WinForms\WebBrowser.cs (7)
862this.AxIWebBrowser2.ExecWB(NativeMethods.OLECMDID.OLECMDID_PRINT, NativeMethods.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, ref nullObjectArray, IntPtr.Zero); 963this.AxIWebBrowser2.ExecWB(NativeMethods.OLECMDID.OLECMDID_PAGESETUP, NativeMethods.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, ref nullObjectArray, IntPtr.Zero); 985this.AxIWebBrowser2.ExecWB(NativeMethods.OLECMDID.OLECMDID_PRINT, NativeMethods.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, ref nullObjectArray, IntPtr.Zero); 1006this.AxIWebBrowser2.ExecWB(NativeMethods.OLECMDID.OLECMDID_PRINTPREVIEW, NativeMethods.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, ref nullObjectArray, IntPtr.Zero); 1026this.AxIWebBrowser2.ExecWB(NativeMethods.OLECMDID.OLECMDID_PROPERTIES, NativeMethods.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, ref nullObjectArray, IntPtr.Zero); 1048this.AxIWebBrowser2.ExecWB(NativeMethods.OLECMDID.OLECMDID_SAVEAS, NativeMethods.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT, ref nullObjectArray, IntPtr.Zero); 1202return hwndFocus != IntPtr.Zero
winforms\Managed\System\WinForms\WebBrowserBase.cs (5)
68private IntPtr hwndFocus = IntPtr.Zero; 392msg.hwnd = IntPtr.Zero; 478hwndFocus = IntPtr.Zero; 668return IsHandleCreated ? Handle : IntPtr.Zero; 744int hr = this.axOleObject.DoVerb(verb, IntPtr.Zero, this.ActiveXSite, 0, this.Handle,
winforms\Managed\System\WinForms\WebBrowserHelper.cs (2)
118if (hDC != IntPtr.Zero) { 136if (hDC != IntPtr.Zero) {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (3)
229if (hwnd != IntPtr.Zero) { 315lpFrameInfo.hAccel = IntPtr.Zero; 317lpFrameInfo.hwndFrame = (this.Host.ParentInternal == null) ? IntPtr.Zero : this.Host.ParentInternal.Handle;
winforms\Managed\System\WinForms\WinFormsUtils.cs (6)
193if (hwnd == IntPtr.Zero) { 610if (hDC.Handle == IntPtr.Zero) { 631Debug.Assert(hClippingRegion.Handle != IntPtr.Zero, "CreateRectRgn() failed."); 637Debug.Assert(hOriginalClippingRegion.Handle != IntPtr.Zero, "CreateRectRgn() failed."); 672hOriginalClippingRegion = new HandleRef(null, IntPtr.Zero); 700if (hOriginalClippingRegion.Handle != IntPtr.Zero) {
System.Windows.Forms.DataVisualization (2)
Common\General\Chart.cs (2)
253IntPtr hdc = IntPtr.Zero; 293if (hdc != IntPtr.Zero)
System.Workflow.Activities (14)
Common\NativeMethods.cs (8)
229return SendMessage(hWndLV, LVM_GETHEADER, IntPtr.Zero, IntPtr.Zero); 235return (success != IntPtr.Zero) ? true : false; 241return (success != IntPtr.Zero) ? true : false; 306public IntPtr pszText = IntPtr.Zero; 307public IntPtr hbm = IntPtr.Zero; 314public IntPtr filter = IntPtr.Zero; 375this.hwndFrom = IntPtr.Zero;
Rules\Design\Dialogs\ConditionBrowserDialog.cs (3)
145NativeMethods.SendMessage(previewBox.Handle, NativeMethods.WM_SETREDRAW, IntPtr.Zero, IntPtr.Zero); 147NativeMethods.SendMessage(previewBox.Handle, NativeMethods.WM_SETREDRAW, new IntPtr(1), IntPtr.Zero);
Rules\Design\Dialogs\RuleSetBrowserDialog.cs (3)
128NativeMethods.SendMessage(previewBox.Handle, NativeMethods.WM_SETREDRAW, IntPtr.Zero, IntPtr.Zero); 130NativeMethods.SendMessage(previewBox.Handle, NativeMethods.WM_SETREDRAW, new IntPtr(1), IntPtr.Zero);
System.Workflow.ComponentModel (61)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
67IntPtr pUnk = IntPtr.Zero;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (8)
847IntPtr typeRefNamePtr = IntPtr.Zero; 875IntPtr publicKeyOrToken = IntPtr.Zero; 877IntPtr assemblyName = IntPtr.Zero; 879IntPtr hashValueBlob = IntPtr.Zero; 908if (assemblyName != IntPtr.Zero && assemblyNameSize > 0) 911assemblyName = IntPtr.Zero; 914if (assemblyMetadata.locale != IntPtr.Zero && assemblyMetadata.localeSize > 0) 917assemblyMetadata.locale = IntPtr.Zero;
AuthoringOM\Design\DesignerHelpers.cs (14)
930if (handle == IntPtr.Zero) 936if (handle == IntPtr.Zero) 942if (handle == IntPtr.Zero) 954if (objectPtr == IntPtr.Zero) 962if (objectPtr == IntPtr.Zero) 970if (objectPtr == IntPtr.Zero) 1031if (objectPtr == IntPtr.Zero) 1048if (objectPtr == IntPtr.Zero) 1058if (objectPtr == IntPtr.Zero) 1077if (objectPtr == IntPtr.Zero) 1087if (objectPtr == IntPtr.Zero) 1096if (objectPtr == IntPtr.Zero) 1115if (penPtr == IntPtr.Zero) 1404else if (owner.Handle != IntPtr.Zero)
AuthoringOM\Design\DesignerWidgets.cs (19)
2256if (msg.Msg == NativeMethods.WM_NOTIFY && msg.LParam != IntPtr.Zero && !this.inplaceTipRectangle.IsEmpty) 2262int result = NativeMethods.SetWindowPos(this.inplaceTip.Handle, IntPtr.Zero, screenCoOrd.X, screenCoOrd.Y, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOACTIVATE); 2291if (IntPtr.Zero == Handle) 2303if (this.parentHandle != IntPtr.Zero) 2309this.parentHandle = IntPtr.Zero; 2319IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_ACTIVATE, activateValue, IntPtr.Zero); 2325IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_POP, IntPtr.Zero, IntPtr.Zero); 2330IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_SETMAXTIPWIDTH, IntPtr.Zero, new IntPtr(tipWidth)); 2340IntPtr titleStr = IntPtr.Zero; 2359IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_UPDATETIPTEXT, IntPtr.Zero, ref toolInfo); 2375IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_NEWTOOLRECT, IntPtr.Zero, ref toolInfo); 2380IntPtr retVal = NativeMethods.SendMessage(Handle, NativeMethods.TTM_ADDTOOL, IntPtr.Zero, ref toolInfo); 2381return (retVal != IntPtr.Zero); 2386IntPtr lresult = NativeMethods.SendMessage(Handle, NativeMethods.TTM_DELTOOL, IntPtr.Zero, ref toolInfo); 2394toolInfo.hwnd = IntPtr.Zero; 2395toolInfo.id = IntPtr.Zero; 2397toolInfo.hinst = IntPtr.Zero; 2399toolInfo.lParam = IntPtr.Zero;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (3)
497if (IntPtr.Zero != this.bitmapSortUp) 500if (IntPtr.Zero != this.bitmapSortDown) 1001headerItem.hbm = IntPtr.Zero;
AuthoringOM\Design\WorkflowView.cs (2)
1428m.Result = IntPtr.Zero; 1439if (m.Result == IntPtr.Zero)
Shared\NativeMethods.cs (14)
243return SendMessage(hWndLV, LVM_GETHEADER, IntPtr.Zero, IntPtr.Zero); 249return (success != IntPtr.Zero) ? true : false; 255return (success != IntPtr.Zero) ? true : false; 347IntPtr module = IntPtr.Zero; 353if (kernel32 != IntPtr.Zero) 355if (GetProcAddress(new HandleRef(null, kernel32), "AddDllDirectory") != IntPtr.Zero) 357module = LoadLibraryEx(libraryName, IntPtr.Zero, LOAD_LIBRARY_SEARCH_SYSTEM32); 379if (hmod != IntPtr.Zero) 382if (pfnProc != IntPtr.Zero) 416public IntPtr pszText = IntPtr.Zero; 417public IntPtr hbm = IntPtr.Zero; 424public IntPtr filter = IntPtr.Zero; 485this.hwndFrom = IntPtr.Zero;
System.Workflow.Runtime (14)
DebugEngine\DebugController.cs (14)
126IntPtr hProcess = IntPtr.Zero; 127IntPtr hProcessToken = IntPtr.Zero; 128IntPtr securityDescriptorPtr = IntPtr.Zero; 141NativeMethods.GetKernelObjectSecurity(hProcessToken, NativeMethods.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, IntPtr.Zero, 0, out returnLength); 158if (hProcess != IntPtr.Zero && hProcess != (IntPtr)(-1)) 162if (hProcessToken != IntPtr.Zero) 166if (securityDescriptorPtr != IntPtr.Zero) 172IntPtr hProcess = IntPtr.Zero; 173IntPtr hProcessToken = IntPtr.Zero; 174IntPtr securityDescriptorPtr = IntPtr.Zero; 185NativeMethods.GetKernelObjectSecurity(hProcessToken, NativeMethods.SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, IntPtr.Zero, 0, out returnLength); 210if (hProcess != IntPtr.Zero && hProcess != (IntPtr)(-1)) 214if (hProcessToken != IntPtr.Zero) 218if (securityDescriptorPtr != IntPtr.Zero)
System.Xml (3)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (3)
58if (hModule == IntPtr.Zero) { 59Debug.Assert(hModule != IntPtr.Zero, "GetModuleHandle failed. Dll isn't loaded?"); 63return (functionPointer != IntPtr.Zero);
UIAutomationClient (62)
MS\Internal\Automation\Accessible.cs (3)
74if (_hwnd == IntPtr.Zero) 80_hwnd = IntPtr.Zero; 91_hwnd = IntPtr.Zero;
MS\Internal\Automation\BoundingRectTracker.cs (1)
56if ( hwnd == IntPtr.Zero || idObject != UnsafeNativeMethods.OBJID_WINDOW )
MS\Internal\Automation\ClickablePoint.cs (1)
45if (SafeNativeMethods.MonitorFromRect( ref winRect, SafeNativeMethods.MONITOR_DEFAULTTONULL ) == IntPtr.Zero)
MS\Internal\Automation\FocusTracker.cs (6)
56if (hwnd != IntPtr.Zero) 89if (hwnd != IntPtr.Zero) 262if (hwndCur == IntPtr.Zero || !SafeNativeMethods.IsWindow(NativeMethods.HWND.Cast(hwndCur))) 278HandleFocusChange(IntPtr.Zero, null, 0, 0, eventTime); 302IntPtr i = Misc.SendMessageTimeout(NativeMethods.HWND.Cast(hwnd), UnsafeNativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
MS\Internal\Automation\HwndProxyElementProvider.cs (19)
133IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero ); 143if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero) 361if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero)) 382if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero)) 404if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero)) 596IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult); 597if ( ret == IntPtr.Zero ) 817Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo); 882if (hmenu != IntPtr.Zero) 927if (hmenu != IntPtr.Zero) 1015if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 1020return IntPtr.Zero; 1732if (hrgn == IntPtr.Zero) 1828IntPtr lr = Misc.SendMessageTimeout( hChild, UnsafeNativeMethods.WM_NCHITTEST, IntPtr.Zero, MAKELPARAM( (int)x, (int)y ) ); 2005if (parent == IntPtr.Zero) 2009IntPtr lresult = Misc.SendMessageTimeout(parent, UnsafeNativeMethods.WM_MDIACTIVATE, (IntPtr)hwnd, IntPtr.Zero); 2010return lresult == IntPtr.Zero;
MS\Internal\Automation\MenuTracker.cs (1)
67if( hwnd == IntPtr.Zero )
MS\Internal\Automation\Misc.cs (8)
311if (result == IntPtr.Zero) 436IntPtr result = IntPtr.Zero; 454if ((result == IntPtr.Zero) && (error != 0)) 557if (processHandle == IntPtr.Zero 572if (processHandle == IntPtr.Zero) 628if (smtoRetVal == IntPtr.Zero) 645if (smtoRetVal == IntPtr.Zero) 662if (smtoRetVal == IntPtr.Zero)
MS\Internal\Automation\ProxyManager.cs (1)
809IntPtr result = Misc.SendMessageTimeout(hwnd, UnsafeNativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX);
MS\Internal\Automation\SafeHandles.cs (6)
26: base(IntPtr.Zero, true) 34get { return handle == IntPtr.Zero; } 50: base(IntPtr.Zero, true) 57get { return handle == IntPtr.Zero; } 71: base(IntPtr.Zero, true) 77get { return handle == IntPtr.Zero; }
MS\Internal\Automation\UiaCoreAPI.cs (2)
175if (_pProperties != IntPtr.Zero) 645if (pInts == IntPtr.Zero)
MS\Internal\Automation\WindowHideOrCloseTracker.cs (1)
65if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WindowInteractionStateTracker.cs (1)
64if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
67if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WindowVisualStateTracker.cs (1)
61if (hwnd == IntPtr.Zero)
MS\Internal\Automation\WinEventWrap.cs (4)
130_hHooks[i] = UnsafeNativeMethods.SetWinEventHook(eventId, eventId, IntPtr.Zero, _winEventProc, 0, 0, _fFlags); 131if (_hHooks[i] == IntPtr.Zero) 150if (_hHooks[i] != IntPtr.Zero) 157_hHooks[i] = IntPtr.Zero;
MS\Win32\NativeMethods.cs (1)
52hTemp.h = IntPtr.Zero;
System\Windows\Automation\AutomationElement.cs (1)
442Misc.ValidateArgument(hwnd != IntPtr.Zero, SRID.HwndMustBeNonNULL);
System\Windows\Automation\Condition.cs (2)
32: base(IntPtr.Zero, true) 40get { return handle == IntPtr.Zero; }
System\Windows\Automation\Text\TextRange.cs (2)
37: base(IntPtr.Zero, true) 44get { return handle == IntPtr.Zero; }
UIAutomationClientsideProviders (647)
MS\Internal\AutomationProxies\Accessible.cs (6)
172IntPtr wParam = IntPtr.Zero; 178if (lResult == IntPtr.Zero) 458bool inSameHwnd = Window != IntPtr.Zero && Window == hwnd; 885if (_hwnd == IntPtr.Zero) 892_hwnd = IntPtr.Zero; 907_hwnd = IntPtr.Zero;
MS\Internal\AutomationProxies\ClickablePoint.cs (7)
24_hwndProgman = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", null); 25if (_hwndProgman == IntPtr.Zero) 64for (hwnd = Misc.GetWindow(hwnd, NativeMethods.GW_CHILD); hwnd != IntPtr.Zero; hwnd = Misc.GetWindow(hwnd, NativeMethods.GW_HWNDNEXT)) 79if (hwnd == IntPtr.Zero) 98if (hwnd == IntPtr.Zero) 263int lr = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (4)
29_hTheme = new SafeThemeHandle(IntPtr.Zero, false); 59fSuccess = GetThemePartSize(_hTheme, IntPtr.Zero, iPartId, iStateId, IntPtr.Zero, (int)THEMESIZE.TS_TRUE, &size) == IntPtr.Zero;
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
54SetHandle(Misc.VirtualAllocEx(_processHandle, IntPtr.Zero, new UIntPtr((uint)cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE));
MS\Internal\AutomationProxies\CommonXSendMessage.cs (55)
118if (!ignoreSendResult && result == IntPtr.Zero) 148if (IsWOW64Process(IntPtr.Zero)) 204if (Misc.ProxySendMessage(hwnd, uMsg, wParam, rmem.Address) == IntPtr.Zero) 248if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero))) 295if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero))) 351if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero))) 417return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 423return GetTextWithinStructureRemoteBitness(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, 432return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 474return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 481bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 493bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 676IntPtr textAddress = IntPtr.Zero; 924return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 931bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 944bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 965return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType())); 971return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 977return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 987IntPtr hitTestItem = IntPtr.Zero; 992if (Misc.MapWindowPoints(IntPtr.Zero, hwnd, ref clientPoint, 1)) 998if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo), 1007if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo32), 1016if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo64), 1036return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 1043hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), 1051return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 1199Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rectW32, 2); 1265if (Misc.ProxySendMessage(hwnd, msg, new IntPtr(index), rmem.Address) != IntPtr.Zero) 1362if (group.pszHeader != IntPtr.Zero) 1630nativeItem.pszText = IntPtr.Zero; 1729nativeItem.pszText = IntPtr.Zero; 1730nativeItem.hbm = IntPtr.Zero; 1737nativeItem.pvFilter = IntPtr.Zero; 1833nativeItem.pszText = IntPtr.Zero; 1950nativeItem.pszText = IntPtr.Zero; 1957nativeItem.puColumns = IntPtr.Zero; 2147nativeItem.pszHeader = IntPtr.Zero; 2149nativeItem.pszFooter = IntPtr.Zero; 2230nativeItem.pszHeader = IntPtr.Zero; 2232nativeItem.pszFooter = IntPtr.Zero; 2240nativeItem.pszSubtitle = IntPtr.Zero; 2242nativeItem.pszTask = IntPtr.Zero; 2244nativeItem.pszDescriptionTop = IntPtr.Zero; 2246nativeItem.pszDescriptionBottom = IntPtr.Zero; 2252nativeItem.pszSubsetTitle = IntPtr.Zero; // NULL if group is not subset 2341nativeItem.iString = IntPtr.Zero; 2439nativeItem.hItem = IntPtr.Zero; 2442nativeItem.pszText = IntPtr.Zero; 2581nativeItem.hwnd = IntPtr.Zero; 2584nativeItem.hinst = IntPtr.Zero; 2585nativeItem.pszText = IntPtr.Zero;
MS\Internal\AutomationProxies\EventManager.cs (1)
595private static IntPtr _hwndLast = IntPtr.Zero;
MS\Internal\AutomationProxies\Misc.cs (44)
195if (result == IntPtr.Zero) 224if (label == IntPtr.Zero) 254if (!MapWindowPoints(hwnd, IntPtr.Zero, ref leftTop, 1)) 260if (!MapWindowPoints(hwnd, IntPtr.Zero, ref rightBottom, 1)) 320if (hdc == IntPtr.Zero) 332return ProxyGetGUIThreadInfo(0, out gui) ? gui.hwndFocus : IntPtr.Zero; 337if (hwndToolTip != IntPtr.Zero) 388return IntPtr.Zero; 393if (hwndParent == IntPtr.Zero || hwndParent == UnsafeNativeMethods.GetDesktopWindow()) 395return IntPtr.Zero; 402while ((peer = NativeMethodsSetLastError.GetWindow(peer, NativeMethods.GW_HWNDPREV)) != IntPtr.Zero) 407int code = Misc.ProxySendMessageInt(peer, NativeMethods.WM_GETDLGCODE, IntPtr.Zero, IntPtr.Zero); 436return IntPtr.Zero; 523if (hwndParent == IntPtr.Zero) 586IntPtr memAddr = IntPtr.Zero; // Ptr to remote mem 595memAddr = VirtualAlloc(IntPtr.Zero, new UIntPtr(cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE); 601if (ProxySendMessage(hwnd, uMsg, wParam, memAddr) == IntPtr.Zero) 622if (memAddr != IntPtr.Zero) 634if (resultHwnd == IntPtr.Zero) 772if (hwnd == IntPtr.Zero) 885while (hwnd != IntPtr.Zero) 918if ((IsProgmanWindow(hWndFrom) && hWndTo == IntPtr.Zero) || 919(hWndFrom == IntPtr.Zero && IsProgmanWindow(hWndTo))) 943if ((IsProgmanWindow(hWndFrom) && hWndTo == IntPtr.Zero) || 944(hWndFrom == IntPtr.Zero && IsProgmanWindow(hWndTo))) 1040if (processHandle == IntPtr.Zero 1056if (processHandle == IntPtr.Zero) 1083int index = ProxySendMessageInt(hwnd, NativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX, true); 1217IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, NativeMethods.WM_GETTITLEBARINFOEX, IntPtr.Zero, ref ti, _sendMessageFlags, _sendMessageTimeoutValue, out result); 1219if (resultSendMessage == IntPtr.Zero) 1275if (resultSendMessage == IntPtr.Zero) 1303if (resultSendMessage == IntPtr.Zero) 1329if (resultSendMessage == IntPtr.Zero) 1355if (resultSendMessage == IntPtr.Zero) 1370if (resultSendMessage == IntPtr.Zero) 1550if (RegisterHotKey(IntPtr.Zero, atom, 0, vk)) 1598if (!GetMessage(ref msg, IntPtr.Zero, 0, 0)) 1620UnregisterHotKey(IntPtr.Zero, atom); 1781if (result == IntPtr.Zero) 1794if (result == IntPtr.Zero) 1876if (hwndShell == IntPtr.Zero) 1889int commonControlVersion = Misc.ProxySendMessageInt(hwnd, NativeMethods.CCM_GETVERSION, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (3)
66Debug.Assert(hwnd != IntPtr.Zero); 171int index = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX, true); 1110Debug.Assert(_hwnd != IntPtr.Zero);
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (4)
88_hHooks[0] = Misc.SetWinEventHook(_eventMin, _eventMax, IntPtr.Zero, _winEventProc, 0, 0, _fFlags); 89if (_hHooks[0] == IntPtr.Zero) 106if (_hHooks[i] != IntPtr.Zero) 109_hHooks[i] = IntPtr.Zero;
MS\Internal\AutomationProxies\NonClientArea.cs (3)
152if (menu == IntPtr.Zero) 216int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 547if (menu != IntPtr.Zero)
MS\Internal\AutomationProxies\ProxyHwnd.cs (7)
235if (_controlLabel == IntPtr.Zero && name != null && GetParent() == null) 243if (_controlLabel != IntPtr.Zero) 259if (hwndParent != IntPtr.Zero && hwndParent != UnsafeNativeMethods.GetDesktopWindow()) 283string text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, idChild); 286text = Misc.GetItemToolTipText(_hwnd, IntPtr.Zero, 0); 500if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2)) 523if (label != IntPtr.Zero)
MS\Internal\AutomationProxies\ProxySimple.cs (3)
107if (_hwnd == IntPtr.Zero) 181if (_hwnd == IntPtr.Zero || (GetParent() != null && GetParent()._hwnd == _hwnd)) 347return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero;
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
110while (UnsafeNativeMethods.PeekMessage (ref msg, IntPtr.Zero, 0, 0, NativeMethods.PM_REMOVE))
MS\Internal\AutomationProxies\SafeProcessHandle.cs (1)
35if (hwnd == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsAltTab.cs (2)
146if (Misc.MapWindowPoints(System.IntPtr.Zero, _hwnd, ref pt, 1)) 406if(!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2))
MS\Internal\AutomationProxies\WindowsButton.cs (17)
207int state = Misc.ProxySendMessageInt(hwnd, NativeMethods.BM_GETSTATE, IntPtr.Zero, IntPtr.Zero); 337if (hwndRadioButton == IntPtr.Zero || 410if (hwndParent != IntPtr.Zero && WindowsFormsHelper.IsWindowsFormsControl(hwndParent)) 514Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero); 528Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true); 535Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true); 557IntPtr hwndShell = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null); 558if (hwndShell != IntPtr.Zero) 582if (hwndParent != IntPtr.Zero) 601if (hwndParent != IntPtr.Zero) 630} while (hwndParent != _hwndDesktop && hwndParent != IntPtr.Zero); 660int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero); 727return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsComboBox.cs (24)
272if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2)) 318if (cbInfo.hwndItem != IntPtr.Zero && IsEditableCombo()) 335if (cbInfo.hwndList != IntPtr.Zero) 356if (cbInfo.hwndItem != IntPtr.Zero && IsEditableCombo()) 373if (cbInfo.hwndList != IntPtr.Zero) 405if (hwndParent != IntPtr.Zero) 527if ((IntPtr.Zero != hwndEx) && IsComboEx (hwndEx)) 532return IntPtr.Zero; 547cbInfo.hwndItem = IntPtr.Zero; 553if (cbInfo.hwndItem == IntPtr.Zero && IsComboEx (NativeMethodsSetLastError.GetAncestor (hwnd, NativeMethods.GA_PARENT))) 555cbInfo.hwndItem = Misc.FindWindowEx(hwnd, IntPtr.Zero, "EDIT", null); 556if (cbInfo.hwndItem != IntPtr.Zero) 577return Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETDROPPEDSTATE, IntPtr.Zero, IntPtr.Zero) != 0; 592Misc.ProxySendMessage(hwnd, NativeMethods.CB_SHOWDROPDOWN, new IntPtr(1), IntPtr.Zero); 597Misc.ProxySendMessage(hwnd, NativeMethods.CB_SHOWDROPDOWN, new IntPtr(0), IntPtr.Zero); 673if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList)) 689if (hwndEx == IntPtr.Zero) 713index = Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETCURSEL, IntPtr.Zero, IntPtr.Zero); 720int len = Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETLBTEXTLEN, new IntPtr(index), IntPtr.Zero); 812if (hwndCombo != IntPtr.Zero) 861return _hwndEx != IntPtr.Zero; 941if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2))
MS\Internal\AutomationProxies\WindowsContainer.cs (4)
161hwndTab = IntPtr.Zero; 191if (hwndParent == IntPtr.Zero) 196hwndTab = Misc.FindWindowEx(hwndParent, IntPtr.Zero, "SysTabControl32", null); 198if (hwndTab == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndTab))
MS\Internal\AutomationProxies\WindowsEditBox.cs (33)
124if (hwndParent != IntPtr.Zero) 168hwnd != IntPtr.Zero && string.IsNullOrEmpty(accessKey); 236if (hwndUpDown != IntPtr.Zero) 247if (hwndUpDown != IntPtr.Zero) 258if (hwndUpDown != IntPtr.Zero) 329int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 337result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 391if (!Misc.MapWindowPoints(IntPtr.Zero, WindowHandle, ref clientLocation, 1)) 509int result = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_CHARFROMPOS, IntPtr.Zero, lParam); 581return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETFIRSTVISIBLELINE, IntPtr.Zero, IntPtr.Zero); 588return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETFIRSTVISIBLELINE, IntPtr.Zero, IntPtr.Zero); 594IntPtr result = Misc.ProxySendMessage(WindowHandle, NativeMethods.WM_GETFONT, IntPtr.Zero, IntPtr.Zero); 600if (result == IntPtr.Zero) 611return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETLINECOUNT, IntPtr.Zero, IntPtr.Zero); 617Debug.Assert(hfont != IntPtr.Zero, "WindowsEditBox.GetLogfont got null HFONT"); 631Misc.ProxySendMessage(WindowHandle, NativeMethods.EM_GETRECT, IntPtr.Zero, ref rect); 651return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero); 746return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_LINEFROMCHAR, (IntPtr)index, IntPtr.Zero); 752int index = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_LINEINDEX, (IntPtr)(line), IntPtr.Zero); 806int result = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_POSFROMCHAR, (IntPtr)index, IntPtr.Zero); 917if (hdc == IntPtr.Zero) 922IntPtr oldFont = IntPtr.Zero; 931if (oldFont != IntPtr.Zero) 956if (hwndParent == IntPtr.Zero) 976if (hwndParent != IntPtr.Zero) 992if (hwndParent != IntPtr.Zero) 1008if (hwndParent != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (4)
267if (!Misc.MapWindowPoints(_provider.WindowHandle, IntPtr.Zero, ref w32point, 1)) 795IntPtr hdc = Misc.GetDC(IntPtr.Zero); 796if (hdc == IntPtr.Zero) 801Misc.ReleaseDC(IntPtr.Zero, hdc);
MS\Internal\AutomationProxies\WindowsGrip.cs (2)
122int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 130int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsHyperlink.cs (7)
212if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 227bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 293return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM)); 412return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 511bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 523Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y)); 524Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsIPAddress.cs (5)
152Misc.ProxySendMessage(_hwnd, NativeMethods.IPM_SETADDRESS, IntPtr.Zero, (IntPtr)unchecked((int)ipV4)); 202if (hwndChild != IntPtr.Zero) 258while (hwndChild != IntPtr.Zero) 275for (int i = 0; ((i < index) && (hwndChild != IntPtr.Zero)); i++) 398Misc.ProxySendMessage(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(i.ToString(CultureInfo.CurrentCulture)));
MS\Internal\AutomationProxies\WindowsListBox.cs (23)
90if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && (cbInfo.hwndCombo != IntPtr.Zero)) 306int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top)); 321int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero); 396return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0; 446return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero); 541if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && (cbInfo.hwndCombo != IntPtr.Zero)) 577int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero); 618return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR; 741int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 954Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 1000return Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_GETSEL, new IntPtr(item), IntPtr.Zero) > 0; 1013SendMessageResult = Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(item), IntPtr.Zero); 1053return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1057return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1075return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty; 1148Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1178Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1202return Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(item)) != NativeMethods.LB_ERR;
MS\Internal\AutomationProxies\WindowsListView.cs (26)
509if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 538if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 803if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader)) 1222return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 1261return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETVIEW, IntPtr.Zero, IntPtr.Zero); 1286return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref itemRectangle, 2); 1296return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_ISGROUPVIEWENABLED, IntPtr.Zero, IntPtr.Zero) != 0; 1360return Misc.ProxySendMessage(hwnd, NativeMethods.LVM_EDITLABEL, new IntPtr(item), IntPtr.Zero); 1384IntPtr partialVisible = (partialOK) ? IntPtr.Zero : new IntPtr (1); 1392return Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETHEADER, IntPtr.Zero, IntPtr.Zero); 1424if (Misc.MapWindowPoints(IntPtr.Zero, hwnd, ref hitTest.pt, 1)) 1434result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1442result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1460return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 1507return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref itemRectangle, 2); 1516IntPtr hwndToolTip = Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 1808return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref pt, 1); 1818return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETEXTENDEDLISTVIEWSTYLE, IntPtr.Zero, IntPtr.Zero); 1844if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (4)
338int groupIndex = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero); 495int groupIndex = (int)Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETFOCUSEDGROUP, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (3)
253return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_HASGROUP, new IntPtr(groupID), IntPtr.Zero) != 0; 478XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck); 719Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2);
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
80Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (7)
146if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRectangle, 2)) 376int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero); 700if (hwndHeader == IntPtr.Zero) 777if (IntPtr.Zero == hwndEdit) 865if (hwndHeader != IntPtr.Zero) 944if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1))
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (3)
87if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect)) 257if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 261Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (3)
179while (ancestor != IntPtr.Zero && ancestor != desktop) 383int column = (int)Misc.ProxySendMessage(_hwnd, NativeMethods.LVM_GETFOCUSEDCOLUMN, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsMenu.cs (67)
82if (!_expandedMenus.Contains(IntPtr.Zero)) 84_expandedMenus[IntPtr.Zero] = new MenuParentInfo(hwnd, item, type); 180if (hmenu == IntPtr.Zero) 183if (hmenu == IntPtr.Zero) 213if (hSysMenu != IntPtr.Zero) 247IntPtr hwndPopup = IntPtr.Zero; 250hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 251if (hwndPopup == IntPtr.Zero) 260if (hwndPopup != IntPtr.Zero) 267if (hmenu == IntPtr.Zero) 281if (hSubMenu == IntPtr.Zero) 289if (hwndSubMenuPopup == IntPtr.Zero) 476WinEventTracker.AddToNotificationList(IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents(MenuEvents), _menuEvents, _menuEvents.Length); 497WinEventTracker.RemoveToNotificationList (IntPtr.Zero, _menuEvents, new WinEventTracker.ProxyRaiseEvents (MenuEvents), _menuEvents.Length); 546IntPtr menuParent = IntPtr.Zero; 547IntPtr hwndParent = IntPtr.Zero; 550if (menu == IntPtr.Zero) 591hwndParent = IntPtr.Zero; 592menuParent = IntPtr.Zero; 596if (hMenu == IntPtr.Zero) 614if (hMenuPossibleParent != IntPtr.Zero) 630for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null); 631hwndPossibleParent != IntPtr.Zero; 632hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null)) 637if (hMenuPossibleParent != IntPtr.Zero) 658for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, MenuClassName, null); 659hwndSubMenu != IntPtr.Zero; 660hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, MenuClassName, null)) 673return IntPtr.Zero; 685if (IntPtr.Zero != Misc.GetWindow(hwnd, NativeMethods.GW_OWNER)) 733return Misc.ProxySendMessage(hwnd, NativeMethods.MN_GETHMENU, IntPtr.Zero, IntPtr.Zero); 736return IntPtr.Zero; 763if (GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero) 768return IntPtr.Zero; 895mbi.hMenu != IntPtr.Zero && 901return IntPtr.Zero; 907if (hmenu == IntPtr.Zero) 948IntPtr hwndPopup = IntPtr.Zero; 951hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null); 952if (hwndPopup == IntPtr.Zero) 962return IntPtr.Zero; 1025if (parent == null && _expandedMenus.Contains(IntPtr.Zero)) 1028parentInfo = (MenuParentInfo)_expandedMenus[IntPtr.Zero]; 1436return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 1465if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd) 1619if (submenu == IntPtr.Zero) 1626if (hwndSubmenu != IntPtr.Zero) 1638if (submenu == IntPtr.Zero) 1645if (hwndSubmenu != IntPtr.Zero) 1915return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MFT_RADIOCHECK) && menuItemInfo.hbmpChecked == IntPtr.Zero); 1971if (menuItemInfo.hSubMenu != IntPtr.Zero) 1998IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, MenuClassName, null); 1999return (hwndSubMenu == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndSubMenu)); 2004return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu)); 2108for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null); 2110hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null)) 2113if (hwndSubMenu == IntPtr.Zero) 2156if (hSubmenu == IntPtr.Zero) 2162if (hwndSubmenu != IntPtr.Zero) 2266if (gui.hwndCapture != IntPtr.Zero && Misc.ProxyGetClassName(gui.hwndCapture) == "ListBox") 2417(IntPtr.Zero != UnsafeNativeMethods.GetSubMenu (_hmenu, 0)) && 2555int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION); 2599if (_hwnd == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsProgressbar.cs (5)
171int cur = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 172int min = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, new IntPtr(1), IntPtr.Zero); 173int max = Misc.ProxySendMessageInt(_hwnd, NativeMethods.PBM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsRebar.cs (11)
212return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero); 223return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 305IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 344if (hwndBand != IntPtr.Zero) 363if (hwndBand != IntPtr.Zero && Misc.PtInWindowRect(hwndBand, x, y)) 396Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 422if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rectW32, 2)) 443if (_hwndBand == IntPtr.Zero) 470IntPtr _hwndBand = IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsRichEdit.cs (10)
205int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero); 212result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str)); 655fetc.ptd = IntPtr.Zero; 662med.pUnkForRelease = IntPtr.Zero; 663med.hGlobal = IntPtr.Zero; 667if (hr != NativeMethods.S_OK || med.hGlobal == IntPtr.Zero) 677if (hr != NativeMethods.S_OK || med.hGlobal == IntPtr.Zero) 688if (globalMem == IntPtr.Zero) 725if (hwndParent != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsScroll.cs (2)
327bool fRet = Misc.ProxySendMessageInt(hwnd, message, (IntPtr)wParam, IntPtr.Zero) == 0; 439int result = Misc.ProxySendMessageInt(hwnd, message, (IntPtr)wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
714Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero); 716Misc.ProxySendMessage(_hwnd, msg, (IntPtr)wParam, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (3)
307if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2)) 399if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2)) 573Misc.ProxySendMessage(parentHwnd, msg, (IntPtr)wParam, (IntPtr)(parentHwnd == _hwnd ? IntPtr.Zero : _hwnd));
MS\Internal\AutomationProxies\WindowsSlider.cs (21)
186if (IntPtr.Zero != parent) 195Misc.ProxySendMessage(parent, msg, new IntPtr(wParam), IntPtr.Zero); 277int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero); 282int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 307return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero); 315return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero); 323return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero); 331return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero); 425IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 456Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero); 477XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 479if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rcChannel, 2)) 489XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck); 491if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rcThumb, 2))
MS\Internal\AutomationProxies\WindowsSpinner.cs (9)
78hwndBuddy = Misc.ProxySendMessage(hwnd, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero); 79if (hwndBuddy == IntPtr.Zero) 283return GetUpDownFromEdit(hwnd) != IntPtr.Zero; 292if (hwndParent != IntPtr.Zero) 295while (hwndChild != IntPtr.Zero) 300IntPtr hwndBuddy = Misc.ProxySendMessage(hwndChild, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero); 310return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (8)
120if (hwndChild == IntPtr.Zero || hwndChild == _hwnd) 125if(hwndChild != IntPtr.Zero && hwndChild != _hwnd) 315IntPtr hwndChild = IntPtr.Zero; 320if (hwndChild == IntPtr.Zero) 351return Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETPARTS, IntPtr.Zero, IntPtr.Zero); 364info.hwnd = IntPtr.Zero; 610int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (22)
90if (hwndParent != IntPtr.Zero) 173if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1)) 177index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 193int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 261if (hwndParent != IntPtr.Zero) 300Misc.ProxySendMessage(hwndParent, NativeMethods.LVM_SCROLL, new IntPtr(horizontalScrollAmount), IntPtr.Zero); 314return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_ORDERTOINDEX, new IntPtr(order), IntPtr.Zero); 319return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 446if (hwndParent != IntPtr.Zero) 501Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 544int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 592if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2)) 687return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1); 712int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero); 747Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center); 759IntPtr hwndDropDown = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "DropDown", null); 760if (hwndDropDown != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsTab.cs (52)
262if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1)) 271if (updownHwnd != IntPtr.Zero && Misc.PtInWindowRect(updownHwnd, x, y)) 279index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 293int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero); 317if (upDownHwnd != IntPtr.Zero) 339if (upDownHwnd != IntPtr.Zero) 505if (updownHwnd == IntPtr.Zero) 511int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 519Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos); 520Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 534if (updownHwnd == IntPtr.Zero) 540int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 543int posResult = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 591if (updownHwnd == IntPtr.Zero) 651int count = Misc.ProxySendMessageInt(hwnd, NativeMethods.TCM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero); 690if (updownHwnd == IntPtr.Zero) 693int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 697Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos); 698Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 703return GetUpDownHwnd(_hwnd) != IntPtr.Zero; 729if (hwndParent != IntPtr.Zero 763if (childHwnd != IntPtr.Zero) 781return IntPtr.Zero; 807if (updownHwnd == IntPtr.Zero) 814int newPos = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 815int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 854Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos); 855Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 972IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 1009Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1041if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild)) 1155Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero); 1245return Misc.ProxySendMessageInt(hwnd, NativeMethods.TCM_GETCURSEL, IntPtr.Zero, IntPtr.Zero); 1261return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1283return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty; 1303if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1312Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1328if (hwndParent != IntPtr.Zero) 1336return Misc.FindWindowEx(hwndParent, IntPtr.Zero, null, sName); 1340return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
124int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y)); 444Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero); 458Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (20)
242int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero); 313if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0) 343return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero); 383bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0; 384int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero); 443if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 483return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0; 529Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 591return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 613int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero); 650IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 658|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 665if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0) 692if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONCHECKED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (2)
80if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0) 86if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
MS\Internal\AutomationProxies\WindowsTooltip.cs (5)
108WinEventTracker.AddToNotificationList( IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents( OnToolTipEvents ), _toolTipEventIds, _toolTipEventIds.Length ); 125WinEventTracker.RemoveToNotificationList( IntPtr.Zero, _toolTipEventIds, new WinEventTracker.ProxyRaiseEvents( OnToolTipEvents ), _toolTipEventIds.Length ); 261if (hwnd == IntPtr.Zero) 319if (hwnd == IntPtr.Zero) 324int hit = Misc.ProxySendMessageInt(hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsTreeView.cs (45)
173if (hNext != IntPtr.Zero) 200return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null; 206if (hChild != IntPtr.Zero) 211for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 225IntPtr hChild = IntPtr.Zero; 228if (hChild != IntPtr.Zero) 250if (hChild != IntPtr.Zero) 253for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild)) 268if (hItem != IntPtr.Zero) 280if (treeItem != IntPtr.Zero) 297if (treeItem == IntPtr.Zero) 318return (IntPtr.Zero != GetSelection (_hwnd)); 403if (hItemParent == IntPtr.Zero) 462return GetNext(hwnd, IntPtr.Zero, NativeMethods.TVGN_CARET); 490return GetNext(hwnd, IntPtr.Zero, NativeMethods.TVGN_ROOT); 569IntPtr partialDisplay = (labelOnly) ? new IntPtr (1) : IntPtr.Zero; 580return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2) ? rc : NativeMethods.Win32Rect.Empty; 611IntPtr hwndEdit = Misc.ProxySendMessage(hwnd, NativeMethods.TVM_EDITLABELW, IntPtr.Zero, item); 613if (hwndEdit == IntPtr.Zero) 622if (Misc.ProxySendMessageInt(hwndEdit, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(text)) != 1) 625Misc.ProxySendMessage(hwnd, NativeMethods.TVM_ENDEDITLABELNOW, (IntPtr)1, IntPtr.Zero); 633Misc.ProxySendMessage(hwnd, NativeMethods.TVM_ENDEDITLABELNOW, IntPtr.Zero, IntPtr.Zero); 659IntPtr hItem = Misc.ProxySendMessage(hwnd, NativeMethods.TVM_MAPACCIDTOHTREEITEM, new IntPtr(idChild), IntPtr.Zero); 661if (hItem != IntPtr.Zero) 670int lCommonControlVersion = Misc.ProxySendMessageInt(hwnd, NativeMethods.CCM_GETVERSION, IntPtr.Zero, IntPtr.Zero); 673return IntPtr.Zero; 879IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero); 924return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero; 1022if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero) 1244Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem); 1334return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1344return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1352return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1365if (hChild != IntPtr.Zero) 1368for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild)) 1481if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1)) 1553Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1554Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y)); 1582if (address == IntPtr.Zero) 1642return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero; 1649if (_hItem == IntPtr.Zero) 1652int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (16)
244Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0)); 247Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero); 312if (hwndParent != IntPtr.Zero) 361int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero); 374IntPtr hwndBuddy = Misc.ProxySendMessage(hwnd, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero); 377if (hwndBuddy == IntPtr.Zero) 389return hwndBuddy != IntPtr.Zero && Misc.ProxyGetClassName(hwndBuddy).IndexOf("EDIT", StringComparison.OrdinalIgnoreCase) != -1; 398int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 412int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero); 495if (hwndTabParent != IntPtr.Zero) 643if (hwndParent != IntPtr.Zero) 646hwndParent = Misc.ProxyGetClassName(hwndParent).Contains("SysTabControl32") ? hwndParent : IntPtr.Zero;
MS\Internal\AutomationProxies\WinEventTracker.cs (7)
188hp._winEventHook = Misc.SetWinEventHook(hp._evtId, hp._evtId, IntPtr.Zero, proc, processId, 0, NativeMethods.WINEVENT_OUTOFCONTEXT); 211if (hwnd == IntPtr.Zero) 255if (ecp._hwnd == hwnd || ecp._hwnd == IntPtr.Zero) 307if ((ecp._hwnd == IntPtr.Zero)) 372if (hwnd == IntPtr.Zero) 428if ( (hwnd == IntPtr.Zero || ecp._hwnd == hwnd) && 468Debug.Assert (hwnd == IntPtr.Zero, @"BuildEventsList: event is global but hwnd is not null");
MS\Internal\AutomationProxies\WinFormsSpinner.cs (2)
141if (hwndFirstChild == IntPtr.Zero) 148if (hwndLastChild == IntPtr.Zero)
MS\Win32\NativeMethods.cs (25)
900pszHeader = pszFooter = IntPtr.Zero; 943pszHeader = pszFooter = IntPtr.Zero; 949pszSubtitle = IntPtr.Zero; 951pszTask = IntPtr.Zero; 953pszDescriptionTop = IntPtr.Zero; 955pszDescriptionBottom = IntPtr.Zero; 961pszSubsetTitle = IntPtr.Zero; // NULL if group is not subset 1500hwndCombo = IntPtr.Zero; 1501hwndItem = IntPtr.Zero; 1502hwndList = IntPtr.Zero; 1668pszText = IntPtr.Zero; 1673lParam = IntPtr.Zero; 1689hItem = IntPtr.Zero; 1834pszText = IntPtr.Zero; 1837lParam = IntPtr.Zero; 1845pszText = IntPtr.Zero; 1848lParam = IntPtr.Zero; 1889pszText = IntPtr.Zero; 1890hbm = IntPtr.Zero; 1893lParam = IntPtr.Zero; 1897pvFilter = IntPtr.Zero; 1955hwnd = IntPtr.Zero; 1958hinst = IntPtr.Zero; 1959pszText = IntPtr.Zero; 1960lParam = IntPtr.Zero;
MS\Win32\UnsafeNativeMethods.cs (2)
386IntPtr result = IntPtr.Zero; 404if ((result == IntPtr.Zero) && (error != 0))
WindowsBase (158)
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (4)
708IntPtr pszVal = IntPtr.Zero; 736if (pszVal != IntPtr.Zero) 739pszVal = IntPtr.Zero; 772if (pszVal != IntPtr.Zero)
Base\MS\Internal\Security\RightsManagement\CallbackHandler.cs (1)
99if (pvParam != IntPtr.Zero)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (5)
291IntPtr.Zero); // context 639IntPtr.Zero); // context 821boundLicenseParams.rghAuthenticators = IntPtr.Zero; 1040IntPtr.Zero, // context 1041IntPtr.Zero); // parent Window handle
Base\MS\Internal\Security\RightsManagement\NativeRightsManagementAPIsStructures.cs (1)
147internal IntPtr rghAuthenticators = IntPtr.Zero;
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementEnvironmentHandle.cs (3)
28: base(IntPtr.Zero, true) 63base.SetHandle(IntPtr.Zero); 77return this.handle.Equals(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementHandle.cs (3)
28: base(IntPtr.Zero, true) 63base.SetHandle(IntPtr.Zero); 77return this.handle.Equals(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementPubHandle.cs (3)
28: base(IntPtr.Zero, true) 63base.SetHandle(IntPtr.Zero); 77return this.handle.Equals(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementQueryHandle.cs (3)
28: base(IntPtr.Zero, true) 63base.SetHandle(IntPtr.Zero); 77return this.handle.Equals(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementSessionHandle.cs (3)
28: base(IntPtr.Zero, true) 63base.SetHandle(IntPtr.Zero); 77return this.handle.Equals(IntPtr.Zero);
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (4)
911IntPtr.Zero, 954IntPtr.Zero, 1127IntPtr.Zero, 1368IntPtr.Zero,
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (4)
355IntPtr.Zero, 356IntPtr.Zero, 368IntPtr.Zero, 369IntPtr.Zero,
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
349_parentWindow = IntPtr.Zero;
Base\System\Windows\SplashScreen.cs (24)
39private IntPtr _hwnd = IntPtr.Zero; 105if (_hwnd == IntPtr.Zero) 186wndClass.hCursor = IntPtr.Zero; 205HandleRef nullHandle = new HandleRef(null, IntPtr.Zero); 218nullHandle, nullHandle, new HandleRef(null, _hInstance), IntPtr.Zero); 305if (prevHwnd == IntPtr.Zero) 341UnsafeNativeMethods.UpdateLayeredWindow(_hwnd, IntPtr.Zero, null, null, IntPtr.Zero, null, 0, ref _blendFunc, NativeMethods.ULW_ALPHA); 358if (_hwnd != IntPtr.Zero) 365_hwnd = IntPtr.Zero; 397IntPtr pImagingFactory = IntPtr.Zero; 398IntPtr pDecoder = IntPtr.Zero; 399IntPtr pIStream = IntPtr.Zero; 400IntPtr pDecodedFrame = IntPtr.Zero; 401IntPtr pBitmapSourceFormatConverter = IntPtr.Zero; 402IntPtr pBitmapFlipRotator = IntPtr.Zero; 434ref pixelFormat, 0 /*DitherTypeNone*/, IntPtr.Zero, 455IntPtr pBitmapBits = IntPtr.Zero; 469if (pImagingFactory != IntPtr.Zero) 473if (pDecoder != IntPtr.Zero) 477if (pIStream != IntPtr.Zero) 481if (pDecodedFrame != IntPtr.Zero) 485if (pBitmapSourceFormatConverter != IntPtr.Zero) 489if (pBitmapFlipRotator != IntPtr.Zero)
Base\System\Windows\Threading\Dispatcher.cs (4)
2327if (!GetMessage(ref msg, IntPtr.Zero, 0, 0)) 2551return IntPtr.Zero ; 2702bool succeeded = UnsafeNativeMethods.TryPostMessage(new HandleRef(this, _window.Value.Handle), _msgProcessQueue, IntPtr.Zero, IntPtr.Zero);
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (3)
350handle = IntPtr.Zero; 458if (IntPtr.Zero == entryPoint) 534this.handle = IntPtr.Zero;
Shared\MS\Utility\TraceProvider.cs (1)
461ClassicEtw.RegisterTraceGuidsW(_etwProc, IntPtr.Zero, ref providerGuid, 1, ref guidReg, null, null, out registrationHandle);
Shared\MS\Win32\HwndSubclass.cs (11)
254if(_hwndAttached != IntPtr.Zero) 292if(hwnd == IntPtr.Zero) 296if(subclass == IntPtr.Zero) 335IntPtr retval = IntPtr.Zero; 360if(wParam == IntPtr.Zero || wParam == (IntPtr)_gcHandle) 365retval = CriticalDetach(force) ? new IntPtr(1) : IntPtr.Zero ; 459if(hwnd == IntPtr.Zero) 486param.retVal = IntPtr.Zero; 623_oldWndProc = IntPtr.Zero; 625_hwndAttached = IntPtr.Zero; 626_hwndHandleRef = new HandleRef(null,IntPtr.Zero);
Shared\MS\Win32\HwndWrapper.cs (12)
96if (hNullBrush == IntPtr.Zero) 135wc_d.hIcon = IntPtr.Zero; 136wc_d.hCursor = IntPtr.Zero; 140wc_d.hIconSm = IntPtr.Zero; 160new HandleRef(null,IntPtr.Zero), 161new HandleRef(null,IntPtr.Zero), 167if(_handle == null || _handle.Value == IntPtr.Zero) 239else if (_handle != null && _handle.Value != IntPtr.Zero) 282return IntPtr.Zero; 337IntPtr result = IntPtr.Zero; 386if( IntPtr.Zero != result ) 416Invariant.Assert(handle != null && handle.Value != IntPtr.Zero,
Shared\MS\Win32\ManagedWndProcTracker.cs (13)
128IntPtr.Zero /* wildcard */, 160IntPtr result = IntPtr.Zero ; 163if (hwnd == IntPtr.Zero) 170if (defWindowProc != IntPtr.Zero) 189if (result != IntPtr.Zero ) 191UnsafeNativeMethods.PostMessage(new HandleRef(null,hwnd), WindowMessage.WM_CLOSE, IntPtr.Zero, IntPtr.Zero); 204if (_cachedDefWindowProcW == IntPtr.Zero) 213if (_cachedDefWindowProcA == IntPtr.Zero) 234if (hModule != IntPtr.Zero) 239return IntPtr.Zero; 305private static IntPtr _cachedDefWindowProcA = IntPtr.Zero; 306private static IntPtr _cachedDefWindowProcW = IntPtr.Zero;
Shared\MS\Win32\NativeMethodsCLR.cs (10)
105public static HandleRef NullHandleRef = new HandleRef(null, IntPtr.Zero); 3056public IntPtr hwndTrack = IntPtr.Zero; 3820public IntPtr hSubMenu = IntPtr.Zero; 3821public IntPtr hbmpChecked = IntPtr.Zero; 3822public IntPtr hbmpUnchecked = IntPtr.Zero; 4568if ((this.vt == (int)tagVT.VT_UNKNOWN || this.vt == (int)tagVT.VT_DISPATCH) && this.data1.Value != IntPtr.Zero) { 4572if (this.vt == (int)tagVT.VT_BSTR && this.data1.Value != IntPtr.Zero) { 4576this.data1.Value = this.data2.Value = IntPtr.Zero; 4823return (val != IntPtr.Zero); 7302public static readonly IntPtr WTS_CURRENT_SERVER_HANDLE = IntPtr.Zero;
Shared\MS\Win32\NativeMethodsOther.cs (15)
455public IntPtr lpfnWndProc = IntPtr.Zero; 461public IntPtr hInstance = IntPtr.Zero; 463public IntPtr hIcon = IntPtr.Zero; 465public IntPtr hCursor = IntPtr.Zero; 467public IntPtr hbrBackground = IntPtr.Zero; 469public IntPtr lpszMenuName = IntPtr.Zero; 471public IntPtr lpszClassName = IntPtr.Zero; 473public IntPtr hIconSm = IntPtr.Zero; 711 return (LocalFree(base.handle) == IntPtr.Zero); 775public IntPtr hInstance = IntPtr.Zero; 777public IntPtr hIcon = IntPtr.Zero; 779public IntPtr hCursor = IntPtr.Zero; 781public IntPtr hbrBackground = IntPtr.Zero; 787public IntPtr hIconSm = IntPtr.Zero; 1434hTemp.h = IntPtr.Zero;
Shared\MS\Win32\SafeNativeMethodsCLR.cs (5)
311if(SafeNativeMethodsPrivate.SetTimer(hWnd, nIDEvent, uElapse, null) == IntPtr.Zero) 326if(SafeNativeMethodsPrivate.TrySetTimer(hWnd, nIDEvent, uElapse, null) == IntPtr.Zero) 527IntPtr buffer = IntPtr.Zero; 553if (buffer != IntPtr.Zero) 595var ptrProcessDpiAwareness = IntPtr.Zero;
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (13)
565return IntOleInitialize(IntPtr.Zero); 638if(h == IntPtr.Zero) 1052IntPtr result = IntPtr.Zero; 1068IntPtr result = IntPtr.Zero; 1081if (result == IntPtr.Zero && errorCode != 0) 1098if (retVal == IntPtr.Zero && errorCode != 0) 1156if (retVal == IntPtr.Zero) 1197if(result == IntPtr.Zero) 1647if(hDc == IntPtr.Zero) 1850hSection = new SafeFileMappingHandle(IntPtr.Zero); 2058if(retVal == IntPtr.Zero) 4046IntPtr mem = IntPtr.Zero; 4063if (mem != IntPtr.Zero)
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (12)
568return handle == IntPtr.Zero; 607Debug.Assert(handle != IntPtr.Zero); 657IntPtr result = IntPtr.Zero; 680IntPtr result = IntPtr.Zero; 718if (retVal == IntPtr.Zero) 735IntPtr result = IntPtr.Zero; 752if ((result == IntPtr.Zero) && (error != 0)) 772IntPtr result = IntPtr.Zero; 790if ((result == IntPtr.Zero) && (error != 0)) 937public IntPtr hbmMask = IntPtr.Zero; 938public IntPtr hbmColor = IntPtr.Zero; 1603if (result == IntPtr.Zero)
WsatConfig (52)
Configuration\CertificateManager.cs (1)
228IntPtr.Zero,
Configuration\ClusterRegistryConfigurationProvider.cs (2)
55IntPtr.Zero, 93IntPtr.Zero,
Configuration\ClusterSafeNativeMethods.cs (2)
23base(IntPtr.Zero, true) 29get { return IsClosed || handle == IntPtr.Zero; }
Configuration\HttpWrapper.cs (2)
163pAddress = IntPtr.Zero; 217pAddress = IntPtr.Zero;
Configuration\MsdtcClusterUtils.cs (6)
155IntPtr.Zero); 165IntPtr.Zero); 296IntPtr.Zero, 298IntPtr.Zero, 308IntPtr.Zero, 310IntPtr.Zero,
Configuration\MsdtcWrapper.cs (1)
99IntPtr.Zero,
Configuration\QfeChecker.cs (2)
27int hr = SafeNativeMethods.CoInitializeEx(IntPtr.Zero, SafeNativeMethods.COINIT_APARTMENTTHREADED); 36IntPtr.Zero,
Configuration\SafeCertificateContext.cs (1)
25return handle == IntPtr.Zero;
Configuration\SafeCertificateStore.cs (1)
28return handle == IntPtr.Zero;
Configuration\SafeIUnknown.cs (5)
20: base(IntPtr.Zero, true) 27: base(IntPtr.Zero, true) 42return (IsClosed || (IntPtr.Zero == base.handle)); 50base.handle = IntPtr.Zero; 51if (IntPtr.Zero != ptr)
Configuration\SafeLocalAllocation.cs (1)
56return r == IntPtr.Zero;
Configuration\Utilities.cs (5)
55if (hr == SafeNativeMethods.NERR_Success && workstationPtr != IntPtr.Zero) 67workstationPtr = IntPtr.Zero; 159if (comResDll != IntPtr.Zero) 205retCode = SafeNativeMethods.HttpInitialize(new HttpApiVersion(1, 0), SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 206SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);
Configuration\WsatServiceAddress.cs (12)
47retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 60retVal = SafeNativeMethods.HttpSetServiceConfiguration_UrlAcl(IntPtr.Zero, 64IntPtr.Zero); 68retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_UrlAcl(IntPtr.Zero, 72IntPtr.Zero); 76retVal = SafeNativeMethods.HttpSetServiceConfiguration_UrlAcl(IntPtr.Zero, 80IntPtr.Zero); 87SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 111retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 123retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_UrlAcl(IntPtr.Zero, 127IntPtr.Zero); 132SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);
Configuration\WsatServiceCertificate.cs (11)
48retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 51IntPtr pOverlapped = IntPtr.Zero; 68retVal = SafeNativeMethods.HttpSetServiceConfiguration_Ssl(IntPtr.Zero, 74retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_Ssl(IntPtr.Zero, 78IntPtr.Zero); 82retVal = SafeNativeMethods.HttpSetServiceConfiguration_Ssl(IntPtr.Zero, 100SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 125retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 128IntPtr pOverlapped = IntPtr.Zero; 144retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_Ssl(IntPtr.Zero, 159SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);
WsatUI (74)
Configuration\CertificateManager.cs (1)
228IntPtr.Zero,
Configuration\ClusterRegistryConfigurationProvider.cs (2)
55IntPtr.Zero, 93IntPtr.Zero,
Configuration\ClusterSafeNativeMethods.cs (2)
23base(IntPtr.Zero, true) 29get { return IsClosed || handle == IntPtr.Zero; }
Configuration\ETWSafeNativeMethods.cs (1)
106Head.BuffersWritten = 0; Head.LoggerThreadId = IntPtr.Zero;
Configuration\HttpWrapper.cs (2)
163pAddress = IntPtr.Zero; 217pAddress = IntPtr.Zero;
Configuration\MsdtcClusterUtils.cs (6)
155IntPtr.Zero); 165IntPtr.Zero); 296IntPtr.Zero, 298IntPtr.Zero, 308IntPtr.Zero, 310IntPtr.Zero,
Configuration\MsdtcWrapper.cs (1)
99IntPtr.Zero,
Configuration\QfeChecker.cs (2)
27int hr = SafeNativeMethods.CoInitializeEx(IntPtr.Zero, SafeNativeMethods.COINIT_APARTMENTTHREADED); 36IntPtr.Zero,
Configuration\SafeCertificateContext.cs (1)
25return handle == IntPtr.Zero;
Configuration\SafeCertificateStore.cs (1)
28return handle == IntPtr.Zero;
Configuration\SafeIUnknown.cs (5)
20: base(IntPtr.Zero, true) 27: base(IntPtr.Zero, true) 42return (IsClosed || (IntPtr.Zero == base.handle)); 50base.handle = IntPtr.Zero; 51if (IntPtr.Zero != ptr)
Configuration\SafeLocalAllocation.cs (1)
56return r == IntPtr.Zero;
Configuration\Utilities.cs (5)
55if (hr == SafeNativeMethods.NERR_Success && workstationPtr != IntPtr.Zero) 67workstationPtr = IntPtr.Zero; 159if (comResDll != IntPtr.Zero) 205retCode = SafeNativeMethods.HttpInitialize(new HttpApiVersion(1, 0), SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 206SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);
Configuration\WsatServiceAddress.cs (12)
47retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 60retVal = SafeNativeMethods.HttpSetServiceConfiguration_UrlAcl(IntPtr.Zero, 64IntPtr.Zero); 68retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_UrlAcl(IntPtr.Zero, 72IntPtr.Zero); 76retVal = SafeNativeMethods.HttpSetServiceConfiguration_UrlAcl(IntPtr.Zero, 80IntPtr.Zero); 87SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 111retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 123retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_UrlAcl(IntPtr.Zero, 127IntPtr.Zero); 132SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);
Configuration\WsatServiceCertificate.cs (11)
48retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 51IntPtr pOverlapped = IntPtr.Zero; 68retVal = SafeNativeMethods.HttpSetServiceConfiguration_Ssl(IntPtr.Zero, 74retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_Ssl(IntPtr.Zero, 78IntPtr.Zero); 82retVal = SafeNativeMethods.HttpSetServiceConfiguration_Ssl(IntPtr.Zero, 100SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 125retVal = SafeNativeMethods.HttpInitialize(HttpWrapper.HttpApiVersion1, SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero); 128IntPtr pOverlapped = IntPtr.Zero; 144retVal = SafeNativeMethods.HttpDeleteServiceConfiguration_Ssl(IntPtr.Zero, 159SafeNativeMethods.HttpTerminate(SafeNativeMethods.HTTP_INITIALIZE_CONFIG, IntPtr.Zero);
MMCUI\ACLWrapper.cs (3)
96this.hInstance = IntPtr.Zero; 129this.Guid = IntPtr.Zero; 295if (pSecurityDescriptorFromUI.Equals(IntPtr.Zero))
MMCUI\WSATControl.cs (5)
25IntPtr propPage = IntPtr.Zero; 26IntPtr propSheetDialog = IntPtr.Zero; 212SafeNativeMethods.SendMessage(propSheetDialog, PSM.CHANGED, propPage, IntPtr.Zero); 3220, IntPtr.Zero); 368IntPtr.Zero,
MMCUI\WSATPropertySheet.cs (11)
38IntPtr windowUnmanagedParent = IntPtr.Zero; 64propSheet.longParameter = IntPtr.Zero; 146formatEtc.ptd = IntPtr.Zero; 156if (stg.unionmember == IntPtr.Zero) 206watermark = IntPtr.Zero; 207header = IntPtr.Zero; 208palette = IntPtr.Zero; 233valid ? IntPtr.Zero : (IntPtr)1); 256if (this.windowUnmanagedParent == IntPtr.Zero) 290OnShowPropertyPage(wordParameter != IntPtr.Zero); 400windowUnmanagedParent = IntPtr.Zero;
MMCUI\WsatSecurityModel.cs (2)
206return IntPtr.Zero; 210return IntPtr.Zero;