3839 references to Zero
aspire (10)
csc (7)
dotnet (6)
dotnet-svcutil-lib (1)
ILCompiler.Compiler (2)
ILCompiler.ReadyToRun (5)
ILCompiler.RyuJit (5)
Infrastructure.Common (4)
libmscordaccore_universal (14)
Microsoft.AspNetCore.Cryptography.Internal (10)
SafeHandles\BCryptAlgorithmHandle.cs (2)
32int ntstatus = UnsafeNativeMethods.BCryptCreateHash(this, out retVal, IntPtr.Zero, 0, pbKey, cbKey, dwFlags: 0);
55int ntstatus = UnsafeNativeMethods.BCryptGenerateSymmetricKey(this, out retVal, IntPtr.Zero, 0, pbSecret, cbSecret, 0);
Microsoft.AspNetCore.DataProtection (13)
Cng\DpapiSecretSerializerHelper.cs (13)
90szDataDescr: IntPtr.Zero,
92pvReserved: IntPtr.Zero,
93pPromptStruct: IntPtr.Zero,
157pMemPara: IntPtr.Zero,
158hWnd: IntPtr.Zero,
233ppszDataDescr: IntPtr.Zero,
235pvReserved: IntPtr.Zero,
236pPromptStruct: IntPtr.Zero,
280phDescriptor: IntPtr.Zero,
284pMemPara: IntPtr.Zero,
285hWnd: IntPtr.Zero,
345pMemPara: IntPtr.Zero,
346hWnd: IntPtr.Zero,
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Server.HttpSys (26)
Microsoft.AspNetCore.Server.IIS (17)
Microsoft.Build.Framework (4)
Microsoft.Build.Tasks.CodeAnalysis (6)
Microsoft.Build.Tasks.Core (12)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
210return IntPtr.Zero;
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
Microsoft.CSharp (25)
Microsoft.Diagnostics.NETCore.Client (6)
Microsoft.DiaSymReader (4)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.NativeWrapper (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.TensorFlow (5)
Microsoft.ML.TestFrameworkCommon (8)
Microsoft.ML.TimeSeries (4)
Microsoft.ML.Vision (7)
Microsoft.NET.Sdk.Razor.Tasks (1)
Microsoft.Private.Windows.Core (2)
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
Microsoft.Win32.Msi (2)
Microsoft.Win32.Registry (4)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
Microsoft.Win32.SystemEvents (25)
Microsoft\Win32\SystemEvents.cs (25)
71private static volatile IntPtr s_processWinStation = IntPtr.Zero;
78if (hwinsta != IntPtr.Zero && s_processWinStation != hwinsta)
372if (s_defWindowProc == IntPtr.Zero)
392Interop.User32.WM_CREATETIMER, (IntPtr)interval, IntPtr.Zero);
395if (timerId == IntPtr.Zero)
404if (_windowHandle != IntPtr.Zero)
413_windowHandle = IntPtr.Zero;
417if (Interop.User32.IsWindow(handle) && DefWndProc != IntPtr.Zero)
441Interop.User32.PostMessageW(handle, Interop.User32.WM_CLOSE, IntPtr.Zero, IntPtr.Zero);
492if (requireHandle && s_systemEvents._windowHandle == IntPtr.Zero)
509if (retval != IntPtr.Zero)
6920, 0, 0, 0, IntPtr.Zero, IntPtr.Zero,
693hInstance, IntPtr.Zero);
782Interop.User32.PostMessageW(s_systemEvents!._windowHandle, s_threadCallbackMessage, IntPtr.Zero, IntPtr.Zero);
791if (s_systemEvents!._windowHandle != IntPtr.Zero)
794Interop.User32.WM_KILLTIMER, timerId, IntPtr.Zero);
809IntPtr res = Interop.User32.SetTimer(_windowHandle, timerId, (int)wParam, IntPtr.Zero);
810return (res == IntPtr.Zero ? IntPtr.Zero : timerId);
1181_windowHandle = IntPtr.Zero;
1189return IntPtr.Zero;
1210if (_windowHandle != IntPtr.Zero)
NuGet.Packaging (22)
PresentationCore (391)
MS\Internal\AppModel\CookieHandler.cs (2)
106if (UnsafeNativeMethods.InternetGetCookieEx(uriString, null, null, ref size, 0, IntPtr.Zero))
113if (UnsafeNativeMethods.InternetGetCookieEx(uriString, null, sb, ref size, 0, IntPtr.Zero))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
86IntPtr.Zero,
System\Windows\InterOp\HwndTarget.cs (31)
98private static readonly IntPtr Unhandled = IntPtr.Zero;
473Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero);
484IntPtr hwndParent = IntPtr.Zero;
500if (hwndParent != IntPtr.Zero)
504} while (hwndParent != IntPtr.Zero);
507Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero);
956UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true);
1003UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true);
1103UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true);
1120bool enableRenderTarget = (wparam != IntPtr.Zero);
1244UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true);
1281UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero , true);
1315UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true);
1337UnsafeNativeMethods.InvalidateRect(_hWnd.MakeHandleRef(this), IntPtr.Zero, true);
1373&& !UnsafeNativeMethods.GetLayeredWindowAttributes(_hWnd.MakeHandleRef(this), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero)
1439return IntPtr.Zero;
1445return IntPtr.Zero;
1753new HandleRef(null, IntPtr.Zero), // HWND_TOP
1775new HandleRef(null, IntPtr.Zero), // HWND_TOP
1780UnsafeNativeMethods.InvalidateRect(new HandleRef(this, _hWnd), IntPtr.Zero, true);
1895if(hwndParent != IntPtr.Zero)
2200UnsafeNativeMethods.UpdateLayeredWindow(_hWnd.h, IntPtr.Zero, null, null, IntPtr.Zero, null, 0, ref blend, NativeMethods.ULW_ALPHA);
2279UnsafeNativeMethods.PostMessage(new HandleRef(this, _hWnd), s_updateWindowSettings, IntPtr.Zero, IntPtr.Zero);
2547IntPtr.Zero,
2560if (_hPowerNotify != IntPtr.Zero)
2563_hPowerNotify = IntPtr.Zero;
2605IntPtr retInt = IntPtr.Zero;
PresentationFramework (702)
MS\Internal\PtsHost\FigureParagraph.cs (11)
168CreateSubpageFiniteHelper(PtsContext, IntPtr.Zero, PTS.False, _mainTextSegment.Handle, IntPtr.Zero, PTS.False, PTS.True,
174if(brParaOut != IntPtr.Zero)
191if (pfsFigureContent != IntPtr.Zero)
195if (pmcsclientOut != IntPtr.Zero)
200pmcsclientOut = IntPtr.Zero;
211CreateSubpageFiniteHelper(PtsContext, IntPtr.Zero, PTS.False, _mainTextSegment.Handle, IntPtr.Zero, PTS.False, PTS.True,
217if(brParaOut != IntPtr.Zero)
235if (pmcsclientOut != IntPtr.Zero)
240pmcsclientOut = IntPtr.Zero;
System\Windows\Controls\Primitives\Popup.cs (23)
1228bool reestablishCapture = e.OriginalSource != root && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero;
1754if (wParam == IntPtr.Zero)
1787return IntPtr.Zero;
2668if (monitor != IntPtr.Zero)
2749if (hCursor != IntPtr.Zero)
3077UnsafeNativeMethods.SetWindowPos(new HandleRef(null, Handle), new HandleRef(null, IntPtr.Zero),
3086if (parent != IntPtr.Zero)
3099if (hwnd != IntPtr.Zero)
3167lastWebOCHwnd == IntPtr.Zero ? NativeMethods.HWND_TOP : new HandleRef(null, lastWebOCHwnd),
3205while (lastHwnd != IntPtr.Zero)
3305IntPtr parent = IntPtr.Zero;
3337if ( parent != IntPtr.Zero )
3345if ((parent != IntPtr.Zero) && ConnectedToForegroundWindow(parent))
3375while (window != IntPtr.Zero)
3394return (hwnd!=null ? hwnd.Handle : IntPtr.Zero);
3402if (child != IntPtr.Zero)
3408return IntPtr.Zero;
3427if (Handle != IntPtr.Zero && (UnsafeNativeMethods.IsWinEventHookInstalled(NativeMethods.EVENT_OBJECT_FOCUS) || UnsafeNativeMethods.IsWinEventHookInstalled(NativeMethods.EVENT_OBJECT_STATECHANGE)))
3432if (popupRootAutomationPeer.Hwnd == IntPtr.Zero)
3435IntPtr lResult = AutomationInteropProvider.ReturnRawElementProvider(Handle, IntPtr.Zero, new IntPtr(NativeMethods.OBJID_CLIENT), RootProviderForHwnd);
3436if (lResult != IntPtr.Zero)
3441hr = UnsafeNativeMethods.ObjectFromLresult(lResult, ref iid, IntPtr.Zero, ref acc);
3519return DpiUtil.GetProcessDpiAwareness(IntPtr.Zero) == NativeMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE;
System\Windows\Documents\ImmComposition.cs (22)
185IntPtr hwnd = IntPtr.Zero;
190if (himc != IntPtr.Zero)
320IntPtr lret = IntPtr.Zero;
399if (himc == IntPtr.Zero)
410size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_RESULTSTR, IntPtr.Zero, 0);
424size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_COMPSTR, IntPtr.Zero, 0);
436cursorPos = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_CURSORPOS, IntPtr.Zero, 0);
444deltaStart = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_DELTASTART, IntPtr.Zero, 0);
452size = UnsafeNativeMethods.ImmGetCompositionString(new HandleRef(this, himc), NativeMethods.GCS_COMPATTR, IntPtr.Zero, 0);
566if (himc != IntPtr.Zero)
748if (himc != IntPtr.Zero)
1270IntPtr lret = IntPtr.Zero;
1305return IntPtr.Zero;
1327if (lParam != IntPtr.Zero)
1487return IntPtr.Zero;
1492return IntPtr.Zero;
1501return IntPtr.Zero;
1720IntPtr hwnd = IntPtr.Zero;
1726IntPtr lret = IntPtr.Zero;
1727if (himc != IntPtr.Zero)
1729IntPtr hwndDefIme = IntPtr.Zero;
1735return (lret != IntPtr.Zero) ? true : false;
System\Windows\Interop\HwndHost.cs (33)
68if (_hwnd.Handle != IntPtr.Zero)
72_hwnd = new HandleRef(null, IntPtr.Zero);
301if (Handle != IntPtr.Zero && (hwndFocus.Handle == _hwnd.Handle || UnsafeNativeMethods.IsChild(_hwnd, hwndFocus)))
338if (( Handle != IntPtr.Zero) && IsVisible)
552_hwnd = new HandleRef(null, IntPtr.Zero);
610return IntPtr.Zero ;
625IntPtr result = IntPtr.Zero;
654new HandleRef(null, IntPtr.Zero),
692if(Handle != IntPtr.Zero)
724if(Handle != IntPtr.Zero)
731HandleRef hdcScreen = new HandleRef(this, UnsafeNativeMethods.GetDC(new HandleRef(this, IntPtr.Zero)));
732if(hdcScreen.Handle != IntPtr.Zero)
734HandleRef hdcBitmap = new HandleRef(this, IntPtr.Zero);
735HandleRef hBitmap = new HandleRef(this, IntPtr.Zero);
740if(hdcBitmap.Handle != IntPtr.Zero)
744if(hBitmap.Handle != IntPtr.Zero)
776UnsafeNativeMethods.CriticalRedrawWindow(_hwnd, IntPtr.Zero, IntPtr.Zero, NativeMethods.RDW_INVALIDATE | NativeMethods.RDW_ALLCHILDREN);
781System.Windows.Media.Imaging.BitmapSource bitmapSource = Imaging.CriticalCreateBitmapSourceFromHBitmap(hBitmap.Handle, IntPtr.Zero, Int32Rect.Empty, null, WICBitmapAlphaChannelOption.WICBitmapIgnoreAlpha);
796UnsafeNativeMethods.ReleaseDC(new HandleRef(this, IntPtr.Zero), hdcScreen);
797hdcScreen = new HandleRef(null, IntPtr.Zero);
799if(hBitmap.Handle != IntPtr.Zero)
802hBitmap = new HandleRef(this, IntPtr.Zero);
805if(hdcBitmap.Handle != IntPtr.Zero)
808hdcBitmap = new HandleRef(this, IntPtr.Zero);
922IntPtr hwndParent = IntPtr.Zero;
948if(hwndParent != IntPtr.Zero)
950if(_hwnd.Handle == IntPtr.Zero)
966else if (Handle != IntPtr.Zero)
1009if(_hwnd.Handle == IntPtr.Zero || !UnsafeNativeMethods.IsWindow(_hwnd))
1075if( Handle == IntPtr.Zero)
1091_hwnd = new HandleRef(null, IntPtr.Zero);
1104IntPtr result = IntPtr.Zero ;
System\Windows\MessageBox.cs (8)
107return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, defaultResult, options);
122return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, defaultResult, 0);
136return ShowCore(IntPtr.Zero, messageBoxText, caption, button, icon, 0, 0);
149return ShowCore(IntPtr.Zero, messageBoxText, caption, button, MessageBoxImage.None, 0, 0);
159return ShowCore(IntPtr.Zero, messageBoxText, caption, MessageBoxButton.OK, MessageBoxImage.None, 0, 0);
169return ShowCore(IntPtr.Zero, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0);
395if (owner != IntPtr.Zero)
402if (owner == IntPtr.Zero)
System\Windows\Shell\WindowChromeWorker.cs (23)
139if (IntPtr.Zero != _hwnd)
206if (_chromeInfo != null && _hwnd != IntPtr.Zero)
222if (_hwnd == IntPtr.Zero || _hwndSource.IsDisposed)
246NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
347return IntPtr.Zero;
432IntPtr retVal = IntPtr.Zero;
508if (IntPtr.Zero != lRet)
533return IntPtr.Zero;
553return IntPtr.Zero;
582return IntPtr.Zero;
590return IntPtr.Zero;
660if (IntPtr.Zero != hmenu)
703if (IntPtr.Zero == _hwnd || _hwndSource.IsDisposed)
725NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
731NativeMethods.SetWindowRgn(_hwnd, IntPtr.Zero, NativeMethods.IsWindowVisible(_hwnd));
767IntPtr hrgn = IntPtr.Zero;
772hrgn = IntPtr.Zero;
799IntPtr hrgn = IntPtr.Zero;
849hrgn = IntPtr.Zero;
885IntPtr hrgn = IntPtr.Zero;
933if (IntPtr.Zero == _hwnd)
1137if (!Utility.IsOSVistaOrNewer || _hwnd == IntPtr.Zero)
1155NativeMethods.SetWindowPos(_hwnd, IntPtr.Zero, 0, 0, 0, 0, _SwpFlags);
System\Windows\Standard\NativeMethods.cs (28)
1410if (!_hwnd.HasValue || _hwnd.Value == IntPtr.Zero)
1425dc = NativeMethods.CreateDC(deviceName, null, IntPtr.Zero, IntPtr.Zero);
1447IntPtr hPtr = IntPtr.Zero;
1495return GetDC(IntPtr.Zero);
1506_hwnd = IntPtr.Zero,
1562handle = IntPtr.Zero;
1598handle = IntPtr.Zero;
2349IntPtr argv = IntPtr.Zero;
2355if (argv == IntPtr.Zero)
2373Assert.AreEqual(IntPtr.Zero, p);
2389hBitmap = _CreateDIBSectionIntPtr(IntPtr.Zero, ref bitmapInfo, DIB_RGB_COLORS, out ppvBits, hSection, dwOffset);
2410if (IntPtr.Zero == ret)
2423if (IntPtr.Zero == ret)
2436if (IntPtr.Zero == ret)
2476if (IntPtr.Zero == ret)
2735if (retPtr == IntPtr.Zero)
2762if (retPtr == IntPtr.Zero)
2778IntPtr ret = IntPtr.Zero;
2787if (IntPtr.Zero == ret)
2924if (ret == IntPtr.Zero)
3066if (ret == IntPtr.Zero)
3079if (ret == IntPtr.Zero)
3166if (!_UpdateLayeredWindowIntPtr(hwnd, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, crKey, ref pblend, dwFlags))
System\Windows\SystemCommands.cs (5)
31if (hwnd == IntPtr.Zero || !NativeMethods.IsWindow(hwnd))
36NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr((int)command), IntPtr.Zero);
80if (hwnd == IntPtr.Zero || !NativeMethods.IsWindow(hwnd))
87uint cmd = NativeMethods.TrackPopupMenuEx(hmenu, TPM_LEFTBUTTON | TPM_RIGHTBUTTON | TPM_RETURNCMD, (int)physicalScreenLocation.X, (int)physicalScreenLocation.Y, hwnd, IntPtr.Zero);
90NativeMethods.PostMessage(hwnd, WM.SYSCOMMAND, new IntPtr(cmd), IntPtr.Zero);
System\Windows\Window.cs (46)
251UnsafeNativeMethods.SendMessage( Handle, WindowMessage.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_MOUSEMOVE, IntPtr.Zero);
252UnsafeNativeMethods.SendMessage( Handle, WindowMessage.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero);
292_dialogOwnerHandle = IntPtr.Zero;
302if (_dialogOwnerHandle == IntPtr.Zero)
309if ((_dialogOwnerHandle != IntPtr.Zero) &&
312_dialogOwnerHandle = IntPtr.Zero;
317if (_dialogOwnerHandle != IntPtr.Zero)
322while (_dialogOwnerHandle != IntPtr.Zero)
358if (hWndCapture != IntPtr.Zero)
426if ( (_dialogPreviousActiveHandle != IntPtr.Zero) &&
1286SetOwnerHandle(_ownerWindow != null ? _ownerWindow.Handle: IntPtr.Zero);
2601if (handle != IntPtr.Zero)
2830new HandleRef(null, IntPtr.Zero),
2913new HandleRef(null, IntPtr.Zero),
3014new HandleRef(null, IntPtr.Zero),
3188return IntPtr.Zero;
3776IntPtr hMonitor = IntPtr.Zero;
3777if ((_ownerHandle == IntPtr.Zero) ||
3789if (hMonitor != IntPtr.Zero)
3813if (Owner.Handle == IntPtr.Zero)
3831if ((_ownerHandle != IntPtr.Zero) && UnsafeNativeMethods.IsWindow(new HandleRef(null, _ownerHandle)))
3870Debug.Assert(hMonitor != IntPtr.Zero);
3879if (hMonitor == IntPtr.Zero)
4159if (_ownerHandle == ownerHandle && _ownerHandle == IntPtr.Zero)
4167_ownerHandle = (IntPtr.Zero == ownerHandle && !ShowInTaskbar)
4240IntPtr retInt = IntPtr.Zero ;
4467(_dialogPreviousActiveHandle != IntPtr.Zero) &&
5984if (hMonitor != IntPtr.Zero)
6227new HandleRef(null, IntPtr.Zero),
6347IntPtr.Zero,
6370if (_ownerHandle == IntPtr.Zero)
6392SetOwnerHandle(IntPtr.Zero);
6400UnsafeNativeMethods.PostMessage(new HandleRef(this, Handle), WM_APPLYTASKBARITEMINFO, IntPtr.Zero, IntPtr.Zero);
6735nativeTB.hIcon = IntPtr.Zero;
6852if (manager.Dirty && Handle != IntPtr.Zero)
6916SetOwnerHandle(IntPtr.Zero);
7221private IntPtr _ownerHandle = IntPtr.Zero; // no need to dispose this
7275private IntPtr _dialogOwnerHandle = IntPtr.Zero;
7377return IntPtr.Zero;
7396if ( monitor != IntPtr.Zero )
7794return DpiUtil.GetProcessDpiAwareness(IntPtr.Zero) == NativeMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE;
7809var nullHandle = new HandleRef(null, IntPtr.Zero);
7813IntPtr.Zero,
7815IntPtr.Zero);
PresentationFramework-SystemDrawing (1)
PresentationUI (5)
ReachFramework (23)
rzc (1)
System.CodeDom (3)
System\CodeDom\Compiler\Executor.cs (3)
28ExecWaitWithCapture(IntPtr.Zero, cmd, currentDir, tempFiles, ref outputName, ref errorName);
31ExecWaitWithCapture(IntPtr.Zero, cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName);
35if (userToken != IntPtr.Zero)
System.Data.Odbc (15)
System.Data.OleDb (126)
OleDbCommand.cs (12)
861hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_IMultipleResults, dbParams, out _recordsAffected, out executeResult);
879hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_IRowset, dbParams, out _recordsAffected, out executeResult);
883hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_NULL, dbParams, out _recordsAffected, out executeResult);
896hr = _icommandText!.Execute(IntPtr.Zero, in ODB.IID_IRow, dbParams, out _recordsAffected, out executeResult);
997hr = iopenRowset.Value.OpenRowset(IntPtr.Zero, tableID, IntPtr.Zero, in ODB.IID_IRowset, propSet.PropertySetCount, propSet.DangerousGetHandle(), out executeResult);
1009hr = iopenRowset.Value.OpenRowset(IntPtr.Zero, tableID, IntPtr.Zero, in ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult);
1014hr = iopenRowset.Value.OpenRowset(IntPtr.Zero, tableID, IntPtr.Zero, in ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult);
OleDbConnectionInternal.cs (10)
339transactionJoin.Value.JoinTransaction(oleTxTransaction, (int)IsolationLevel.Unspecified, 0, IntPtr.Zero);
411IntPtr literalInfo = IntPtr.Zero;
540IntPtr literalInfo = IntPtr.Zero;
585IntPtr schemaGuids = IntPtr.Zero;
586IntPtr schemaRestrictions = IntPtr.Zero;
597if (IntPtr.Zero != schemaGuids)
605if (IntPtr.Zero != schemaRestrictions)
635hr = dbSchemaRowset.GetRowset(IntPtr.Zero, in schema, restrictions.Length, restrictions, in ODB.IID_IRowset, 0, IntPtr.Zero, out rowset);
646dataReader.InitializeIRowset(rowset, ChapterHandle.DB_NULL_HCHAPTER, IntPtr.Zero);
OleDbDataReader.cs (13)
475IntPtr columnInfos = IntPtr.Zero; // ptr to byvalue tagDBCOLUMNINFO[]
564if (IntPtr.Zero != dbColumnInfo.columnid.ulPropid)
574info.propid = IntPtr.Zero;
615hr = icolumnsRowset.GetColumnsRowset(IntPtr.Zero, cOptColumns, prgOptColumns, in ODB.IID_IRowset, 0, IntPtr.Zero, out rowset);
679IntPtr affected = IntPtr.Zero;
1238hr = imultipleResults.GetResult(IntPtr.Zero, ODB.DBRESULTFLAG_DEFAULT, in ODB.IID_NULL, out affected, out _);
1329hr = imultipleResults.GetResult(IntPtr.Zero, ODB.DBRESULTFLAG_DEFAULT, in ODB.IID_IRowset, out affected, out result);
1705hr = irowset.GetNextRows(_chapterHandle.HChapter, /*skipCount*/IntPtr.Zero, _rowHandleFetchCount, out _rowFetchedCount, ref rowHandlesPtr);
1781hr = irowset.ReleaseRows(_rowFetchedCount, _rowHandleNativeBuffer!, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
2239dataReader.InitializeIRowset(rowset, ChapterHandle.DB_NULL_HCHAPTER, IntPtr.Zero);
OleDbWrapper.cs (11)
72hr = GetDataSource(base.handle, IntPtr.Zero, ODB.CLSCTX_ALL, connectionStringPtr, riid, &handle);
129IntPtr idbCreateSession = IntPtr.Zero;
180if ((0 <= hr) && (IntPtr.Zero != idbCreateSession))
211hr = CreateSession(idbCreateSession, IntPtr.Zero, riid, &handle);
244hr = CreateSession(idbCreateSession, IntPtr.Zero, riid, &handle);
270if (IntPtr.Zero != idbCreateSession)
331IntPtr idbCreateCommand = IntPtr.Zero;
347if ((0 <= hresult) && (IntPtr.Zero != idbCreateCommand))
361if (IntPtr.Zero != idbCreateCommand)
408IntPtr nativeICommandText = IntPtr.Zero;
423hr = CreateCommand(base.handle, IntPtr.Zero, riid, &nativeICommandText);
RowBinding.cs (13)
271if (IntPtr.Zero == ptr)
284if (IntPtr.Zero == pinnedValue)
396Debug.Assert(IntPtr.Zero != buffer && _needToReset && _haveData, "shouldn't be calling ResetValues");
472IntPtr chapter = SafeNativeMethods.InterlockedExchangePointer(ADP.IntPtrOffset(buffer, valueOffset), IntPtr.Zero);
493if ((IntPtr.Zero != currentValue) && (currentValue != originalValue))
497if (IntPtr.Zero != originalValue)
503Marshal.WriteIntPtr(buffer, valueOffset, IntPtr.Zero);
504Marshal.WriteIntPtr(buffer, valueOffset + IntPtr.Size, IntPtr.Zero);
523if ((IntPtr.Zero != currentValue) && (currentValue != originalValue))
529Marshal.WriteIntPtr(buffer, valueOffset, IntPtr.Zero);
530Marshal.WriteIntPtr(buffer, valueOffset + IntPtr.Size, IntPtr.Zero);
578value = SafeNativeMethods.InterlockedExchangePointer(ptr, IntPtr.Zero);
597if (IntPtr.Zero != buffer)
System.Diagnostics.EventLog (68)
System\Diagnostics\Reader\NativeWrapper.cs (48)
355IntPtr buffer = IntPtr.Zero;
360bool status = UnsafeNativeMethods.EvtGetEventInfo(handle, enumType, 0, IntPtr.Zero, out bufferNeeded);
381if (buffer != IntPtr.Zero)
388IntPtr buffer = IntPtr.Zero;
392bool status = UnsafeNativeMethods.EvtGetQueryInfo(handle, enumType, 0, IntPtr.Zero, ref bufferNeeded);
410if (buffer != IntPtr.Zero)
417IntPtr buffer = IntPtr.Zero;
422bool status = UnsafeNativeMethods.EvtGetPublisherMetadataProperty(pmHandle, thePropertyId, 0, 0, IntPtr.Zero, out bufferNeeded);
440if (buffer != IntPtr.Zero)
447IntPtr buffer = IntPtr.Zero;
451bool status = UnsafeNativeMethods.EvtGetPublisherMetadataProperty(pmHandle, thePropertyId, 0, 0, IntPtr.Zero, out bufferNeeded);
476if (buffer != IntPtr.Zero)
526IntPtr buffer = IntPtr.Zero;
531bool status = UnsafeNativeMethods.EvtGetObjectArrayProperty(objArrayHandle, thePropertyId, index, 0, 0, IntPtr.Zero, out bufferNeeded);
550if (buffer != IntPtr.Zero)
557IntPtr buffer = IntPtr.Zero;
562bool status = UnsafeNativeMethods.EvtGetEventMetadataProperty(handle, enumType, 0, 0, IntPtr.Zero, out bufferNeeded);
580if (buffer != IntPtr.Zero)
587IntPtr buffer = IntPtr.Zero;
592bool status = UnsafeNativeMethods.EvtGetChannelConfigProperty(handle, enumType, 0, 0, IntPtr.Zero, out bufferNeeded);
617if (buffer != IntPtr.Zero)
762IntPtr buffer = IntPtr.Zero;
767bool status = UnsafeNativeMethods.EvtGetLogInfo(handle, enumType, 0, IntPtr.Zero, out bufferNeeded);
785if (buffer != IntPtr.Zero)
792IntPtr buffer = IntPtr.Zero;
793IntPtr pointer = IntPtr.Zero;
799bool status = UnsafeNativeMethods.EvtRender(contextHandle, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount);
883if (buffer != IntPtr.Zero)
892IntPtr buffer = IntPtr.Zero;
900bool status = UnsafeNativeMethods.EvtRender(contextHandle, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount);
929if (buffer != IntPtr.Zero)
988IntPtr buffer = IntPtr.Zero;
1009status = UnsafeNativeMethods.EvtFormatMessageBuffer(pmHandle, eventHandle, 0, 0, IntPtr.Zero, flag, bufferNeeded, buffer, out bufferNeeded);
1036if (buffer != IntPtr.Zero)
1043IntPtr buffer = IntPtr.Zero;
1050bool status = UnsafeNativeMethods.EvtRender(EventLogHandle.Zero, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount);
1068if (buffer != IntPtr.Zero)
1162return (val.SidVal == IntPtr.Zero) ? null : new SecurityIdentifier(val.SidVal);
1164return (val.GuidReference == IntPtr.Zero) ? Guid.Empty : Marshal.PtrToStructure<Guid>(val.GuidReference);
1181if (val.Reference == IntPtr.Zero)
1187if (val.Reference == IntPtr.Zero)
1193if (val.Reference == IntPtr.Zero)
1199if (val.Reference == IntPtr.Zero)
1205if (val.Reference == IntPtr.Zero)
1211if (val.Reference == IntPtr.Zero)
1258if (val.StringVal == IntPtr.Zero)
1266if (val.AnsiString == IntPtr.Zero)
1274if (val.Handle == IntPtr.Zero)
System.Diagnostics.PerformanceCounter (4)
System.Diagnostics.Process (4)
System.Diagnostics.StackTrace (5)
System.DirectoryServices (60)
System\DirectoryServices\ActiveDirectory\Locator.cs (10)
32IntPtr pDomainControllerInfo = IntPtr.Zero;
45result = Interop.Netapi32.DsGetDcName(computerName, domainName, IntPtr.Zero, siteName, (int)(flags | (long)PrivateLocatorFlags.ReturnDNSName), out pDomainControllerInfo);
58if (pDomainControllerInfo != IntPtr.Zero)
134IntPtr retGetDcContext = IntPtr.Zero;
135IntPtr sockAddressCountPtr = IntPtr.Zero;
136IntPtr sockAddressList = IntPtr.Zero;
137IntPtr dcDnsHostNamePtr = IntPtr.Zero;
141result = Interop.Netapi32.DsGetDcOpen(domainName, (int)optionFlags, siteName, IntPtr.Zero, null, (int)dcFlags, out retGetDcContext);
169if (sockAddressList != IntPtr.Zero)
175if (dcDnsHostNamePtr != IntPtr.Zero)
System.DirectoryServices.AccountManagement (69)
System.DirectoryServices.Protocols (148)
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (7)
76internal static int ParseReference(ConnectionHandle ldapHandle, IntPtr result, ref IntPtr referrals) => Interop.Ldap.ldap_parse_reference(ldapHandle, result, ref referrals, IntPtr.Zero, 0);
125IntPtr passwordPtr = IntPtr.Zero;
135return Interop.Ldap.ldap_sasl_bind(ld, who, Interop.LDAP_SASL_SIMPLE, passwordBerval, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
165message = IntPtr.Zero;
192if (ldapHandle == IntPtr.Zero)
System.Drawing.Common (20)
System\Drawing\Graphics.cs (15)
2283DrawImageAbort? callback) => DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttrs, callback, IntPtr.Zero);
2343DrawImageAbort? callback) => DrawImage(image, destRect, (float)srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttr, callback, IntPtr.Zero);
2450EnumerateMetafile(metafile, destPoint, callback, IntPtr.Zero);
2456EnumerateMetafile(metafile, destPoint, callback, IntPtr.Zero);
2462EnumerateMetafile(metafile, destRect, callback, IntPtr.Zero);
2468EnumerateMetafile(metafile, destRect, callback, IntPtr.Zero);
2474EnumerateMetafile(metafile, destPoints, callback, IntPtr.Zero);
2480IntPtr callbackData) => EnumerateMetafile(metafile, destPoints, callback, IntPtr.Zero, null);
2483EnumerateMetafile(metafile, destPoints, callback, IntPtr.Zero);
2493EnumerateMetafileProc callback) => EnumerateMetafile(metafile, destPoint, srcRect, srcUnit, callback, IntPtr.Zero);
2508EnumerateMetafileProc callback) => EnumerateMetafile(metafile, destPoint, srcRect, srcUnit, callback, IntPtr.Zero);
2523EnumerateMetafileProc callback) => EnumerateMetafile(metafile, destRect, srcRect, srcUnit, callback, IntPtr.Zero);
2538EnumerateMetafileProc callback) => EnumerateMetafile(metafile, destRect, srcRect, srcUnit, callback, IntPtr.Zero);
2553EnumerateMetafileProc callback) => EnumerateMetafile(metafile, destPoints, srcRect, srcUnit, callback, IntPtr.Zero);
2568EnumerateMetafileProc callback) => EnumerateMetafile(metafile, destPoints, srcRect, srcUnit, callback, IntPtr.Zero);
System.IO.Compression (11)
System.IO.Compression.Brotli (13)
System.IO.FileSystem.AccessControl (10)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
System.IO.MemoryMappedFiles (3)
System.Management (70)
System.Net.Http.WinHttpHandler (30)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
System.Net.HttpListener (2)
System.Net.Primitives (2)
System.Net.Quic (43)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
28if (ret == IntPtr.Zero)
System.Net.Requests (8)
System.Net.Security (84)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs (1)
28if (ret == IntPtr.Zero)
System.Net.Sockets (1)
System.Net.WebSockets (3)
System.Net.WebSockets.Client (1)
System.Private.CoreLib (333)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\DispatchResolve.cs (1)
76return IntPtr.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\IsolatedComponentLoadContext.cs (1)
51return IntPtr.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1249return IntPtr.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (9)
243private IntPtr m_writeEventStringEventHandle = IntPtr.Zero;
802Debug.Assert(eventHandle != IntPtr.Zero);
1950decoded = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1);
2176args[i] = dataPointer == IntPtr.Zero ? null : new string((char*)dataPointer, 0, (data->Size >> 1) - 1);
2283m_etwProvider?.WriteEvent(ref descr, IntPtr.Zero, null, null, 1, (IntPtr)((void*)&data));
2287if (m_writeEventStringEventHandle == IntPtr.Zero)
2296if (m_writeEventStringEventHandle == IntPtr.Zero)
2975if (!m_etwProvider.WriteEvent(ref manifestDescr, IntPtr.Zero, null, null, 2, (IntPtr)dataDescrs))
3544metadata.EventHandle = IntPtr.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventHandleTable.cs (1)
26IntPtr ret = IntPtr.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (4)
30return Interop.Kernel32.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType | CAL_RETURN_NUMBER, IntPtr.Zero, 0, out data) != 0;
40int ret = Interop.Kernel32.GetCalendarInfoEx(localeName, (uint)calendar, IntPtr.Zero, calType, (IntPtr)buffer, BUFFER_LENGTH, IntPtr.Zero);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (12)
23return IntPtr.Zero;
27int ret = Interop.Kernel32.LCMapStringEx(cultureName, Interop.Kernel32.LCMAP_SORTHANDLE, null, 0, &handle, IntPtr.Size, null, null, IntPtr.Zero);
42return IntPtr.Zero;
128int sortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
150if (Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
202string? localeName = _sortHandle != IntPtr.Zero ? null : _sortName;
255string? localeName = _sortHandle != IntPtr.Zero ? null : _sortName;
383int sortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
397if (Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
445actualSortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
497sortKeyLength = Interop.Kernel32.LCMapStringEx(_sortHandle != IntPtr.Zero ? null : _sortName,
525return Interop.Kernel32.IsNLSDefinedString(Interop.Kernel32.COMPARE_STRING, 0, IntPtr.Zero, pText, text.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (36)
79unknown = IntPtr.Zero;
90unknown = IntPtr.Zero;
103if (unknown == IntPtr.Zero)
226if (handle == IntPtr.Zero)
296ppvObject = IntPtr.Zero;
306if (ppvObject == IntPtr.Zero)
338if (ppvObject == IntPtr.Zero)
350if (typeMaybe == IntPtr.Zero)
359Debug.Assert(GetComCount(RefCount) == 0 || HolderHandle == IntPtr.Zero);
361if (HolderHandle == IntPtr.Zero)
377IntPtr handle = Interlocked.Exchange(ref HolderHandle, IntPtr.Zero);
378if (handle != IntPtr.Zero)
429return IntPtr.Zero;
442return IntPtr.Zero;
520if (refCountedHandle != IntPtr.Zero && GCHandle.InternalGet(refCountedHandle) != null)
576referenceTrackerMaybe = IntPtr.Zero;
580if (trackerObject != IntPtr.Zero ||
642if (_inner != IntPtr.Zero)
645_inner = IntPtr.Zero;
648_externalComObject = IntPtr.Zero;
674public IntPtr TrackerObject => (_trackerObject == IntPtr.Zero || _trackerObjectDisconnected == 1) ? IntPtr.Zero : _trackerObject;
686Debug.Assert(trackerObject != IntPtr.Zero);
724if (_trackerObject == IntPtr.Zero || Interlocked.CompareExchange(ref _trackerObjectDisconnected, 1, 0) != 0)
738_trackerObject = IntPtr.Zero;
896mow->HolderHandle = IntPtr.Zero;
919if (!TryGetOrCreateObjectForComInstanceInternal(externalComObject, IntPtr.Zero, flags, wrapperMaybe: null, userState: NoUserState.Instance, out obj))
940if (!TryGetOrCreateObjectForComInstanceInternal(externalComObject, IntPtr.Zero, flags, wrapperMaybe: null, userState, out obj))
958return GetOrRegisterObjectForComInstance(externalComObject, flags, wrapper, IntPtr.Zero);
1050referenceTrackerMaybe = IntPtr.Zero;
1055if (innerMaybe == IntPtr.Zero && // User didn't supply inner - .NET 5 API scenario sanity check.
1091if (externalComObject == IntPtr.Zero)
1094if (innerMaybe != IntPtr.Zero && !flags.HasFlag(CreateObjectFlags.Aggregation))
1176if (referenceTrackerMaybe != IntPtr.Zero)
1628targetPtr != IntPtr.Zero)
1666return IntPtr.Zero;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ReferenceTrackerHost.cs (1)
89if (punk == IntPtr.Zero)
System.Private.Reflection.Execution (19)
System.Private.TypeLoader (60)
System.Private.Windows.Core (3)
System.Private.Windows.Core.TestUtilities (1)
System.Reflection.Metadata (6)
System.Runtime.InteropServices.JavaScript (5)
System.Security.AccessControl (10)
System.Security.Cryptography (139)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs (2)
23NTSTATUS ntStatus = BCryptEncrypt(hKey, pbInput, input.Length, IntPtr.Zero, iv, iv == null ? 0 : iv.Length, pbOutput, output.Length, out cbResult, 0);
44NTSTATUS ntStatus = BCryptDecrypt(hKey, pbInput, input.Length, IntPtr.Zero, iv, iv == null ? 0 : iv.Length, pbOutput, output.Length, out cbResult, 0);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs (6)
29NTSTATUS ntStatus = BCryptExportKey(key, IntPtr.Zero, blobType, null, 0, out numBytesNeeded, 0);
37ntStatus = BCryptExportKey(key, IntPtr.Zero, blobType, rented, numBytesNeeded, out numBytesNeeded, 0);
51NTSTATUS ntStatus = BCryptExportKey(key, IntPtr.Zero, blobType, null, 0, out numBytesNeeded, 0);
63ntStatus = BCryptExportKey(key, IntPtr.Zero, blobType, destination, numBytesNeeded, out numBytesNeeded, 0);
85NTSTATUS ntStatus = BCryptExportKey(key, IntPtr.Zero, blobType, null, 0, out numBytesNeeded, 0);
98ntStatus = BCryptExportKey(key, IntPtr.Zero, blobType, rented, numBytesNeeded, out numBytesNeeded, 0);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptImportKeyPair.cs (1)
37IntPtr.Zero,
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (11)
152ErrorCode errorCode = Interop.NCrypt.NCryptExportKey(handle, IntPtr.Zero, blobType, IntPtr.Zero, null, 0, out numBytesNeeded, 0);
162errorCode = Interop.NCrypt.NCryptExportKey(handle, IntPtr.Zero, blobType, IntPtr.Zero, buffer, buffer.Length, out numBytesNeeded, 0);
189IntPtr.Zero,
191IntPtr.Zero,
210IntPtr.Zero,
212IntPtr.Zero,
256if (buffers[0].pvBuffer == IntPtr.Zero)
286IntPtr.Zero,
314IntPtr.Zero,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.NamedCurve.cs (1)
171IntPtr.Zero,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
160IntPtr.Zero,
System\Security\Cryptography\CngAsnFormatter.cs (2)
30if (Interop.Crypt32.CryptFormatObject(X509_ASN_ENCODING, 0, dwFormatStrType, IntPtr.Zero, (byte*)oidValuePtr, rawData, rawData.Length, null, ref cbFormat))
38if (Interop.Crypt32.CryptFormatObject(X509_ASN_ENCODING, 0, dwFormatStrType, IntPtr.Zero, (byte*)oidValuePtr, rawData, rawData.Length, bufferPtr, ref cbFormat))
System\Security\Cryptography\CngKey.Export.cs (4)
23ErrorCode errorCode = Interop.NCrypt.NCryptExportKey(_keyHandle, IntPtr.Zero, format.Format, IntPtr.Zero, null, 0, out numBytesNeeded, 0);
28errorCode = Interop.NCrypt.NCryptExportKey(_keyHandle, IntPtr.Zero, format.Format, IntPtr.Zero, buffer, buffer.Length, out numBytesNeeded, 0);
System\Security\Cryptography\HashProviderCng.cs (2)
39NTSTATUS ntStatus = Interop.BCrypt.BCryptCreateHash(_hAlgorithm, out _hHash, IntPtr.Zero, 0, key, key.Length, BCryptCreateHashFlags.BCRYPT_HASH_REUSABLE_FLAG);
159NTSTATUS ntStatus = Interop.BCrypt.BCryptCreateHash(_hAlgorithm, out hHash, IntPtr.Zero, 0, _key, _key == null ? 0 : _key.Length, Flags);
System\Security\Cryptography\HashProviderDispenser.Windows.cs (1)
300IntPtr.Zero,
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (10)
46IntPtr.Zero,
48IntPtr.Zero,
50IntPtr.Zero,
51IntPtr.Zero
127IntPtr.Zero,
134!Interop.Crypt32.CertAddCertificateLinkToStore(certStore, certContext, Interop.Crypt32.CertStoreAddDisposition.CERT_STORE_ADD_ALWAYS, IntPtr.Zero))
157IntPtr.Zero,
176if (!Interop.Crypt32.CertAddCertificateLinkToStore(certStore, certContext, Interop.Crypt32.CertStoreAddDisposition.CERT_STORE_ADD_ALWAYS, IntPtr.Zero))
196SafeCertStoreHandle certStore = Interop.crypt32.CertOpenStore(CertStoreProvider.CERT_STORE_PROV_SYSTEM_W, Interop.Crypt32.CertEncodingType.All, IntPtr.Zero, certStoreFlags, storeName);
210_ = Interop.Crypt32.CertControlStore(certStore, Interop.Crypt32.CertControlStoreFlags.None, Interop.Crypt32.CertControlStoreType.CERT_STORE_CTRL_AUTO_RESYNC, IntPtr.Zero);
System\Security\Cryptography\X509Certificates\X509Pal.Windows.X500DistinguishedName.cs (6)
50if (!Interop.Crypt32.CertStrToName(Interop.Crypt32.CertEncodingType.All, distinguishedName, dwStrType, IntPtr.Zero, null, ref cbEncoded, IntPtr.Zero))
54if (!Interop.Crypt32.CertStrToName(Interop.Crypt32.CertEncodingType.All, distinguishedName, dwStrType, IntPtr.Zero, encodedName, ref cbEncoded, IntPtr.Zero))
72IntPtr.Zero,
90IntPtr.Zero,
System.Security.Cryptography.Pkcs (39)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (3)
36if (!Interop.Crypt32.CryptMsgGetParam(hCryptMsg, paramType, index, IntPtr.Zero, ref cbData))
53if (!Interop.Crypt32.CryptMsgGetParam(hCryptMsg, paramType, index, IntPtr.Zero, ref cbData))
340if (!Interop.Crypt32.CryptMsgGetParam(hCryptMsg, CryptMsgParamType.CMSG_UNPROTECTED_ATTR_PARAM, 0, IntPtr.Zero, ref cbUnprotectedAttr))
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
System.Security.Cryptography.ProtectedData (11)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
System\Security\Cryptography\ProtectedData.cs (7)
358Interop.Crypt32.CryptProtectData(in userDataBlob, null, ref optionalEntropyBlob, IntPtr.Zero, IntPtr.Zero, flags, out outputBlob) :
359Interop.Crypt32.CryptUnprotectData(in userDataBlob, IntPtr.Zero, ref optionalEntropyBlob, IntPtr.Zero, IntPtr.Zero, flags, out outputBlob);
375if (outputBlob.pbData == IntPtr.Zero)
402if (outputBlob.pbData != IntPtr.Zero)
System.Security.Principal.Windows (15)
System.ServiceModel.Primitives (2)
System.ServiceProcess.ServiceController (7)
System\ServiceProcess\ServiceController.cs (4)
190bool result = Interop.Advapi32.EnumDependentServices(serviceHandle, Interop.Advapi32.ServiceState.SERVICE_STATE_ALL, IntPtr.Zero, 0,
305bool success = Interop.Advapi32.QueryServiceConfig(serviceHandle, IntPtr.Zero, 0, out int bytesNeeded);
389bool success = Interop.Advapi32.QueryServiceConfig(serviceHandle, IntPtr.Zero, 0, out int bytesNeeded);
754IntPtr.Zero,
System.Speech (24)
System.Text.Encoding.CodePages (3)
System.Threading.AccessControl (4)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (4)
33GetMessage(errorCode, IntPtr.Zero);
38if (moduleHandle != IntPtr.Zero)
47int length = FormatMessage(flags, moduleHandle, unchecked((uint)errorCode), 0, bufferPtr, stackBuffer.Length, IntPtr.Zero);
62int length = FormatMessage(flags | FORMAT_MESSAGE_ALLOCATE_BUFFER, moduleHandle, unchecked((uint)errorCode), 0, &nativeMsgPtr, 0, IntPtr.Zero);
System.Transactions.Local (5)
System.Windows.Controls.Ribbon (7)
System.Windows.Extensions (28)
System.Windows.Forms (113)
System.Windows.Forms.Design (11)
System.Windows.Forms.Primitives (5)
UIAutomationClient (62)
MS\Internal\Automation\HwndProxyElementProvider.cs (19)
116IntPtr len = Misc.SendMessageTimeout( _hwnd, UnsafeNativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero );
126if (Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETTEXT, new IntPtr(ilen + 1), str) == IntPtr.Zero)
344if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MINIMIZE, IntPtr.Zero))
365if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_MAXIMIZE, IntPtr.Zero))
387if (!Misc.PostMessage(_hwnd, UnsafeNativeMethods.WM_SYSCOMMAND, (IntPtr)UnsafeNativeMethods.SC_CLOSE, IntPtr.Zero))
572IntPtr ret = UnsafeNativeMethods.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero, UnsafeNativeMethods.SMTO_ABORTIFHUNG, 0, out dwResult);
573if ( ret == IntPtr.Zero )
794Misc.SendMessageTimeout(_hwnd, UnsafeNativeMethods.WM_GETMINMAXINFO, IntPtr.Zero, ref minMaxInfo);
861if (hmenu != IntPtr.Zero)
906if (hmenu != IntPtr.Zero)
994if (GetMenuBarInfo(_hwnd, UnsafeNativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero)
999return IntPtr.Zero;
1720if (hrgn == IntPtr.Zero)
1816IntPtr lr = Misc.SendMessageTimeout( hChild, UnsafeNativeMethods.WM_NCHITTEST, IntPtr.Zero, MAKELPARAM( (int)x, (int)y ) );
1993if (parent == IntPtr.Zero)
1997IntPtr lresult = Misc.SendMessageTimeout(parent, UnsafeNativeMethods.WM_MDIACTIVATE, (IntPtr)hwnd, IntPtr.Zero);
1998return lresult == IntPtr.Zero;
UIAutomationClientSideProviders (647)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (55)
109if (!ignoreSendResult && result == IntPtr.Zero)
139if (IsWOW64Process(IntPtr.Zero))
195if (Misc.ProxySendMessage(hwnd, uMsg, wParam, rmem.Address) == IntPtr.Zero)
239if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero)))
286if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero)))
342if ((errorCode != ErrorValue.NoCheck) && ((errorCode == ErrorValue.Zero && res == IntPtr.Zero) || (errorCode == ErrorValue.NotZero && res != IntPtr.Zero)))
408return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
414return GetTextWithinStructureRemoteBitness(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero,
423return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
465return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck);
472bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck);
484bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck);
667IntPtr textAddress = IntPtr.Zero;
915return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
922bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
935bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
956return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()));
962return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
968return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
978IntPtr hitTestItem = IntPtr.Zero;
983if (Misc.MapWindowPoints(IntPtr.Zero, hwnd, ref clientPoint, 1))
989if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo),
998if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo32),
1007if (XSend(hwnd, NativeMethods.TVM_HITTEST, IntPtr.Zero, new IntPtr(&hitTestInfo64),
1027return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
1034hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32),
1042return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
1190Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rectW32, 2);
1256if (Misc.ProxySendMessage(hwnd, msg, new IntPtr(index), rmem.Address) != IntPtr.Zero)
1353if (group.pszHeader != IntPtr.Zero)
1622pszText = IntPtr.Zero,
1723pszText = IntPtr.Zero,
1724hbm = IntPtr.Zero,
1731pvFilter = IntPtr.Zero
1829pszText = IntPtr.Zero,
1948pszText = IntPtr.Zero,
1955puColumns = IntPtr.Zero
2148pszHeader = IntPtr.Zero,
2150pszFooter = IntPtr.Zero,
2232pszHeader = IntPtr.Zero,
2234pszFooter = IntPtr.Zero,
2242pszSubtitle = IntPtr.Zero,
2244pszTask = IntPtr.Zero,
2246pszDescriptionTop = IntPtr.Zero,
2248pszDescriptionBottom = IntPtr.Zero,
2254pszSubsetTitle = IntPtr.Zero, // NULL if group is not subset
2345iString = IntPtr.Zero
2445hItem = IntPtr.Zero,
2448pszText = IntPtr.Zero,
2593hwnd = IntPtr.Zero,
2596hinst = IntPtr.Zero,
2597pszText = IntPtr.Zero,
MS\Internal\AutomationProxies\Misc.cs (44)
178if (result == IntPtr.Zero)
207if (label == IntPtr.Zero)
237if (!MapWindowPoints(hwnd, IntPtr.Zero, ref leftTop, 1))
243if (!MapWindowPoints(hwnd, IntPtr.Zero, ref rightBottom, 1))
303if (hdc == IntPtr.Zero)
315return ProxyGetGUIThreadInfo(0, out gui) ? gui.hwndFocus : IntPtr.Zero;
320if (hwndToolTip != IntPtr.Zero)
373return IntPtr.Zero;
378if (hwndParent == IntPtr.Zero || hwndParent == UnsafeNativeMethods.GetDesktopWindow())
380return IntPtr.Zero;
386while ((peer = NativeMethodsSetLastError.GetWindow(peer, NativeMethods.GW_HWNDPREV)) != IntPtr.Zero)
391int code = Misc.ProxySendMessageInt(peer, NativeMethods.WM_GETDLGCODE, IntPtr.Zero, IntPtr.Zero);
419return IntPtr.Zero;
506if (hwndParent == IntPtr.Zero)
569IntPtr memAddr = IntPtr.Zero; // Ptr to remote mem
578memAddr = VirtualAlloc(IntPtr.Zero, new UIntPtr(cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE);
584if (ProxySendMessage(hwnd, uMsg, wParam, memAddr) == IntPtr.Zero)
605if (memAddr != IntPtr.Zero)
617if (resultHwnd == IntPtr.Zero)
752if (hwnd == IntPtr.Zero)
865while (hwnd != IntPtr.Zero)
898if ((IsProgmanWindow(hWndFrom) && hWndTo == IntPtr.Zero) ||
899(hWndFrom == IntPtr.Zero && IsProgmanWindow(hWndTo)))
923if ((IsProgmanWindow(hWndFrom) && hWndTo == IntPtr.Zero) ||
924(hWndFrom == IntPtr.Zero && IsProgmanWindow(hWndTo)))
1018if (processHandle == IntPtr.Zero
1034if (processHandle == IntPtr.Zero)
1062int index = ProxySendMessageInt(hwnd, NativeMethods.WM_GETOBJECT, IntPtr.Zero, (IntPtr)OBJID_QUERYCLASSNAMEIDX, true);
1196IntPtr resultSendMessage = UnsafeNativeMethods.SendMessageTimeout(hwnd, NativeMethods.WM_GETTITLEBARINFOEX, IntPtr.Zero, ref ti, _sendMessageFlags, _sendMessageTimeoutValue, out result);
1198if (resultSendMessage == IntPtr.Zero)
1254if (resultSendMessage == IntPtr.Zero)
1282if (resultSendMessage == IntPtr.Zero)
1308if (resultSendMessage == IntPtr.Zero)
1334if (resultSendMessage == IntPtr.Zero)
1349if (resultSendMessage == IntPtr.Zero)
1524if (RegisterHotKey(IntPtr.Zero, atom, 0, vk))
1572if (!GetMessage(ref msg, IntPtr.Zero, 0, 0))
1590UnregisterHotKey(IntPtr.Zero, atom);
1747if (result == IntPtr.Zero)
1760if (result == IntPtr.Zero)
1842if (hwndShell == IntPtr.Zero)
1855int commonControlVersion = Misc.ProxySendMessageInt(hwnd, NativeMethods.CCM_GETVERSION, IntPtr.Zero, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsButton.cs (17)
190int state = Misc.ProxySendMessageInt(hwnd, NativeMethods.BM_GETSTATE, IntPtr.Zero, IntPtr.Zero);
317if (hwndRadioButton == IntPtr.Zero ||
390if (hwndParent != IntPtr.Zero && WindowsFormsHelper.IsWindowsFormsControl(hwndParent))
494Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, new IntPtr(NativeMethods.SC_TASKLIST), IntPtr.Zero);
508Misc.ProxySendMessage(_hwnd, NativeMethods.BM_SETSTATE, new IntPtr(1), IntPtr.Zero, true);
515Misc.ProxySendMessage(_hwnd, NativeMethods.BM_CLICK, IntPtr.Zero, IntPtr.Zero, true);
537IntPtr hwndShell = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
538if (hwndShell != IntPtr.Zero)
562if (hwndParent != IntPtr.Zero)
581if (hwndParent != IntPtr.Zero)
610} while (hwndParent != _hwndDesktop && hwndParent != IntPtr.Zero);
640int state = Misc.ProxySendMessageInt(_hwnd, NativeMethods.BM_GETCHECK, IntPtr.Zero, IntPtr.Zero);
707return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsComboBox.cs (24)
254if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2))
300if (cbInfo.hwndItem != IntPtr.Zero && IsEditableCombo())
315if (cbInfo.hwndList != IntPtr.Zero)
336if (cbInfo.hwndItem != IntPtr.Zero && IsEditableCombo())
351if (cbInfo.hwndList != IntPtr.Zero)
383if (hwndParent != IntPtr.Zero)
505if ((IntPtr.Zero != hwndEx) && IsComboEx (hwndEx))
510return IntPtr.Zero;
525cbInfo.hwndItem = IntPtr.Zero;
531if (cbInfo.hwndItem == IntPtr.Zero && IsComboEx (NativeMethodsSetLastError.GetAncestor (hwnd, NativeMethods.GA_PARENT)))
533cbInfo.hwndItem = Misc.FindWindowEx(hwnd, IntPtr.Zero, "EDIT", null);
534if (cbInfo.hwndItem != IntPtr.Zero)
555return Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETDROPPEDSTATE, IntPtr.Zero, IntPtr.Zero) != 0;
570Misc.ProxySendMessage(hwnd, NativeMethods.CB_SHOWDROPDOWN, new IntPtr(1), IntPtr.Zero);
575Misc.ProxySendMessage(hwnd, NativeMethods.CB_SHOWDROPDOWN, new IntPtr(0), IntPtr.Zero);
651if (GetComboInfo(_hwnd, ref cbInfo) && (IntPtr.Zero != cbInfo.hwndList))
667if (hwndEx == IntPtr.Zero)
691index = Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
698int len = Misc.ProxySendMessageInt(hwnd, NativeMethods.CB_GETLBTEXTLEN, new IntPtr(index), IntPtr.Zero);
787if (hwndCombo != IntPtr.Zero)
833return _hwndEx != IntPtr.Zero;
913if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref cbInfo.rcButton, 2))
MS\Internal\AutomationProxies\WindowsEditBox.cs (33)
105if (hwndParent != IntPtr.Zero)
149hwnd != IntPtr.Zero && string.IsNullOrEmpty(accessKey);
217if (hwndUpDown != IntPtr.Zero)
228if (hwndUpDown != IntPtr.Zero)
239if (hwndUpDown != IntPtr.Zero)
289int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.EM_GETLIMITTEXT, IntPtr.Zero, IntPtr.Zero);
297result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(str));
351if (!Misc.MapWindowPoints(IntPtr.Zero, WindowHandle, ref clientLocation, 1))
443int result = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_CHARFROMPOS, IntPtr.Zero, lParam);
515return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETFIRSTVISIBLELINE, IntPtr.Zero, IntPtr.Zero);
522return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETFIRSTVISIBLELINE, IntPtr.Zero, IntPtr.Zero);
528IntPtr result = Misc.ProxySendMessage(WindowHandle, NativeMethods.WM_GETFONT, IntPtr.Zero, IntPtr.Zero);
534if (result == IntPtr.Zero)
545return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_GETLINECOUNT, IntPtr.Zero, IntPtr.Zero);
551Debug.Assert(hfont != IntPtr.Zero, "WindowsEditBox.GetLogfont got null HFONT");
565Misc.ProxySendMessage(WindowHandle, NativeMethods.EM_GETRECT, IntPtr.Zero, ref rect);
585return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero);
680return Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_LINEFROMCHAR, (IntPtr)index, IntPtr.Zero);
686int index = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_LINEINDEX, (IntPtr)(line), IntPtr.Zero);
742int result = Misc.ProxySendMessageInt(WindowHandle, NativeMethods.EM_POSFROMCHAR, (IntPtr)index, IntPtr.Zero);
853if (hdc == IntPtr.Zero)
858IntPtr oldFont = IntPtr.Zero;
867if (oldFont != IntPtr.Zero)
892if (hwndParent == IntPtr.Zero)
912if (hwndParent != IntPtr.Zero)
928if (hwndParent != IntPtr.Zero)
944if (hwndParent != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsHyperlink.cs (7)
196if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1))
211bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
276return XSendMessage.XSend(_hwnd, NativeMethods.LM_GETITEM, IntPtr.Zero, new IntPtr(pLinkItem), sizeof(UnsafeNativeMethods.LITEM));
395return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType()));
492bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
504Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
505Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x, y));
MS\Internal\AutomationProxies\WindowsListBox.cs (23)
77if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && (cbInfo.hwndCombo != IntPtr.Zero))
290int ret = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_ITEMFROMPOINT, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(x - listboxrect.left, y - listboxrect.top));
305int index = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero);
380return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCURSEL, IntPtr.Zero, IntPtr.Zero) >= 0;
430return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCOUNT, IntPtr.Zero, IntPtr.Zero);
522if (WindowsComboBox.GetComboInfo(hwnd, ref cbInfo) && (cbInfo.hwndCombo != IntPtr.Zero))
555int result = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSELCOUNT, IntPtr.Zero, IntPtr.Zero);
596return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(-1)) != NativeMethods.LB_ERR;
719int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero);
932Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero);
978return Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_GETSEL, new IntPtr(item), IntPtr.Zero) > 0;
991SendMessageResult = Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(item), IntPtr.Zero);
1031return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item;
1035return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0;
1053return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) ? itemRect : NativeMethods.Win32Rect.Empty;
1126Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero);
1156Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero);
1180return Misc.ProxySendMessageInt(hwnd, NativeMethods.LB_SETSEL, IntPtr.Zero, new IntPtr(item)) != NativeMethods.LB_ERR;
MS\Internal\AutomationProxies\WindowsListView.cs (26)
495if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
524if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
789if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
1207return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero);
1246return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETVIEW, IntPtr.Zero, IntPtr.Zero);
1271return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref itemRectangle, 2);
1281return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_ISGROUPVIEWENABLED, IntPtr.Zero, IntPtr.Zero) != 0;
1345return Misc.ProxySendMessage(hwnd, NativeMethods.LVM_EDITLABEL, new IntPtr(item), IntPtr.Zero);
1369IntPtr partialVisible = (partialOK) ? IntPtr.Zero : new IntPtr (1);
1377return Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETHEADER, IntPtr.Zero, IntPtr.Zero);
1410if (Misc.MapWindowPoints(IntPtr.Zero, hwnd, ref hitTest.pt, 1))
1420result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1429result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1448return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero);
1495return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref itemRectangle, 2);
1504IntPtr hwndToolTip = Misc.ProxySendMessage(hwnd, NativeMethods.LVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero);
1794return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref pt, 1);
1804return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_GETEXTENDEDLISTVIEWSTYLE, IntPtr.Zero, IntPtr.Zero);
1831if (hwndHeader != IntPtr.Zero && SafeNativeMethods.IsWindowVisible (hwndHeader))
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (3)
240return Misc.ProxySendMessageInt(hwnd, NativeMethods.LVM_HASGROUP, new IntPtr(groupID), IntPtr.Zero) != 0;
466XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPMETRICS, IntPtr.Zero, new IntPtr(&(metric.cbSize)), metric.cbSize, XSendMessage.ErrorValue.NoCheck);
705Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rect, 2);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (3)
79if (Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref itemRect, 2) && !Misc.IsItemVisible(ref parentRect, ref itemRect))
249if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1))
253Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
MS\Internal\AutomationProxies\WindowsMenu.cs (67)
65if (!_expandedMenus.Contains(IntPtr.Zero))
67_expandedMenus[IntPtr.Zero] = new MenuParentInfo(hwnd, item, type);
163if (hmenu == IntPtr.Zero)
166if (hmenu == IntPtr.Zero)
196if (hSysMenu != IntPtr.Zero)
230IntPtr hwndPopup = IntPtr.Zero;
233hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null);
234if (hwndPopup == IntPtr.Zero)
243if (hwndPopup != IntPtr.Zero)
250if (hmenu == IntPtr.Zero)
264if (hSubMenu == IntPtr.Zero)
272if (hwndSubMenuPopup == IntPtr.Zero)
459WinEventTracker.AddToNotificationList(IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents(MenuEvents), _menuEvents);
480WinEventTracker.RemoveToNotificationList(IntPtr.Zero, _menuEvents, new WinEventTracker.ProxyRaiseEvents(MenuEvents));
529IntPtr menuParent = IntPtr.Zero;
530IntPtr hwndParent = IntPtr.Zero;
533if (menu == IntPtr.Zero)
574hwndParent = IntPtr.Zero;
575menuParent = IntPtr.Zero;
579if (hMenu == IntPtr.Zero)
597if (hMenuPossibleParent != IntPtr.Zero)
613for (IntPtr hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndMenu, WindowsMenu.MenuClassName, null);
614hwndPossibleParent != IntPtr.Zero;
615hwndPossibleParent = Misc.FindWindowEx(IntPtr.Zero, hwndPossibleParent, WindowsMenu.MenuClassName, null))
620if (hMenuPossibleParent != IntPtr.Zero)
641for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, MenuClassName, null);
642hwndSubMenu != IntPtr.Zero;
643hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, MenuClassName, null))
656return IntPtr.Zero;
668if (IntPtr.Zero != Misc.GetWindow(hwnd, NativeMethods.GW_OWNER))
716return Misc.ProxySendMessage(hwnd, NativeMethods.MN_GETHMENU, IntPtr.Zero, IntPtr.Zero);
719return IntPtr.Zero;
746if (GetMenuBarInfo(hwnd, NativeMethods.OBJID_SYSMENU, 0, out mbi) && mbi.hMenu != IntPtr.Zero)
751return IntPtr.Zero;
878mbi.hMenu != IntPtr.Zero &&
884return IntPtr.Zero;
890if (hmenu == IntPtr.Zero)
930IntPtr hwndPopup = IntPtr.Zero;
933hwndPopup = Misc.FindWindowEx(IntPtr.Zero, hwndPopup, WindowsMenu.MenuClassName, null);
934if (hwndPopup == IntPtr.Zero)
944return IntPtr.Zero;
1006if (parent == null && _expandedMenus.Contains(IntPtr.Zero))
1009parentInfo = (MenuParentInfo)_expandedMenus[IntPtr.Zero];
1415return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero;
1444if (hwndFocus != IntPtr.Zero && hwndFocus != _hwnd)
1598if (submenu == IntPtr.Zero)
1605if (hwndSubmenu != IntPtr.Zero)
1617if (submenu == IntPtr.Zero)
1624if (hwndSubmenu != IntPtr.Zero)
1894return (Misc.IsBitSet(menuItemInfo.fType, NativeMethods.MFT_RADIOCHECK) && menuItemInfo.hbmpChecked == IntPtr.Zero);
1950if (menuItemInfo.hSubMenu != IntPtr.Zero)
1977IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, MenuClassName, null);
1978return (hwndSubMenu == IntPtr.Zero || !SafeNativeMethods.IsWindowVisible(hwndSubMenu));
1983return (IntPtr.Zero == WindowsMenu.WindowFromSubmenu(submenu));
2087for (IntPtr hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, WindowsMenu.MenuClassName, null);
2089hwndSubMenu = Misc.FindWindowEx(IntPtr.Zero, hwndSubMenu, WindowsMenu.MenuClassName, null))
2092if (hwndSubMenu == IntPtr.Zero)
2135if (hSubmenu == IntPtr.Zero)
2141if (hwndSubmenu != IntPtr.Zero)
2245if (gui.hwndCapture != IntPtr.Zero && Misc.ProxyGetClassName(gui.hwndCapture) == "ListBox")
2396(IntPtr.Zero != UnsafeNativeMethods.GetSubMenu (_hmenu, 0)) &&
2534int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION);
2578if (_hwnd == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsRebar.cs (11)
193return Misc.ProxySendMessageInt(_hwnd, NativeMethods.RB_GETBANDCOUNT, IntPtr.Zero, IntPtr.Zero);
206return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType()));
288IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.RB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero);
327if (hwndBand != IntPtr.Zero)
346if (hwndBand != IntPtr.Zero && Misc.PtInWindowRect(hwndBand, x, y))
379Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero);
405if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rectW32, 2))
426if (_hwndBand == IntPtr.Zero)
455private IntPtr _hwndBand = IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsSlider.cs (21)
169if (IntPtr.Zero != parent)
178Misc.ProxySendMessage(parent, msg, new IntPtr(wParam), IntPtr.Zero);
260int value = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPOS, IntPtr.Zero, IntPtr.Zero);
265int maxValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero);
290return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETLINESIZE, IntPtr.Zero, IntPtr.Zero);
298return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMIN, IntPtr.Zero, IntPtr.Zero);
306return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETRANGEMAX, IntPtr.Zero, IntPtr.Zero);
314return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TBM_GETPAGESIZE, IntPtr.Zero, IntPtr.Zero);
408IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TBM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero);
439Misc.ProxySendMessage(_hwnd, NativeMethods.WM_KEYDOWN, wParam, IntPtr.Zero);
460XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck);
462if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rcChannel, 2))
472XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
474if (!Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rcThumb, 2))
MS\Internal\AutomationProxies\WindowsSysHeader.cs (22)
76if (hwndParent != IntPtr.Zero)
157if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref HitTestInfo.pt, 1))
161index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
177int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero);
245if (hwndParent != IntPtr.Zero)
284Misc.ProxySendMessage(hwndParent, NativeMethods.LVM_SCROLL, new IntPtr(horizontalScrollAmount), IntPtr.Zero);
298return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_ORDERTOINDEX, new IntPtr(order), IntPtr.Zero);
303return Misc.ProxySendMessageInt(hwnd, NativeMethods.HDM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero);
430if (hwndParent != IntPtr.Zero)
482Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center);
525int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero);
573if (!Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2))
668return Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1);
693int item = Misc.ProxySendMessageInt(_hwnd, NativeMethods.HDM_GETFOCUSEDITEM, IntPtr.Zero, IntPtr.Zero);
725Misc.ProxySendMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, center);
737IntPtr hwndDropDown = Misc.FindWindowEx(IntPtr.Zero, IntPtr.Zero, "DropDown", null);
738if (hwndDropDown != IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsTab.cs (52)
259if (!Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref hti.pt, 1))
268if (updownHwnd != IntPtr.Zero && Misc.PtInWindowRect(updownHwnd, x, y))
276index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType()));
290int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero);
314if (upDownHwnd != IntPtr.Zero)
333if (upDownHwnd != IntPtr.Zero)
498if (updownHwnd == IntPtr.Zero)
504int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
512Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos);
513Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, (IntPtr)NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero);
527if (updownHwnd == IntPtr.Zero)
533int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
536int posResult = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero);
585if (updownHwnd == IntPtr.Zero)
645int count = Misc.ProxySendMessageInt(hwnd, NativeMethods.TCM_GETITEMCOUNT, IntPtr.Zero, IntPtr.Zero);
684if (updownHwnd == IntPtr.Zero)
687int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
691Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos);
692Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero);
697return GetUpDownHwnd(_hwnd) != IntPtr.Zero;
723if (hwndParent != IntPtr.Zero
757if (childHwnd != IntPtr.Zero)
775return IntPtr.Zero;
801if (updownHwnd == IntPtr.Zero)
808int newPos = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero);
809int range = Misc.ProxySendMessageInt(updownHwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
848Misc.ProxySendMessage(updownHwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, (IntPtr)newPos);
849Misc.ProxySendMessage(_hwnd, NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero);
966IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero);
1003Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero);
1035if (hwndChild != IntPtr.Zero && SafeNativeMethods.IsWindowVisible(hwndChild))
1149Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_DESELECTALL, IntPtr.Zero, IntPtr.Zero);
1239return Misc.ProxySendMessageInt(hwnd, NativeMethods.TCM_GETCURSEL, IntPtr.Zero, IntPtr.Zero);
1255return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item;
1277return Misc.MapWindowPoints(_hwnd, IntPtr.Zero, ref rectW32, 2) ? rectW32 : NativeMethods.Win32Rect.Empty;
1297if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1))
1306Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero);
1322if (hwndParent != IntPtr.Zero)
1330return Misc.FindWindowEx(hwndParent, IntPtr.Zero, null, sName);
1334return IntPtr.Zero;
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
111int hit = Misc.ProxySendMessageInt(_hwnd, NativeMethods.WM_NCHITTEST, IntPtr.Zero, (IntPtr)NativeMethods.Util.MAKELONG(x, y));
431Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)NativeMethods.SC_RESTORE, IntPtr.Zero);
445Misc.PostMessage(_hwnd, NativeMethods.WM_SYSCOMMAND, (IntPtr)command, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsToolbar.cs (20)
228int focusIndex = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero);
299if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(tbb.idCommand), IntPtr.Zero) == 0)
329return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_BUTTONCOUNT, IntPtr.Zero, IntPtr.Zero);
368bool hasImageList = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETIMAGELIST, IntPtr.Zero, IntPtr.Zero) != 0;
369int exStyle = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETEXTENDEDSTYLE, IntPtr.Zero, IntPtr.Zero);
428if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
468return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) != 0;
514Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero);
576return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item;
598int len = Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETBUTTONTEXT, new IntPtr(_idCommand), IntPtr.Zero);
635IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TB_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero);
643|| Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONENABLED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
650if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONHIDDEN, new IntPtr(_idCommand), IntPtr.Zero) != 0)
677if (Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_ISBUTTONCHECKED, new IntPtr(_idCommand), IntPtr.Zero) == 0)
MS\Internal\AutomationProxies\WindowsTreeView.cs (45)
158if (hNext != IntPtr.Zero)
185return hPrev != IntPtr.Zero ? new TreeViewItem (_hwnd, this, hPrev, (int) TVItem.TopLevel) : null;
191if (hChild != IntPtr.Zero)
196for (temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild))
210IntPtr hChild = IntPtr.Zero;
213if (hChild != IntPtr.Zero)
235if (hChild != IntPtr.Zero)
238for (IntPtr temp = GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = GetNextItem (_hwnd, hChild))
253if (hItem != IntPtr.Zero)
265if (treeItem != IntPtr.Zero)
282if (treeItem == IntPtr.Zero)
303return (IntPtr.Zero != GetSelection (_hwnd));
387if (hItemParent == IntPtr.Zero)
446return GetNext(hwnd, IntPtr.Zero, NativeMethods.TVGN_CARET);
474return GetNext(hwnd, IntPtr.Zero, NativeMethods.TVGN_ROOT);
553IntPtr partialDisplay = (labelOnly) ? new IntPtr (1) : IntPtr.Zero;
564return Misc.MapWindowPoints(hwnd, IntPtr.Zero, ref rc, 2) ? rc : NativeMethods.Win32Rect.Empty;
595IntPtr hwndEdit = Misc.ProxySendMessage(hwnd, NativeMethods.TVM_EDITLABELW, IntPtr.Zero, item);
597if (hwndEdit == IntPtr.Zero)
606if (Misc.ProxySendMessageInt(hwndEdit, NativeMethods.WM_SETTEXT, IntPtr.Zero, new StringBuilder(text)) != 1)
609Misc.ProxySendMessage(hwnd, NativeMethods.TVM_ENDEDITLABELNOW, (IntPtr)1, IntPtr.Zero);
617Misc.ProxySendMessage(hwnd, NativeMethods.TVM_ENDEDITLABELNOW, IntPtr.Zero, IntPtr.Zero);
643IntPtr hItem = Misc.ProxySendMessage(hwnd, NativeMethods.TVM_MAPACCIDTOHTREEITEM, new IntPtr(idChild), IntPtr.Zero);
645if (hItem != IntPtr.Zero)
654int lCommonControlVersion = Misc.ProxySendMessageInt(hwnd, NativeMethods.CCM_GETVERSION, IntPtr.Zero, IntPtr.Zero);
657return IntPtr.Zero;
863IntPtr hwndToolTip = Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_GETTOOLTIPS, IntPtr.Zero, IntPtr.Zero);
908return UnsafeNativeMethods.MonitorFromRect(ref itemWin32Rect, UnsafeNativeMethods.MONITOR_DEFAULTTONULL) == IntPtr.Zero;
1006if (selectionRequired || WindowsTreeView.GetSelection(_hwnd) != IntPtr.Zero)
1228Misc.ProxySendMessage(_hwnd, NativeMethods.TVM_ENSUREVISIBLE, IntPtr.Zero, _hItem);
1318return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null;
1328return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null;
1336return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null;
1349if (hChild != IntPtr.Zero)
1352for (IntPtr temp = WindowsTreeView.GetNextItem (_hwnd, hChild); temp != IntPtr.Zero; temp = WindowsTreeView.GetNextItem (_hwnd, hChild))
1465if (Misc.MapWindowPoints(IntPtr.Zero, _hwnd, ref pt, 1))
1537Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONDOWN, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
1538Misc.PostMessage(_hwnd, NativeMethods.WM_LBUTTONUP, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(pt.x, pt.y));
1566if (address == IntPtr.Zero)
1626return UnsafeNativeMethods.GetProp(_hwnd, "MSAAStateImageMapAddr") != IntPtr.Zero;
1633if (_hItem == IntPtr.Zero)
1636int childId = Misc.ProxySendMessageInt(_hwnd, TVM_MAPHTREEITEMTOACCID, _hItem, IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsUpDown.cs (16)
223Misc.ProxySendMessage(_hwnd, NativeMethods.UDM_SETPOS, IntPtr.Zero, NativeMethods.Util.MAKELPARAM(newPos, 0));
226Misc.ProxySendMessage(HwndBuddy(_hwnd), NativeMethods.WM_HSCROLL, NativeMethods.Util.MAKELPARAM(NativeMethods.SB_THUMBPOSITION, newPos), IntPtr.Zero);
291if (hwndParent != IntPtr.Zero)
340int pos = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETPOS, IntPtr.Zero, IntPtr.Zero);
353IntPtr hwndBuddy = Misc.ProxySendMessage(hwnd, NativeMethods.UDM_GETBUDDY, IntPtr.Zero, IntPtr.Zero);
356if (hwndBuddy == IntPtr.Zero)
368return hwndBuddy != IntPtr.Zero && Misc.ProxyGetClassName(hwndBuddy).Contains("EDIT", StringComparison.OrdinalIgnoreCase);
377int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
391int range = Misc.ProxySendMessageInt(_hwnd, NativeMethods.UDM_GETRANGE, IntPtr.Zero, IntPtr.Zero);
474if (hwndTabParent != IntPtr.Zero)
622if (hwndParent != IntPtr.Zero)
625hwndParent = Misc.ProxyGetClassName(hwndParent).Contains("SysTabControl32") ? hwndParent : IntPtr.Zero;
UIAutomationProvider (2)
UIAutomationTypes (41)
vbc (7)
VBCSCompiler (7)
WindowsFormsIntegration (11)