Desktop Functions: Smart Device Functions:
|
Search Results for "CharSet" in [All]gdi32
[DllImport("gdi32.dll", EntryPoint = "CopyEnhMetaFile", SetLastError = true, CharSet = CharSet.Auto)] 2: CreateDC
<DllImport("gdi32.dll", SetLastError:=True, CharSet:=CharSet.Ansi)> _
[DllImport("gdi32.dll", EntryPoint = "CreateDC", CharSet = CharSet.Auto, SetLastError = true)] 3: CreateFont
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
[DllImport("gdi32.dll", CharSet=CharSet.Auto)]
private const byte DEFAULT_CHARSET = 1;
private const byte SHIFTJIS_CHARSET = 128;
private const byte JOHAB_CHARSET = 130;
private const byte EASTEUROPE_CHARSET = 238;
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public FontCharSet lfCharSet;
public enum FontCharSet : byte
ANSI_CHARSET = 0,
DEFAULT_CHARSET = 1,
SYMBOL_CHARSET = 2,
SHIFTJIS_CHARSET = 128,
HANGEUL_CHARSET = 129,
HANGUL_CHARSET = 129,
GB2312_CHARSET = 134,
CHINESEBIG5_CHARSET = 136,
OEM_CHARSET = 255,
JOHAB_CHARSET = 130,
HEBREW_CHARSET = 177,
ARABIC_CHARSET = 178,
GREEK_CHARSET = 161,
TURKISH_CHARSET = 162,
VIETNAMESE_CHARSET = 163,
THAI_CHARSET = 222,
EASTEUROPE_CHARSET = 238,
RUSSIAN_CHARSET = 204,
MAC_CHARSET = 77,
BALTIC_CHARSET = 186,
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public byte tmCharSet;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
lf.lfCharSet = FontCharSet.DEFAULT_CHARSET;
public enum FontLanguageCharSet
ANSI_CHARSET = 0x00000000,
DEFAULT_CHARSET = 0x00000001,
SYMBOL_CHARSET = 0x00000002,
MAC_CHARSET = 0x0000004D,
SHIFTJIS_CHARSET = 0x00000080,
HANGUL_CHARSET = 0x00000081,
JOHAB_CHARSET = 0x00000082,
GB2312_CHARSET = 0x00000086,
CHINESEBIG5_CHARSET = 0x00000088,
GREEK_CHARSET = 0x000000A1,
TURKISH_CHARSET = 0x000000A2,
VIETNAMESE_CHARSET = 0x000000A3,
HEBREW_CHARSET = 0x000000B1,
ARABIC_CHARSET = 0x000000B2,
BALTIC_CHARSET = 0x000000BA,
RUSSIAN_CHARSET = 0x000000CC,
THAI_CHARSET = 0x000000DE,
EASTEUROPE_CHARSET = 0x000000EE,
OEM_CHARSET = 0x000000FF
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public Byte lfCharSet;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public Byte tmCharSet;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public Byte tmCharSet;
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
var logfont = new LOGFONT() { lfCharSet = (byte)FontLanguageCharSet.DEFAULT_CHARSET };
// Fixed Pitch & ANSI_CHARSET
List<string> mono = (from f in allFonts where ((f.LogFont.elfLogFont.lfPitchAndFamily & 0x3) == (int)GdiFonts.FontPitch.FIXED_PITCH) & (GdiFonts.FontLanguageCharSet)f.LogFont.elfLogFont.lfCharSet == GdiFonts.FontLanguageCharSet.ANSI_CHARSET select f.LogFont.elfFullName).ToList<string>();
// Variable Pitch & ANSI_CHARSET
List<string> variable = (from f in allFonts where ((f.LogFont.elfLogFont.lfPitchAndFamily & 0x3) == (int)GdiFonts.FontPitch.VARIABLE_PITCH) & (GdiFonts.FontLanguageCharSet)f.LogFont.elfLogFont.lfCharSet == GdiFonts.FontLanguageCharSet.ANSI_CHARSET select f.LogFont.elfFullName).ToList<string>();
private const byte DEFAULT_CHARSET = 1;
private const byte SHIFTJIS_CHARSET = 128;
private const byte JOHAB_CHARSET = 130;
private const byte EASTEUROPE_CHARSET = 238;
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public FontCharSet lfCharSet;
public enum FontCharSet : byte
ANSI_CHARSET = 0,
DEFAULT_CHARSET = 1,
SYMBOL_CHARSET = 2,
SHIFTJIS_CHARSET = 128,
HANGEUL_CHARSET = 129,
HANGUL_CHARSET = 129,
GB2312_CHARSET = 134,
CHINESEBIG5_CHARSET = 136,
OEM_CHARSET = 255,
JOHAB_CHARSET = 130,
HEBREW_CHARSET = 177,
ARABIC_CHARSET = 178,
GREEK_CHARSET = 161,
TURKISH_CHARSET = 162,
VIETNAMESE_CHARSET = 163,
THAI_CHARSET = 222,
EASTEUROPE_CHARSET = 238,
RUSSIAN_CHARSET = 204,
MAC_CHARSET = 77,
BALTIC_CHARSET = 186,
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public byte tmCharSet;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
lf.lfCharSet = FontCharSet.DEFAULT_CHARSET;
public enum FontLanguageCharSet
ANSI_CHARSET = 0x00000000,
DEFAULT_CHARSET = 0x00000001,
SYMBOL_CHARSET = 0x00000002,
MAC_CHARSET = 0x0000004D,
SHIFTJIS_CHARSET = 0x00000080,
HANGUL_CHARSET = 0x00000081,
JOHAB_CHARSET = 0x00000082,
GB2312_CHARSET = 0x00000086,
CHINESEBIG5_CHARSET = 0x00000088,
GREEK_CHARSET = 0x000000A1,
TURKISH_CHARSET = 0x000000A2,
VIETNAMESE_CHARSET = 0x000000A3,
HEBREW_CHARSET = 0x000000B1,
ARABIC_CHARSET = 0x000000B2,
BALTIC_CHARSET = 0x000000BA,
RUSSIAN_CHARSET = 0x000000CC,
THAI_CHARSET = 0x000000DE,
EASTEUROPE_CHARSET = 0x000000EE,
OEM_CHARSET = 0x000000FF
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public Byte lfCharSet;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public Byte tmCharSet;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public Byte tmCharSet;
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
var logfont = new LOGFONT() { lfCharSet = (byte)FontLanguageCharSet.DEFAULT_CHARSET };
// Fixed Pitch & ANSI_CHARSET
List<string> mono = (from f in allFonts where ((f.LogFont.elfLogFont.lfPitchAndFamily & 0x3) == (int)GdiFonts.FontPitch.FIXED_PITCH) & (GdiFonts.FontLanguageCharSet)f.LogFont.elfLogFont.lfCharSet == GdiFonts.FontLanguageCharSet.ANSI_CHARSET select f.LogFont.elfFullName).ToList<string>();
// Variable Pitch & ANSI_CHARSET
List<string> variable = (from f in allFonts where ((f.LogFont.elfLogFont.lfPitchAndFamily & 0x3) == (int)GdiFonts.FontPitch.VARIABLE_PITCH) & (GdiFonts.FontLanguageCharSet)f.LogFont.elfLogFont.lfCharSet == GdiFonts.FontLanguageCharSet.ANSI_CHARSET select f.LogFont.elfFullName).ToList<string>();
[DllImport("gdiplus.dll", CharSet=CharSet.Unicode)]
[DllImport("gdiplus.dll", CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] If you need to treat unicode text, you'll need to set the CharSet option to Unicode or Auto (which is default on WindowsNT)
[DllImport("gdi32.dll", CharSet=CharSet.Unicode)] If you need to treat unicode text, you'll need to set the CharSet option to Unicode or Auto (which is default on WindowsNT) [DllImport("gdi32.dll", CharSet=CharSet.Unicode)] 12: GetTextMetrics
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
//CharSet.auto automatically selects between these functions based on the OS version:
[DllImport("gdi32.dll", CharSet = CharSet.Unicode)]
[DllImport("gdi32.dll", CharSet = CharSet.Ansi)] It's very important to use the same charset on the TEXTMETRIC structure and the extern function.
[DllImport("Gdi32.dll", CharSet=CharSet.Auto)]
[DllImport("Gdi32.dll", CharSet=CharSet.Auto)]
[DllImport("Gdi32.dll", CharSet=CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public byte tmCharSet;
[StructLayout(LayoutKind::Sequential, CharSet=CharSet::Unicode)]
Byte tmCharSet;
[DllImport("Gdi32.dll", CharSet=CharSet::Unicode)]
[DllImport("user32.dll",CharSet=CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] 15: SetTextColor
[DllImport("user32.dll", CharSet=CharSet.Unicode)] 16: TextOut
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
string lpString, int cbString); (Please see note for CharSet in tips) [CharSet = CharSet.Auto] According to my experience this parameter should be used when using a LOGFONT structure and the CreateFontIndirect fuction, otherwise the selected font will not be displayed. All flags will be done (lfItalic, lfUnderline ...) but not the lfFaceName string. ntdll17: RtlInitializeSid
[DllImport("ntdll", CharSet = CharSet.Auto, ExactSpelling = true, SetLastError = true)] user3218: AppendMenu
[DllImport("user32.dll", CharSet = CharSet.Auto)]
<DllImport("user32.dll", CharSet = CharSet.Auto)>_
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _ 19: BlockInput
<DllImport("user32.dll", EntryPoint:="BlockInput", SetLastError:=True, CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)>
<DllImport("user32.dll", EntryPoint:="BlockInput", SetLastError:=True, CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)>
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 21: CharLower
[DllImport("user32.dll", CharSet=CharSet.Auto)] 22: CharUpper
[DllImport("user32.dll", CharSet=CharSet.Auto)]
<DllImport("user32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
<DllImport("user32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _ 25: CloseWindow
[DllImport("user32", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("user32", CharSet = CharSet.Unicode, SetLastError = true)] 27: CopyIcon
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] 28: CreateDesktop
[DllImport("user32.dll", EntryPoint="CreateDesktop", CharSet=CharSet.Unicode, SetLastError=true)]
[DllImport("user32.dll", EntryPoint="CloseDesktop", CharSet = CharSet.Unicode, SetLastError = true)]
<DllImport("user32.dll", EntryPoint:="CreateDesktop", CharSet:=CharSet.Unicode, SetLastError:=True)> _
<DllImport("user32.dll", EntryPoint:="CloseDesktop", CharSet:=CharSet.Unicode, SetLastError:=True)> _ 29: CreateWindow
[DllImport("user32.dll", EntryPoint="CreateWindowStation", CharSet=CharSet.Unicode, SetLastError=true)] 30: DestroyWindow
[DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError=true)]
<DllImport("user32.dll", CharSet := CharSet.Unicode, SetLastError := True)> _ 31: EnumChildWindows
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
ExactSpelling = false, CharSet = CharSet.Auto, SetLastError = true)]
ExactSpelling = false, CharSet = CharSet.Auto, SetLastError = true)]
<DllImport("user32.dll", EntryPoint:="EnumDisplayDevices", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.StdCall)> _ 34: EnumWindows 36: FindWindow
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 37: FindWindowEx
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 38: GetClassName
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _ In .NET Framework 4.0, only CharSet.Ansi seems to produce the result. 39: GetClientRect
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _ 40: GetDlgItem
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 41: GetDlgItemText
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 42: GetKeyState
<DllImport("user32.dll", SetLastError := True, CharSet := CharSet.Unicode)> _
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 44: GetMonitorInfo
[DllImport("user32.dll", CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] // For GetMouseMovePointsEx
[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 46: GetParent
[DllImport("user32.dll", ExactSpelling=true, CharSet=CharSet.Auto)]
<DllImport("user32.dll", ExactSpelling:=True, CharSet:=CharSet.Auto)> _
[DllImport("user32.dll", ExactSpelling := true, CharSet := CharSet.Auto)]
[DllImport("user32", CharSet = CharSet.Unicode, SetLastError = true)]
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
<DllImport("user32.dll", CharSet:=CharSet.Auto, 49: GetScrollPos
[DllImport("user32.dll", CharSet=CharSet.Auto)]
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
[DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
<DllImport("user32.dll", SetLastError := True, CharSet := CharSet.Auto)> _ 51: GetWindowTex
[DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
[DllImport("user32.dll", SetLastError := true, CharSet := CharSet.Auto)] 52: GetWindowText
[DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
[DllImport("user32.dll", SetLastError := true, CharSet := CharSet.Auto)]
[DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 54: InsertMenu
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ 55: IsWindow [<System.Runtime.InteropServices.DllImport("user32.dll", CharSet=System.Runtime.InteropServices.CharSet.Auto)>] 56: IsWindowVisible [<System.Runtime.InteropServices.DllImport("user32.dll", CharSet=System.Runtime.InteropServices.CharSet.Auto)>] 57: keybd_event
CharSet:=CharSet.Unicode, EntryPoint:="keybd_event", _
CharSet:=CharSet.Unicode, EntryPoint:="keybd_event", _ 58: LoadImage
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
[DllImportAttribute("user32.dll", SetLastError = true, CharSet = CharSet::Auto)]
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)] 59: LoadString 60: MB_GetString
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] Cut off search results after 60. Please refine your search. |