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