Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "_stat" in [All]

powrprof

.

  IntPtr status = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(SYSTEM_BATTERY_STATE)));

.

    (UInt32)Marshal.SizeOf(typeof(SYSTEM_BATTERY_STATE))

.

  SYSTEM_BATTERY_STATE batt_status = (SYSTEM_BATTERY_STATE)Marshal.PtrToStructure(status, typeof(SYSTEM_BATTERY_STATE));

user32

.

                    [MarshalAs(UnmanagedType.U4)] WINDOWS_STATION_ACCESS_MASK desiredAccess,

.

    internal enum WINDOWS_STATION_ACCESS_MASK : uint

.

                WINDOWS_STATION_ACCESS_MASK.WINSTA_ALL_ACCESS, null);

.
SystemColors.WindowFrame CTLCOLOR_STATIC, COLOR_WINDOWFRAME
.

const uint EVENT_OBJECT_STATECHANGE = 0x800A; // hwnd ID idChild is item w/ state change

.

    const int TCIF_STATE = 0x10;

.

    tcitem.mask = TCIF_STATE | TCIF_TEXT;

setupapi

.
Summary
The CM_Get_DevNode_Status function obtains the status of a device instance from its device node, in the local machine's device tree.
.

static extern int CM_Get_DevNode_Status(ref int pulStatus, ref int pulProblemNumber, int dnDevInst, int ulFlags);

.
Documentation
CM_Get_DevNode_Status @msdn on MSDN
.

static extern int CM_Get_DevNode_Status(out UInt32 status, out UInt32 probNum, UInt32 devInst, int flags);

.

    Private Shared Function CM_Get_DevNode_Status(ByRef status As ULong, ByRef probNum As ULong, ByVal devInst As IntPtr, ByVal Flag As Integer) As Integer

.

If CM_Get_DevNode_Status(status, problem, DeviceInfoData.DevInst, 0) = CR_SUCCESS Then

.
Documentation
[CM_Get_DevNode_Status] on MSDN
.

    if (CR_SUCCESS == CM_Get_DevNode_Status(ref status, ref problem, devinst, 0) && (DN_REMOVABLE & status) > 0)

.

     SPDRP_INSTALL_STATE           = 0x00000022, // Device Install State (R)

mpr

.

    ERROR_INVALID_HANDLE_STATE = 1609,

.

    ERROR_INVALID_HANDLE_STATE = 1609

iphlpapi

.

    public enum IF_OPER_STATUS : uint

.

    public enum IP_DAD_STATE : uint

.

        public IP_DAD_STATE DadState;

.

        public IF_OPER_STATUS OperStatus;

.

      public enum MIB_TCP_STATE {

.

      MIB_TCP_STATE_CLOSED,

.

      MIB_TCP_STATE_LISTEN,

.

      MIB_TCP_STATE_SYN_SENT,

.

      MIB_TCP_STATE_SYN_RCVD,

.

      MIB_TCP_STATE_ESTAB,

.

      MIB_TCP_STATE_FIN_WAIT1,

.

      MIB_TCP_STATE_FIN_WAIT2,

.

      MIB_TCP_STATE_CLOSE_WAIT,

.

      MIB_TCP_STATE_CLOSING,

.

      MIB_TCP_STATE_LAST_ACK,

.

      MIB_TCP_STATE_TIME_WAIT,

.

      MIB_TCP_STATE_DELETE_TCB

wininet

.

    Public Const COOKIE_STATE_ACCEPT As Integer = &H1

.

    Public Const COOKIE_STATE_PROMPT As Integer = &H2

.

    Public Const COOKIE_STATE_LEASH As Integer = &H3

.

    Public Const COOKIE_STATE_DOWNGRADE As Integer = &H4

.

    Public Const COOKIE_STATE_REJECT As Integer = &H5

.

    Public Const COOKIE_STATE_ACCEPT As Integer = &H1

.

    Public Const COOKIE_STATE_PROMPT As Integer = &H2

.

    Public Const COOKIE_STATE_LEASH As Integer = &H3

.

    Public Const COOKIE_STATE_DOWNGRADE As Integer = &H4

.

    Public Const COOKIE_STATE_REJECT As Integer = &H5

Structures

.
Summary
The ADAPTER_STATUS structure contains information about a network adapter via the (NetBIOS) API call. This structure is pointed to by the ncb_buffer member of the NCB structure. ADAPTER_STATUS is followed by as many NAME_BUFFER structures as required to describe the network adapters on the system
.

internal struct ADAPTER_STATUS

.

Private Structure ADAPTER_STATUS

.

typedef struct _ADAPTER_STATUS {

.

} ADAPTER_STATUS, *PADAPTER_STATUS;

.
Documentation
[ADAPTER_STATUS] on MSDN
.

    public struct CERT_REVOCATION_STATUS

.

Structure CERT_REVOCATION_STATUS

.
Documentation
[CERT_REVOCATION_STATUS] on MSDN
.

    public int State;                        // State of this volume, one of DFS_VOLUME_STATE_*

.

    public int State;                        // State of this volume, one of DFS_VOLUME_STATE_*

.

        public int State;                                            // State of this volume, one of DFS_VOLUME_STATE_*

.

    public int State;    // State of this storage, one of DFS_STORAGE_STATE_*, possibly OR'd with DFS_STORAGE_STATE_ACTIVE        

.
Summary
The ENUM_SERVICE_STATUS structure is used by the EnumDependentServices and EnumServicesStatus functions to return the name of a service in a service control manager database and to return information about that service.
.

public struct ENUM_SERVICE_STATUS

.

     public SERVICE_STATUS ServiceStatus;

.

Structure ENUM_SERVICE_STATUS

.
Documentation
[ENUM_SERVICE_STATUS] on MSDN
.

   public SYSTEM_POWER_STATE LidOpenWakeAc;

.

   public SYSTEM_POWER_STATE LidOpenWakeDc;

.

   Public LidOpenWakeAc As SYSTEM_POWER_STATE

.

   Public LidOpenWakeDc As SYSTEM_POWER_STATE

.

SYSTEM_POWER_STATE

.

    SYSTEM_POWER_STATE MinSleepAc;

.

    SYSTEM_POWER_STATE MinSleepDc;

.

    SYSTEM_POWER_STATE ReducedLatencySleepAc;

.

    SYSTEM_POWER_STATE ReducedLatencySleepDc;

.

        Private MinSleepAc As SYSTEM_POWER_STATE

.

        Private MinSleepDc As SYSTEM_POWER_STATE

.

        Private ReducedLatencySleepAc As SYSTEM_POWER_STATE

.

        Private ReducedLatencySleepDc As SYSTEM_POWER_STATE

.

SYSTEM_POWER_STATE, POWER_ACTION_POLICY

24: MAPI
.

    /// Bitmask of attachment flags. Flags are MAPI_OLE and MAPI_OLE_STATIC.

.

    ''' Bitmask of attachment flags. Flags are MAPI_OLE and MAPI_OLE_STATIC.

.

    NT_STATIC = 10006,

.

    NT_STATIC_NON_DOD = 10007

.

    NT_STATIC = 10006

.

    NT_STATIC_NON_DOD = 10007

.

    public MIB_TCP_STATE State

.

        get { return (MIB_TCP_STATE)state; }

.

MIB_TCP_STATE

.

    public MIB_TCP_STATE State

.

        get { return (MIB_TCP_STATE)state; }

.

    Public m_state As UInteger

.

    Public ReadOnly Property State() As MIB_TCP_STATE

.

            Return DirectCast(m_state, MIB_TCP_STATE)

.

MIB_TCP_STATE

.
Summary
The NAME_BUFFER structure contains information about a local network name via the (NetBIOS) API Call. One or more NAME_BUFFER structures follows an ADAPTER_STATUS structure when an application specifies the NCBASTAT command in the ncb_command member of the NCB structure.
.

struct RAS_STATS

.

Private Structure RAS_STATS

.
Documentation
[RAS_STATS] on MSDN
.
Summary
The SERVICE_STATUS structure contains information about a service. The ControlService, EnumDependentServices, EnumServicesStatus, and QueryServiceStatus functions use this structure to return information about a service. A service uses this structure in the SetServiceStatus function to report its current status to the service control manager.
.

public struct SERVICE_STATUS

.

     public SERVICE_STATE dwCurrentState;  

.

Easier Structure (which appears to work fine and allows you to avoid defining the SERVICE_TYPES and SERVICE_STATE enumerations and to use CLR compliant types (int)):

.

    private struct SERVICE_STATUS

.
See
.

Private Structure SERVICE_STATUS

.

    internal enum SERVICE_STATE : int

.

        public SERVICE_STATE dwCurrentState;

.

See ControlService for SERVICE_STATE definition.

.
Documentation
[SERVICE_STATUS] on MSDN
.

   private static extern bool SetServiceStatus(IntPtr hServiceStatus, ref SERVICE_STATUS lpServiceStatus);

.

    ByRef lpServiceStatus As SERVICE_STATUS)

.

   public struct SERVICE_STATUS {

.

struct SYSTEM_BATTERY_STATE {

.

Structure SYSTEM_BATTERY_STATE

.
Documentation
[SYSTEM_BATTERY_STATE] on MSDN
.

    public SYSTEM_POWER_STATE AcOnLineWake;

.

    public SYSTEM_POWER_STATE SoftLidWake;

.

    public SYSTEM_POWER_STATE RtcWake;

.

    public SYSTEM_POWER_STATE MinDeviceWakeState;

.

    public SYSTEM_POWER_STATE DefaultLowLatencyWake;

.

SYSTEM_POWER_STATE

.

    public SYSTEM_POWER_STATE MinSystemState;

.

    Public MinSystemState As SYSTEM_POWER_STATE

.

SYSTEM_POWER_STATE

.

enum SYSTEM_POWER_STATE

.

Enum SYSTEM_POWER_STATE

.
Documentation
[SYSTEM_POWER_STATE] on MSDN
.

public class SYSTEM_POWER_STATUS_EX2

.

Public Class SYSTEM_POWER_STATUS_EX2

.
Documentation
[SYSTEM_POWER_STATUS_EX2] on MSDN
.

public class SYSTEM_POWER_STATUS_EX2

.

Public Class SYSTEM_POWER_STATUS_EX2

.
Documentation
[SYSTEM_POWER_STATUS_EX2] on MSDN
.

   USB_CONNECTION_STATUS  ConnectionStatus;

.

            public SYSTEM_POWER_STATE MaxSleepAc;

.

            public SYSTEM_POWER_STATE MaxSleepDc;

.

        Public MaxSleepAc As SYSTEM_POWER_STATE

.

        Public MaxSleepDc As SYSTEM_POWER_STATE

.

        /// WLAN_INTERFACE_STATE->_WLAN_INTERFACE_STATE

.

        public WLAN_INTERFACE_STATE isState;

.

     ''' WLAN_INTERFACE_STATE->_WLAN_INTERFACE_STATE

.

     Public isState As WLAN_INTERFACE_STATE

.

WLAN_INTERFACE_STATE

.

public struct WLAN_HOSTED_NETWORK_PEER_STATE

.

     public WLAN_HOSTED_NETWORK_PEER_AUTH_STATE PeerAuthState;

.

Structure WLAN_HOSTED_NETWORK_PEER_STATE

.
Documentation
[WLAN_HOSTED_NETWORK_PEER_STATE] on MSDN
.

public struct WLAN_HOSTED_NETWORK_RADIO_STATE

.

     DOT11_RADIO_STATE dot11SoftwareRadioState;

.

     DOT11_RADIO_STATE dot11HardwareRadioState;

.

Structure WLAN_HOSTED_NETWORK_RADIO_STATE

.
Documentation
[WLAN_HOSTED_NETWORK_RADIO_STATE] on MSDN
.

public struct WLAN_HOSTED_NETWORK_STATUS

.

     public WLAN_HOSTED_NETWORK_STATE HostedNetworkState;

.

     public WLAN_HOSTED_NETWORK_PEER_STATE[] PeerList;

.

Structure WLAN_HOSTED_NETWORK_STATUS

.
Documentation
[WLAN_HOSTED_NETWORK_STATUS] on MSDN
.

        wlan_notification_acm_adhoc_network_state_change,

.

        wlan_notification_acm_adhoc_network_state_change

.

        wlan_notification_msm_radio_state_change,

shell32

.

    Public T_STATE As ABState

.

    ABN_STATECHANGE = 0

.

            retState.T_STATE = ABState.ABS_MANUAL

.

            retState.T_STATE = ABState.ABS_ALWAYSONTOP

.

            retState.T_STATE = ABState.ABS_AUTOHIDE

.

            retState.T_STATE = ABState.ABS_AUTOHIDEANDONTOP

.

        private uint BIF_STATUSTEXT     = 0x0004;  // Top of the dialog has 2 lines of text for BROWSEINFO.lpszTitle and one line if

.

     out QUERY_USER_NOTIFICATION_STATE pquns);

.

enum QUERY_USER_NOTIFICATION_STATE

kernel32

.

            EVENT_MODIFY_STATE    = 0x00000002,

.

            MUTEX_MODIFY_STATE    = 0x00000001,

.

            SEMAPHORE_MODIFY_STATE    = 0x00000002,

.

            TIMER_MODIFY_STATE    = 0x00000002,

.

            TIMER_QUERY_STATE    = 0x00000001

.

                IntPtr hMutex = Native.OpenMutex( ( uint ) ( Native.SyncObjectAccess.MUTEX_MODIFY_STATE ), false, name );

.

                        hMutex = Native.OpenMutex( ( uint ) ( Native.SyncObjectAccess.MUTEX_MODIFY_STATE ), false, name );

.

static extern bool GetSystemPowerStatus(out SYSTEM_POWER_STATUS

.

SYSTEM_POWER_STATUS

.

See Also: NCB, LANA_ENUM, ADAPTER_STATUS, NAME_BUFFER

.

   Dim adapt As ADAPTER_STATUS

.

   Dim myAdapt As New ADAPTER_STATUS

.

  const uint EVENT_MODIFY_STATE        = 0x0002 ;

.

        EVENT_MODIFY_STATE        = 0x00000002,

.

        MUTEX_MODIFY_STATE        = 0x00000001,

.

        SEMAPHORE_MODIFY_STATE    = 0x00000002,

.

        TIMER_MODIFY_STATE        = 0x00000002,

.

        TIMER_QUERY_STATE        = 0x00000001

.

  IntPtr handle= OpenEvent(EVENT_ALL_ACCESS | EVENT_MODIFY_STATE, false, name);

.

const UInt32 MUTEX_MODIFY_STATE = 0x0001;

.

static extern EXECUTION_STATE SetThreadExecutionState(EXECUTION_STATE esFlags);

.

public enum EXECUTION_STATE :uint

.

Note that the return value is the EXECUTION_STATE that ''was'' set.

.

Description of what the different EXECUTION_STATE does

.

        SetThreadExecutionState(EXECUTION_STATE.ES_DISPLAY_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_AWAYMODE_REQUIRED);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_SYSTEM_REQUIRED);

Enums

.

    BIF_STATUSTEXT = 0x00000004,

.

    BIF_STATUSTEXT = &H00000004

.

    BIF_STATUSTEXT As Long = &H00000004

.

enum DFS_STORAGE_STATES {

.

    DFS_STORAGE_STATE_OFFLINE=0x1,

.

    DFS_STORAGE_STATE_ONLINE=0x2,

.

    DFS_STORAGE_STATE_ACTIVE=0x4

.

Enum DFS_STORAGE_STATES

.
Documentation
[DFS_STORAGE_STATES] on MSDN
.
Summary
Specifies a set of bit flags that describes the Dfs root or link. One DFS_VOLUME_STATE flag is set and one DFS_VOLUME_FLAVOR flag is set.
.
Summary
Specifies a set of bit flags that describes the Dfs root or link. One DFS_VOLUME_STATE flag is set and one DFS_VOLUME_FLAVOR flag is set.
.

enum DFS_VOLUME_STATE {

.

    DFS_VOLUME_STATE_OK =0x1,

.

    DFS_VOLUME_STATE_INCONSISTENT=2,

.

    DFS_VOLUME_STATE_OFFLINE=3,

.

    DFS_VOLUME_STATE_ONLINE=4

.

Enum DFS_VOLUME_STATE

.
Documentation
[DFS_VOLUME_STATE] on MSDN
59: DLGC
.

    DLGC_STATIC = 0x0100,

.

    public const int STG_E_STATUS_COPY_PROTECTION_FAILURE = unchecked((int)0x80030305);

.

    public const int OLE_E_STATIC = unchecked((int)0x8004000B);

.

    public const int DV_E_STATDATA = unchecked((int)0x80040067);

.

    public const int OLE_S_STATIC = unchecked((int)0x00040001);

.

    public const int NTE_BAD_KEY_STATE = unchecked((int)0x8009000B);

.

    public const int NTE_BAD_HASH_STATE = unchecked((int)0x8009000C);

.

    //  FACILITY_STATE_MANAGEMENT

.

    #region (0x220000 - 0x22FFFF) FACILITY_STATE_MANAGEMENT=34 errors

.

    Public Const STG_E_STATUS_COPY_PROTECTION_FAILURE As Integer = CInt(&H80030305UI)

.

    Public Const OLE_E_STATIC As Integer = CInt(&H8004000bUI)

.

    Public Const DV_E_STATDATA As Integer = CInt(&H80040067UI)

.

    Public Const OLE_S_STATIC As Integer = CInt(&H40001)

.

    Public Const NTE_BAD_KEY_STATE As Integer = CInt(&H8009000bUI)

.

    Public Const NTE_BAD_HASH_STATE As Integer = CInt(&H8009000cUI)

.

    '  FACILITY_STATE_MANAGEMENT

.

    #Region "(0x220000 - 0x22FFFF) FACILITY_STATE_MANAGEMENT=34 errors"

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: