Desktop Functions: Smart Device Functions:
|
Search Results for "Flags" in [All]odbc321: SQLTables
// flags for null-terminated string wintrust
[FlagsAttribute]
enum WinTrustDataProvFlags : uint
WinTrustDataProvFlags ProvFlags = WinTrustDataProvFlags.RevocationCheckChainExcludeRoot;
ProvFlags |= WinTrustDataProvFlags.DisableMD2andMD4; wininet
int dwFlags,
ByVal dwFlags As Int32, _
int dwFlags,
ByVal dwFlags As Int32, _ 5: FtpCommand
int dwFlags,
ByVal dwFlags As Integer, _ dwFlags(in) A parameter that can be set to one of the following values.
int flags, IntPtr context);
ByRef findFileData As WIN32_FIND_DATA, ByVal flags As Integer, _ 7: FtpGetFile
int flagsAndAttributes, int flags, IntPtr context);
ByVal flagsAndAttributes As Integer, ByVal flags As Integer, _ Useful flags setting for binary download: INTERNET_FLAG_TRANSFER_BINARY + INTERNET_FLAG_RELOAD
uint nFlags,
uint nFlags);
uint dwFlags,
uint nFlagsAndAtrribute,
uint nFlags,
uint nFlags, 8: FtpPutFile
static extern bool FtpPutFile(IntPtr hConnect, string lpszLocalFile, string lpszNewRemoteFile, int dwFlags, IntPtr dwContext);
Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hFtpSession As IntPtr, ByVal lpszLocalFile As String, ByVal lpszRemoteFile As String, ByVal dwFlags As Integer, ByVal dwContext As Integer) As Boolean // dwFlags Use one or more of these flags to control file caching:
int dwFlags,
__in DWORD dwFlags,
static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);
Declare Function InternetCheckConnection Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwFlags As Integer, ByVal dwReserved As Integer) As Boolean
private static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved); 11: InternetConnect
int dwFlags, IntPtr dwContext);
ByVal lFlags As Int32, dwFlags
Flags specific to the service used. Can be one of these values:
If dwService is: dwFlags supported 12: InternetCrackUrl
int dwFlags,
Declare Function InternetCrackUrl Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwUrlLength As Integer, ByVal dwFlags As Integer, ByRef lpUrlComponents As URL_COMPONENTS) As <MarshalAs(UnmanagedType.Bool)> Boolean 13: InternetDial private static extern Int32 InternetDial(IntPtr hwndParent, string lpszConnectoid, Int32 dwFlags, ref Int32 lpdwConnection, Int32 dwReserved); int nResult = InternetDial(IntPtr.Zero ,"Your connection",(int)InternetDialFlags.INTERNET_DIAL_UNATTENDED ,ref nConnection , 0);
/// C++ ( lpdwFlags [out]. Type: LPDWORD )<br />Pointer to a variable that receives the connection description. This
/// <term>Internet Connection State Possible Flags</term>
extern static bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);
[Flags]
(ByRef lpdwFlags As Int32, ByVal dwReserved As Int32) As Boolean InternetGetConnectedStateFlags
private static extern bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);
int flags;
bool isConnected = InternetGetConnectedState(out flags, 0);
Console.WriteLine(string.Format("Is connected :{0} Flags:{1}", isConnected, flags)); Function Get_InternetConnectedState(ByRef p_lngFlags As Long, Optional ByRef p_return_str As String = "") As Boolean
Dim lngFlags As Long
lngFlags = 0
If InternetGetConnectedState(lngFlags, 0) Then
If lngFlags And ConnectionStates.LAN Then
ElseIf lngFlags And ConnectionStates.Modem Then
ElseIf lngFlags And ConnectionStates.Proxy Then
p_lngFlags = lngFlags
static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);
ByVal pchCookieData As System.Text.StringBuilder, ByRef pcchCookieData As Integer, ByVal flags As Integer, ByVal reserved As Integer) As _
static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);
static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);
ByVal pchCookieData As System.Text.StringBuilder, ByRef pcchCookieData As Integer, ByVal flags As Integer, ByVal reserved As Integer) As _ 17: InternetOpen
string lpszProxyBypass, int dwFlags);
ByVal lFlags As Integer) As Int32
static extern bool InternetSetCookieEx(string lpszUrlName, string lpszCookieName, string lpszCookieData, uint dwFlags, IntPtr dwReserved ); irprops
private static extern uint BluetoothSetServiceState(IntPtr hRadio, ref BLUETOOTH_DEVICE_INFO pbtdi, ref Guid pGuidService, DwServiceFlags dwServiceFlags); pstorec
extern static int PStoreCreateInstance(out IPStore ppProvider, IntPtr pProviderID, IntPtr pReserved, uint dwFlags); user32
/// <param name="Flags">Specifies how the input locale identifier is to be activated.</param>
internal static extern HKL ActivateKeyboardLayout(HKL hkl, uint Flags);
''' <param name="Flags">Specifies how the input locale identifier is to be activated.</param>
Public Shared Function ActivateKeyboardLayout(ByVal nkl As IntPtr, ByVal Flags As uint) As Integer 22: AnimateWindow
static extern bool AnimateWindow(IntPtr hwnd, int time, AnimateWindowFlags flags);
Shared Function AnimateWindow(ByVal hwnd As IntPtr, ByVal time As Integer, ByVal flags As AnimateWindowFlags) As Boolean AnimateWindowFlags should be used for the dwFlags parameter. Don’t forget to use the AnimateWindowFlags!
AnimateWindow(f2.Handle, 1000, AnimateWindowFlags.AW_VER_NEGATIVE Or AnimateWindowFlags.AW_SLIDE or AnimateWindowFlags.AW_HIDE)
AnimateWindow(f2.Handle, 1000, (uint) AnimateWindowFlags.AW_VER_NEGATIVE | (uint) AnimateWindowFlags.AW_SLIDE);
AnimateWindow(f2.Handle, 1000, AnimateWindowFlags.AW_VER_NEGATIVE Or AnimateWindowFlags.AW_SLIDE or AnimateWindowFlags.AW_HIDE) 23: AppendMenu
static extern bool AppendMenu(IntPtr hMenu, MenuFlags uFlags, uint uIDNewItem, string lpNewItem);
Shared Function AppendMenu(ByVal hMenu As IntPtr, ByVal uFlags As MenuFlags, ByVal uIDNewItem As Int32, ByVal lpNewItem As String) As Boolean
[Flags]
public enum MenuFlags : uint
<Flags()> _
Public Enum MenuFlags As Integer
<Flags()> _
Public Enum MenuFlags As Integer
Shared Function AppendMenu(ByVal hMenu As IntPtr, ByVal uFlags As MenuFlags, ByVal uIDNewItem As Int32, ByVal lpNewItem As String) As Boolean
AppendMenu(hMenu, MenuFlags.MF_STRING, 2, strMenuItem)
static extern int BroadcastSystemMessageEx(uint flags, ref uint lpInfo, uint Msg, [MarshalAs(UnmanagedType.SysUInt)] ulong wParam, [MarshalAs(UnmanagedType.SysInt)] long lParam, out BSMINFO pbsmInfo);
[Flags()]
public enum ChangeDisplaySettingsFlags : uint
<Flags> _
Public Enum ChangeDisplaySettingsFlags As UInteger
static extern DISP_CHANGE ChangeDisplaySettingsEx(string lpszDeviceName, ref DEVMODE lpDevMode, IntPtr hwnd, ChangeDisplaySettingsFlags dwflags, IntPtr lParam);
Private Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByRef lpDevMode As DEVMODE, ByVal hwnd As IntPtr, ByVal dwflags As UInteger, ByVal lParam As IntPtr) As DISP_CHANGE
[Flags()]
public enum ChangeDisplaySettingsFlags : uint <Flags> _ Public Enum ChangeDisplaySettingsFlags As UInteger
Private Enum ChangeWindowMessageFilterFlags As UInteger
static extern IntPtr ChildWindowFromPointEx(IntPtr hWndParent, Point pt, uint uFlags);
Public Function ChildWindowFromPointEx(ByVal hWndParent As IntPtr, ByVal P As POINTAPI, ByVal uFlags As CWPFlags) As IntPtr
static extern IntPtr ChildWindowFromPointEx(IntPtr hWndParent, Point pt, uint uFlags);
Public Function ChildWindowFromPointEx(ByVal hWndParent As IntPtr, ByVal P As POINTAPI, ByVal uFlags As CWPFlags) As IntPtr
public enum ChildWindowFromPointFlags : uint 31: CopyImage
static extern IntPtr CopyImage(IntPtr hImage, uint uType, int cxDesired, int cyDesired, uint fuFlags); 32: CreateDesktop
[MarshalAs(UnmanagedType.U4)] int flags, // use 0
ByVal deviceMode As String, ByVal flags As Integer,
[Flags]
static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint cbIconBits, bool fIcon, uint dwVersion, int cxDesired, int cyDesired, uint uFlags);
Private Shared Function CreateIconFromResourceEx(pbIconBits As Byte(), cbIconBits As UInteger, fIcon As Boolean, dwVersion As UInteger, cxDesired As Integer, cyDesired As Integer, uFlags As UInteger) As IntPtr
uint uFlags);
ByVal flags As Integer) As IntPtr 35: CreatePopupMenu
int IContextMenu.QueryContextMenu(uint hMenu, uint iMenu, int idCmdFirst, int idCmdLast, uint uFlags)
if ( (uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0)
void IContextMenu.GetCommandString(int idCmd, uint uFlags, int pwReserved, StringBuilder commandString, int cchMax)
switch(uFlags)
internal static extern bool InsertMenuItem(HMenu hmenu, uint uposition, uint uflags, ref MENUITEMINFO mii);
internal static extern bool AppendMenu(HMenu hmenu, MFMENU uflags, IntPtr uIDNewItemOrSubmenu, string text);
internal static extern bool InsertMenu(HMenu hmenu, int position, MFMENU uflags, IntPtr uIDNewItemOrSubmenu, string text);
internal static extern int SetMenuItemBitmaps(HMenu hmenu, int nPosition, MFMENU uflags, IntPtr hBitmapUnchecked, IntPtr hBitmapChecked); 36: CreateWindow
[Flags]
ref returnFlags); 39: DeleteMenu
static extern bool DeleteMenu(IntPtr hMenu, uint uPosition, uint uFlags); Constants used for flags 40: DrawEdge
uint grfFlags); 41: DrawFrameControl
[Flags()]
[Flags()] 43: DrawIcon
int diFlags);
Public Declare Function DrawIconEx Lib "user32" (ByVal hdc As IntPtr, ByVal xLeft As Integer, ByVal yTop As Integer, ByVal hIcon As IntPtr, ByVal cxWidth As Integer, ByVal cyHeight As Integer, ByVal istepIfAniCur As Integer, ByVal hbrFlickerFreeDraw As IntPtr, ByVal diFlags As Integer) As Boolean 44: DrawIconEx
int diFlags); 45: DrawMenuBar
static extern bool RemoveMenu(IntPtr hMenu, uint uPosition, uint uFlags); 46: EnableScrollBar
static extern bool EnableScrollBar(IntPtr hWnd, uint wSBflags, uint wArrows);
Private Shared Function EnableScrollBar(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.U4)>wSBflags As SBFlags, <MarshalAs(UnmanagedType.U4)>wArrows As SBArrows) As <MarshalAs(UnmanagedType.Bool)>Boolean
ByVal wSBflags As SBFlags, _
[Flags]
[Flags]
static extern bool EnableScrollBar(IntPtr hWnd, uint wSBflags, uint wArrows);
static extern bool EnumDisplayDevices(string lpDevice, uint iDevNum, ref DISPLAY_DEVICE lpDisplayDevice, uint dwFlags);
Public Shared Function EnumDisplayDevices(ByVal lpDevice As String, ByVal iDevNum As UInteger, ByRef lpDisplayDevice As DISPLAY_DEVICE, ByVal dwFlags As UInteger) As Integer
d.StateFlags,
TextBox1.AppendText("deviceFlags:" & dispDev1.StateFlags & vbCrLf)
TextBox1.AppendText("deviceFlags:" & dispDev1.StateFlags & vbCrLf)
di.Availability = mi.flags.ToString();
static extern bool EnumDisplaySettingsEx(string lpszDeviceName, int iModeNum, ref DEVMODE lpDevMode, uint dwFlags);
Private Shared Function EnumDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal iModeNum As UInteger, ByRef lpDevMode As DEVMODE, ByVal dwFlags As UInteger) As Boolean
static extern bool EnumDisplaySettingsEx(string lpszDeviceName, uint iModeNum, out DEVMODE lpDevMode, uint dwFlags);
Private Shared Function EnumDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal iModeNum As UInteger, ByRef lpDevMode As DEVMODE, ByVal dwFlags As UInteger) As Boolean 51: ExitWindowsEx
static extern bool ExitWindowsEx(ExitWindows uFlags, ShutdownReason dwReason);
static extern bool ExitWindowsEx(uint uFlags, uint dwReason);
ByVal uFlags As ExitWindows, _
If uFlags is set to 'LogOff', then the call will fail if the process calling it is a non-interactive-process (i.e a Windows Service). Read the [ExitWindowsEx] on MSDN for more info. All other values for uFlags work fine for non-interactive-processes.
static extern bool ExitWindowsEx(uint uFlags, uint dwReason); Changed the sample code Reason parameter from "&" to "ShutdownReason.MajorOther | ShutdownReason.MinorOther". Amperstand (&) is the binary AND condition, and the values ANDed together would be zero. The intended condition is that the flags be ORed together. (|) 52: FlashWindow
public UInt32 dwFlags;
/// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
fInfo.dwFlags = FLASHW_ALL;
fInfo.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
Public Enum FlashWindowFlags As UInteger
' This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
Public dwFlags As FlashWindowFlags
If FlashTitleBar Then .dwFlags = .dwFlags Or FlashWindowFlags.FLASHW_CAPTION
If FlashTray Then .dwFlags = .dwFlags Or FlashWindowFlags.FLASHW_TRAY
If FlashCount = 0 Then .dwFlags = .dwFlags Or FlashWindowFlags.FLASHW_TIMERNOFG 53: FlashWindowEx
public UInt32 dwFlags;
/// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
fInfo.dwFlags = FLASHW_ALL;
fInfo.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
Public Enum FlashWindowFlags As UInteger
' This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
Public dwFlags As FlashWindowFlags
If FlashTitleBar Then .dwFlags = .dwFlags Or FlashWindowFlags.FLASHW_CAPTION
If FlashTray Then .dwFlags = .dwFlags Or FlashWindowFlags.FLASHW_TRAY
If FlashCount = 0 Then .dwFlags = .dwFlags Or FlashWindowFlags.FLASHW_TIMERNOFG 54: GetAncestor
/// <param name="flags">The ancestor to be retrieved.</param>
static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Private Shared Function GetAncestor(ByVal hwnd As IntPtr, ByVal gaFlags As GetAncestor_Flags) As IntPtr Use the following values for the flags: 55: GetClassLong
Public Shared Function GetClassLongPtr32(ByVal hWnd As HandleRef, <MarshalAs(UnmanagedType.I4)>nIndex As ClassLongFlags) As UInteger
Public Shared Function GetClassLongPtr64(ByVal hWnd As HandleRef, <MarshalAs(UnmanagedType.I4)>nIndex As ClassLongFlags) As IntPtr
ByVal nIndex As ClassLongFlags) As Long 56: GetCursorInfo
public Int32 flags; // Specifies the cursor state. This parameter can be one of the following values: 57: GetDC
static extern IntPtr GetDCEx(IntPtr hWnd, IntPtr hrgnClip, DeviceContextValues flags); Specifies a clipping region that may be combined with the visible region of the DC. If the value of flags is DCX_INTERSECTRGN or DCX_EXCLUDERGN, then the operating system assumes ownership of the region and will automatically delete it when it is no longer needed. In this case, applications should not use the region—not even delete it—after a successful call to GetDCEx.</param>
<param name="flags"> 58: GetDCEx
static extern IntPtr GetDCEx(IntPtr hWnd, IntPtr hrgnClip, DeviceContextValues flags);
[Flags()] Specifies a clipping region that may be combined with the visible region of the DC. If the value of flags is DCX_INTERSECTRGN or DCX_EXCLUDERGN, then the operating system assumes ownership of the region and will automatically delete it when it is no longer needed. In this case, applications should not use the region—not even delete it—after a successful call to GetDCEx.</param>
<param name="flags"> 59: GetGuiResources
static extern uint GetGuiResources(IntPtr hProcess, uint uiFlags);
/// uiFlags: 0 - Count of GDI objects
/// uiFlags: 1 - Count of USER objects
extern public static int GetGuiResources(IntPtr hProcess, int uiFlags); 60: GetGUIThreadInfo
public int flags;
public int flags;
public uint flags; Cut off search results after 60. Please refine your search. |