60 references to SystemDefaultCharSize
PresentationCore (1)
Core\CSharp\System\Windows\DataObject.cs (1)
2143if (Marshal.SystemDefaultCharSize == 1)
PresentationFramework (5)
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (5)
326int devNamesOffset = checked(devNames.wDeviceOffset * Marshal.SystemDefaultCharSize); 830int cbDevNames = checked(((printer.Length + 3) * Marshal.SystemDefaultCharSize) + 844devNames.wDeviceOffset = (ushort)(baseOffset / Marshal.SystemDefaultCharSize); 858checked((IntPtr)((long)offsetName + (printer.Length * Marshal.SystemDefaultCharSize))); 868byte[] nulls = new byte[3 * Marshal.SystemDefaultCharSize];
System (1)
compmod\microsoft\win32\SystemEvents.cs (1)
412string defproc = (Marshal.SystemDefaultCharSize == 1 ? "DefWindowProcA" : "DefWindowProcW");
System.Drawing (16)
commonui\System\Drawing\Advanced\Font.cs (4)
453if (Marshal.SystemDefaultCharSize == 1) 469if (Marshal.SystemDefaultCharSize == 1) { 832if (Marshal.SystemDefaultCharSize == 1) 841if (Marshal.SystemDefaultCharSize == 1) {
commonui\System\Drawing\Advanced\Gdiplus.cs (1)
4079if (Marshal.SystemDefaultCharSize == 1) {
commonui\System\Drawing\Printing\PrinterSettings.cs (7)
1108short offset = (short) (8 / Marshal.SystemDefaultCharSize); // Offsets are in characters, not bytes 1109uint namesSize = (uint)checked(Marshal.SystemDefaultCharSize * (offset + namesCharacters)); // always >0 1187int stringSize = Marshal.SystemDefaultCharSize * 64; 1233int stringSize = Marshal.SystemDefaultCharSize * 24; 1298int offset = checked(Marshal.SystemDefaultCharSize * Marshal.ReadInt16((IntPtr)(checked((long)pDevnames + slot * 2)))); 1401IntPtr address = (IntPtr)(checked((long)bufferStart + index * Marshal.SystemDefaultCharSize)); 1403if (Marshal.SystemDefaultCharSize == 1) {
misc\GDI\UnsafeNativeMethods.cs (4)
376if( Marshal.SystemDefaultCharSize == 1 ) 415if( Marshal.SystemDefaultCharSize == 1) 458if( Marshal.SystemDefaultCharSize == 1) 599if (Marshal.SystemDefaultCharSize == 1)
System.Windows.Forms (34)
misc\GDI\UnsafeNativeMethods.cs (4)
376if( Marshal.SystemDefaultCharSize == 1 ) 415if( Marshal.SystemDefaultCharSize == 1) 458if( Marshal.SystemDefaultCharSize == 1) 599if (Marshal.SystemDefaultCharSize == 1)
winforms\Managed\System\WinForms\Control.cs (7)
7864m.Result = (IntPtr)((value.Length + 1) * Marshal.SystemDefaultCharSize); 7879if (Marshal.SystemDefaultCharSize == 1) { 7891m.Result = (IntPtr)((bytes.Length + nullBytes.Length)/Marshal.SystemDefaultCharSize); 10535if (Marshal.SystemDefaultCharSize == 1) { 10584charsToIgnore += (3 - Marshal.SystemDefaultCharSize); 10598if (Marshal.SystemDefaultCharSize == 1) { 14354m.Result = (IntPtr)(Marshal.SystemDefaultCharSize == 1 ? NativeMethods.NFR_ANSI : NativeMethods.NFR_UNICODE);
winforms\Managed\System\WinForms\DataObject.cs (1)
991bool unicode = (Marshal.SystemDefaultCharSize != 1);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (3)
271pszDisplayName = Marshal.AllocHGlobal(NativeMethods.MAX_PATH * Marshal.SystemDefaultCharSize); 272pszSelectedPath = Marshal.AllocHGlobal((NativeMethods.MAX_PATH + 1) * Marshal.SystemDefaultCharSize); 349IntPtr pszSelectedPath = Marshal.AllocHGlobal((NativeMethods.MAX_PATH + 1) * Marshal.SystemDefaultCharSize);
winforms\Managed\System\WinForms\ListView.cs (2)
6068if (Marshal.SystemDefaultCharSize == 1) { 6152if (Marshal.SystemDefaultCharSize == 1) {
winforms\Managed\System\WinForms\NativeMethods.cs (2)
2437if (Marshal.SystemDefaultCharSize == 1) { 6057if (Marshal.SystemDefaultCharSize == 2) {
winforms\Managed\System\WinForms\NativeWindow.cs (2)
605string defproc = (Marshal.SystemDefaultCharSize == 1 ? "DefWindowProcA" : "DefWindowProcW"); 1573string defproc = (Marshal.SystemDefaultCharSize == 1 ? "DefWindowProcA" : "DefWindowProcW");
winforms\Managed\System\WinForms\RichTextBox.cs (4)
398if (Marshal.SystemDefaultCharSize == 1) { 1509if (Marshal.SystemDefaultCharSize == 1 /*ANSI*/) 2900if (Marshal.SystemDefaultCharSize == 1) 3722m.Result = (IntPtr) ((Marshal.SystemDefaultCharSize == 1) ? (65536+29) : (65536+30));
winforms\Managed\System\WinForms\SafeNativeMethods.cs (1)
364if (Marshal.SystemDefaultCharSize == 1)
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
1023if( this.SelectionUsesDbcsOffsetsInWin9x && Marshal.SystemDefaultCharSize == 1 ) { 1257if (IsHandleCreated && Marshal.SystemDefaultCharSize == 2) { 2047if (this.SelectionUsesDbcsOffsetsInWin9x && Marshal.SystemDefaultCharSize == 1) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1691if (Marshal.SystemDefaultCharSize == 2) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
738IntPtr allocatedStringBuffer = Marshal.AllocCoTaskMem(info.cch * Marshal.SystemDefaultCharSize);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (3)
6518if (Marshal.SystemDefaultCharSize == 1) 7596int bufferSize = NativeMethods.MAX_PATH * Marshal.SystemDefaultCharSize; 7614pszPath = Marshal.ReAllocHGlobal(pszPath, (IntPtr)((length + 1) * Marshal.SystemDefaultCharSize));
System.Workflow.Activities (1)
Common\NativeMethods.cs (1)
168if (Marshal.SystemDefaultCharSize == 1)
System.Workflow.ComponentModel (1)
Shared\NativeMethods.cs (1)
182if (Marshal.SystemDefaultCharSize == 1)
WindowsBase (1)
Shared\MS\Win32\NativeMethodsCLR.cs (1)
6146if (Marshal.SystemDefaultCharSize == 1)