11 references to MAX_PATH
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
168char[] buffer = ArrayPool<char>.Shared.Rent(Math.Max((int)PInvokeCore.MAX_PATH, filePath.Length));
System.Private.Windows.Core (3)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
209Span<char> fileName = stackalloc char[(int)PInvokeCore.MAX_PATH + 1];
System\Private\Windows\Ole\DragDropHelper.cs (2)
338if (message.Length >= (int)PInvokeCore.MAX_PATH) 343if (messageReplacementToken.Length >= (int)PInvokeCore.MAX_PATH)
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3250using (BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1))
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
514using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH + 1]);
System\Windows\Forms\Help\Help.cs (1)
224Span<char> buffer = stackalloc char[(int)PInvokeCore.MAX_PATH + 1];
System.Windows.Forms.Primitives (2)
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
13using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH]);
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
34using BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1);
System.Windows.Forms.Tests (2)
System\Windows\Forms\DragDropHelperTests.cs (2)
62yield return new object[] { new DataObject(), DropImageType.Copy, new string('*', (int)PInvokeCore.MAX_PATH), string.Empty }; 63yield return new object[] { new DataObject(), DropImageType.Copy, string.Empty, new string('*', (int)PInvokeCore.MAX_PATH) };