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]

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

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

13: 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,

rasapi32

.

static extern uint RasGetConnectionStatistics(IntPtr hRasConn, ref RAS_STATS lpStatistics);

.

     ByRef lpStatistics As RAS_STATS) As UInt32

.

RAS_STATS.

.

RAS_STATS statistics = new RAS_STATS();

winscard

.

  // SCARD_ATTR_ATR_STRING = SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0303) in WinSCard.h

.

private const int SCARD_STATE_UNAWARE = 0x00000000;

.

  rs[0].dwCurrentState = SCARD_STATE_UNAWARE;

mpr

.

    ERROR_INVALID_HANDLE_STATE = 1609,

.

    ERROR_INVALID_HANDLE_STATE = 1609

winfax

.

   ref FAX_DEVICE_STATUS DeviceStatus);

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

Constants

42: MAPI
.

  /// If MAPI_OLE_STATIC is also set, the attachment is a static OLE object.

.

  /// If MAPI_OLE_STATIC is not set, the attachment is an embedded OLE object.

.

  public const uint MAPI_OLE_STATIC = 0x00000002;

.

    Public Const MAPI_OLE_STATIC As UInteger = &H2

.
Summary
Adapter Status command used in the NCB structure's ncb_command value by the NetBIOS API Call. Returns a ADAPTER_STATUS structure
.

    public static PropertyKey PKEY_Status = new PropertyKey( 0x000214A1, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 9);

.

    public static PropertyKey PKEY_GPS_Status = new PropertyKey( 0x125491F4, 0x818F, 0x46B2, 0x91, 0xB5, 0xD5, 0x37, 0x75, 0x36, 0x17, 0xB2, 100);

.

    public static PropertyKey PKEY_Link_Status = new PropertyKey( 0xB9B4B3FC, 0x2B51, 0x4A42, 0xB5, 0xD8, 0x32, 0x41, 0x46, 0xAF, 0xCF, 0x25, 3);

.

    public static PropertyKey PKEY_RecordedTV_StationCallSign = new PropertyKey( 0x6D748DE2, 0x8D38, 0x4CC3, 0xAC, 0x60, 0xF0, 0x09, 0xB0, 0x57, 0xC5, 0x57, 5);

.

    public static PropertyKey PKEY_RecordedTV_StationName = new PropertyKey( 0x1B5439E7, 0xEBA1, 0x4AF8, 0xBD, 0xD7, 0x7A, 0xF1, 0xD4, 0x54, 0x94, 0x93, 100);

.

    public static PropertyKey PKEY_Hardware_Status = new PropertyKey(0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 4096);

.

    public static PropertyKey WPD_IMAGE_CROPPED_STATUS = new PropertyKey(0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, 4);

.

    public static PropertyKey WPD_IMAGE_COLOR_CORRECTED_STATUS = new PropertyKey(0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, 5);

.

    public static PropertyKey WPD_VIDEO_RECORDEDTV_STATION_NAME = new PropertyKey(0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, 4);

.

    public static PropertyKey WPD_TASK_STATUS = new PropertyKey(0xE354E95E, 0xD8A0, 0x4637, 0xA0, 0x3A, 0x0C, 0xB2, 0x68, 0x38, 0xDB, 0xC7, 6);

.

    public static PropertyKey WPD_EVENT_PARAMETER_OPERATION_STATE = new PropertyKey(0x15AB1953, 0xF817, 0x4FEF, 0xA9, 0x21, 0x56, 0x76, 0xE8, 0x38, 0xF6, 0xE0, 4);

.

    public static PropertyKey SENSOR_EVENT_PARAMETER_STATE = new PropertyKey(0X64346E30, 0X8728, 0X4B34, 0XBD, 0XF6, 0X4F, 0X52, 0X44, 0X2C, 0X5C, 0X28, 3); // [VT_UI4]

.

    public static PropertyKey SENSOR_PROPERTY_STATE = new PropertyKey(0X7F8383EC, 0XD3EC, 0X495C, 0XA8, 0XCF, 0XB8, 0XBB, 0XE8, 0X5C, 0X29, 0X20, 3); //[VT_UI4]

.

    public static PropertyKey SENSOR_DATA_TYPE_STATE_PROVINCE = new PropertyKey(0X055C74D8, 0XCA6F, 0X47D6, 0X95, 0XC6, 0X1E, 0XD3, 0X63, 0X7A, 0X0F, 0XF4, 26); //[VT_LPWSTR]

.

    public static PropertyKey SENSOR_DATA_TYPE_GPS_STATUS = new PropertyKey(0X055C74D8, 0XCA6F, 0X47D6, 0X95, 0XC6, 0X1E, 0XD3, 0X63, 0X7A, 0X0F, 0XF4, 33); //[VT_I4]

.

    public static PropertyKey SENSOR_DATA_TYPE_DIFFERENTIAL_REFERENCE_STATION_ID = new PropertyKey(0X055C74D8, 0XCA6F, 0X47D6, 0X95, 0XC6, 0X1E, 0XD3, 0X63, 0X7A, 0X0F, 0XF4, 37); //[VT_I4]

.

    public static PropertyKey SENSOR_DATA_TYPE_MOTION_STATE = new PropertyKey(0X3F8A69A2, 0X7C5, 0X4E48, 0XA9, 0X65, 0XCD, 0X79, 0X7A, 0XAB, 0X56, 0XD5, 9); //[VT_BOOL]

.

    public static PropertyKey SENSOR_DATA_TYPE_BOOLEAN_SWITCH_STATE = new PropertyKey(0X38564A7C, 0XF2F2, 0X49BB, 0X9B, 0X2B, 0XBA, 0X60, 0XF6, 0X6A, 0X58, 0XDF, 2); //[VT_BOOL]

.

    public static PropertyKey SENSOR_DATA_TYPE_MULTIVALUE_SWITCH_STATE = new PropertyKey(0X38564A7C, 0XF2F2, 0X49BB, 0X9B, 0X2B, 0XBA, 0X60, 0XF6, 0X6A, 0X58, 0XDF, 3); //[VT_R8]

.

    public static PropertyKey SENSOR_DATA_TYPE_TOUCH_STATE = new PropertyKey(0X2299288A, 0X6D9E, 0X4B0B, 0XB7, 0XEC, 0X35, 0X28, 0XF8, 0X9E, 0X40, 0XAF, 4); //[VT_BOOL]

45: SCM
.

    Const SC_MANAGER_QUERY_LOCK_STATUS As Int32 = &H10

.

                        SC_MANAGER_QUERY_LOCK_STATUS Or _

.

private const int SERVICE_QUERY_STATUS = 0x4;

.

    SERVICE_QUERY_STATUS |

.

Const SERVICE_QUERY_STATUS As Int32 = &H4

.

                    SERVICE_QUERY_STATUS Or _

.

    public const int ABN_STATECHANGE   = 0x0000000;

.

    public const int NIF_STATE          = 0x00000008;

.

    public const int OFFLINE_STATUS_LOCAL      = 0x0001;    // If open, it's open locally

.

    public const int OFFLINE_STATUS_REMOTE     = 0x0002;    // If open, it's open remotely

.

    public const int OFFLINE_STATUS_INCOMPLETE = 0x0004;    // The local copy is currently imcomplete.

.

    public const int ABN_STATECHANGE   = 0x0000000;

.

    public const int NIF_STATE          = 0x00000008;

.

    public const int OFFLINE_STATUS_LOCAL      = 0x0001;    // If open, it's open locally

.

    public const int OFFLINE_STATUS_REMOTE     = 0x0002;    // If open, it's open remotely

.

    public const int OFFLINE_STATUS_INCOMPLETE = 0x0004;    // The local copy is currently imcomplete.

.

public const int FSCTL_FILESYSTEM_GET_STATISTICS = 0x00090060;

.

        public const uint WS_EX_STATICEDGE    = 0x00020000;

.

    WS_EX_STATICEDGE       = 0x00020000,

.

  WS_EX_STATICEDGE = 131072

.

        public const int ERROR_SET_POWER_STATE_VETOED = 1140;

.

        public const int ERROR_SET_POWER_STATE_FAILED = 1141;

.

        public const int ERROR_INVALID_SERVER_STATE = 1352;

.

        public const int ERROR_INVALID_DOMAIN_STATE = 1353;

.

        public const int ERROR_BAD_LOGON_SESSION_STATE = 1365;

.

        public const int ERROR_RXACT_INVALID_STATE = 1369;

.

        public const int ERROR_INVALID_HANDLE_STATE = 1609;

.

        public const int ERROR_INVALID_PRINTER_STATE = 1906;

.

        public const int ERROR_STATIC_INIT = 4002;

.

        public const int ERROR_INVALID_STATE = 5023;

.

        public const int ERROR_RESMON_INVALID_STATE = 5084;

.

        public const int ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE = 5890;

.

        public const int DNS_STATUS_FQDN = 9557;

.

        public const int DNS_STATUS_DOTTED_NAME = 9558;

.

        public const int DNS_STATUS_SINGLE_PART_NAME = 9559;

.

        public const int DNS_STATUS_CONTINUE_NEEDED = 9801;

.

        /// ERROR_IPSEC_IKE_NEG_STATUS_BEGIN

.

        public const int ERROR_IPSEC_IKE_NEG_STATUS_BEGIN = 13800;

.

        /// ERROR_IPSEC_IKE_NEG_STATUS_END

.

        public const int ERROR_IPSEC_IKE_NEG_STATUS_END = 13884;

.

        public const int OLE_E_STATIC = (int)(0x8004000B - 0x100000000);

.

        public const int DV_E_STATDATA = (int)(0x80040067 - 0x100000000);

.

        public const int OLE_S_STATIC = 0x00040001;

.

        public const int STG_E_STATUS_COPY_PROTECTION_FAILURE = (int)(0x80030305 - 0x100000000);

.

        public const int NTE_BAD_KEY_STATE = (int)(0x8009000B - 0x100000000);

.

        public const int NTE_BAD_HASH_STATE = (int)(0x8009000C - 0x100000000);

advapi32

.

public static extern bool    ControlService(IntPtr hService, SERVICE_CONTROL dwControl, ref SERVICE_STATUS lpServiceStatus);

.

Public Function ControlService(ByVal hService As IntPtr, ByVal dwControl As SERVICE_CONTROL, ByRef lpServiceStatus As SERVICE_STATUS) As Boolean

.

Declare Function ControlService Lib "advapi32.dll" (ByVal hService As Long, ByVal lControlCode As Long, ByVal lpServiceStatus As SERVICE_STATUS) As Boolean

.

See SERVICE_STATUS definition

.

public enum SERVICE_STATE : uint

.

See SERVICE_STATUS definition

.

Public Enum SERVICE_STATE As Integer

.

SERVICE_STATUS stat = new SERVICE_STATUS();

.

         SERVICE_STATUS serviceStatus;

.

         serviceStatus = new SERVICE_STATUS ();

.

     private SERVICE_STATUS DoQueryServiceStatus ()

.

         SERVICE_STATUS serviceStatus = new SERVICE_STATUS();

.

                 SERVICE_STATUS serviceStatus = new SERVICE_STATUS ();

.

         SERVICE_STATUS serviceStatus = new SERVICE_STATUS();

.

         ref SERVICE_STATUS lpServiceStatus);

.

     internal static extern bool QueryServiceStatus (IntPtr hService, ref SERVICE_STATUS dwServiceStatus);

.

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

.

    SERVICE_QUERY_STATUS = 0x00004,

.

        SERVICE_QUERY_STATUS |

.

        SERVICE_QUERY_STATUS |

.

    SERVICE_QUERY_STATUS = &H4

.

        SERVICE_QUERY_STATUS Or _

.

        SERVICE_QUERY_STATUS Or _

.

        SERVICE_QUERY_STATUS       = 0x00004,

.

            SERVICE_QUERY_STATUS     |

.

        SC_MANAGER_QUERY_LOCK_STATUS   = 0x00010,

.

            SC_MANAGER_QUERY_LOCK_STATUS |

.

                       SERVICE_STATES dwServiceState,

.

                       ref ENUM_SERVICE_STATUS lpServices,

.

SERVICE_STATES, SERVICE_TYPES, ENUM_SERVICE_STATUS, OpenSCManager, EnumServicesStatus, and OpenService

.

                 SERVICE_STATES.SERVICE_STATE_ALL,

.

                     SERVICE_STATES.SERVICE_STATE_ALL,

.

         ENUM_SERVICE_STATUS serviceStatus;

.

         serviceStatus = (ENUM_SERVICE_STATUS) Marshal.PtrToStructure( new IntPtr(iPtr), typeof(ENUM_SERVICE_STATUS) );

.

                             SERVICE_STATES.SERVICE_STATE_ALL,

.

                             SERVICE_STATES.SERVICE_STATE_ALL,

.

                 ENUM_SERVICE_STATUS depService;

.

                 depService = (ENUM_SERVICE_STATUS) Marshal.PtrToStructure( new IntPtr(iDepPtr), typeof(ENUM_SERVICE_STATUS) );

.

                 iDepPtr += ENUM_SERVICE_STATUS.SizeOf;

.

         iPtr += ENUM_SERVICE_STATUS.SizeOf;

.

      internal static ENUM_SERVICE_STATUS_PROCESS[] GetServices()

.

     List<ENUM_SERVICE_STATUS_PROCESS> result = new List<ENUM_SERVICE_STATUS_PROCESS>();

.

           ENUM_SERVICE_STATUS_PROCESS infoLevel = new ENUM_SERVICE_STATUS_PROCESS();

.

           if (!EnumServicesStatusEx(handle, SC_ENUM_PROCESS_INFO, (int)ServiceType.SERVICE_WIN32, (int)ServiceStateRequest.SERVICE_STATE_ALL, IntPtr.Zero, 0, out iBytesNeeded, out iServicesReturned, ref iResumeHandle, null))

.

          if (!EnumServicesStatusEx(handle, SC_ENUM_PROCESS_INFO, (int)ServiceType.SERVICE_WIN32, (int)ServiceStateRequest.SERVICE_STATE_ALL, buf, iBytesNeeded, out iBytesNeeded, out iServicesReturned, ref iResumeHandle, null))

.

          ENUM_SERVICE_STATUS_PROCESS serviceStatus;

.

            serviceStatus = (ENUM_SERVICE_STATUS_PROCESS)Marshal.PtrToStructure(new IntPtr(pointer),

.

               typeof(ENUM_SERVICE_STATUS_PROCESS));

.

            // incremement by sizeof(ENUM_SERVICE_STATUS_PROCESS) allow Packing of 8

.

            pointer += ENUM_SERVICE_STATUS_PROCESS.SizePack8;

.

            serviceStatus = (ENUM_SERVICE_STATUS_PROCESS)Marshal.PtrToStructure(new IntPtr(pointer),

.

               typeof(ENUM_SERVICE_STATUS_PROCESS));

.

            // incremement by sizeof(ENUM_SERVICE_STATUS_PROCESS) allow Packing of 4

.

            pointer += ENUM_SERVICE_STATUS_PROCESS.SizePack4;

.

      internal struct ENUM_SERVICE_STATUS_PROCESS

.

     internal static readonly int SizePack4 = Marshal.SizeOf(typeof(ENUM_SERVICE_STATUS_PROCESS));

.

     /// sizeof(ENUM_SERVICE_STATUS_PROCESS) allow Packing of 8 on 64 bit machines

.

     internal static readonly int SizePack8 = Marshal.SizeOf(typeof(ENUM_SERVICE_STATUS_PROCESS)) + 4;

.

     internal SERVICE_STATUS_PROCESS ServiceStatus;

.

      internal struct SERVICE_STATUS_PROCESS

.

      private enum ServiceStateRequest { SERVICE_ACTIVE = 0x1, SERVICE_INACTIVE = 0x2, SERVICE_STATE_ALL = (SERVICE_ACTIVE | SERVICE_INACTIVE) }

.

      private enum ServiceControlManagerType { SC_MANAGER_CONNECT = 0x1, SC_MANAGER_CREATE_SERVICE = 0x2, SC_MANAGER_ENUMERATE_SERVICE = 0x4, SC_MANAGER_LOCK = 0x8, SC_MANAGER_QUERY_LOCK_STATUS = 0x10, SC_MANAGER_MODIFY_BOOT_CONFIG = 0x20, SC_MANAGER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE | SC_MANAGER_ENUMERATE_SERVICE | SC_MANAGER_LOCK | SC_MANAGER_QUERY_LOCK_STATUS | SC_MANAGER_MODIFY_BOOT_CONFIG }

.

        IS_TEXT_UNICODE_STATISTICS       = 0x0002,

.

        IS_TEXT_UNICODE_REVERSE_STATISTICS   = 0x0020,

.

    Private NT_STATUS_OBJECT_NAME_NOT_FOUND As Integer = &HC0000034

.

    Private NT_STATUS_OBJECT_NAME_NOT_FOUND As Integer = &HC0000034

.

    Private NT_STATUS_OBJECT_NAME_NOT_FOUND As Integer = &HC0000034

.

    If ret <> 0 And ret <> NT_STATUS_OBJECT_NAME_NOT_FOUND Then

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


 
Access PInvoke.net directly from VS: