Desktop Functions: Smart Device Functions:
|
Search Results for "_stat" in [All]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 user323: CreateWindow
[MarshalAs(UnmanagedType.U4)] WINDOWS_STATION_ACCESS_MASK desiredAccess,
internal enum WINDOWS_STATION_ACCESS_MASK : uint
WINDOWS_STATION_ACCESS_MASK.WINSTA_ALL_ACCESS, null); 4: GetSysColor
const uint EVENT_OBJECT_STATECHANGE = 0x800A; // hwnd ID idChild is item w/ state change 6: TCITEM
const int TCIF_STATE = 0x10;
tcitem.mask = TCIF_STATE | TCIF_TEXT; ntdll7: NtCreateFile
public static extern int NtCreateFile(out SafeFileHandle handle, FileAccess access, OBJECT_ATTRIBUTES* objectAttributes, IO_STATUS_BLOCK* ioStatus, ref long allocSize, uint fileAttributes, FileShare share, uint createDisposition, uint createOptions, IntPtr eaBuffer, uint eaLength);
ref IO_STATUS_BLOCK ioStatus,
public struct IO_STATUS_BLOCK
IO_STATUS_BLOCK ioStatusBlock = new IO_STATUS_BLOCK();
[DllImport("ntdll.dll", SetLastError=true)] static extern IntPtr NtQueryInformationFile(IntPtr fileHandle, ref IO_STATUS_BLOCK IoStatusBlock, IntPtr pInfoBlock, uint length, FILE_INFORMATION_CLASS fileInformation);
Declare Function NtQueryInformationFile Lib "ntdll.dll" (ByVal fileHandle As IntPtr, ByRef IoStatusBlock As IO_STATUS_BLOCK, ByVal pInfoBlock As IntPtr, ByVal length As UInteger, ByVal fileInformation As FILE_INFORMATION_CLASS) As IntPtr
Structure IO_STATUS_BLOCK
struct IO_STATUS_BLOCK
struct IO_STATUS_BLOCK {
static extern IntPtr NtQueryInformationFile(SafeFileHandle fileHandle, ref IO_STATUS_BLOCK IoStatusBlock, IntPtr pInfoBlock, uint length, FILE_INFORMATION_CLASS fileInformation);
IO_STATUS_BLOCK iosb = new IO_STATUS_BLOCK(); 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)); advapi3210: ControlService
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); 11: CreateService
SERVICE_QUERY_STATUS = 0x00004,
SERVICE_QUERY_STATUS |
SERVICE_QUERY_STATUS |
SERVICE_QUERY_STATUS = &H4
SERVICE_QUERY_STATUS Or _
SERVICE_QUERY_STATUS Or _ 12: DeleteService
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 } 15: IsTextUnicode
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
internal static extern NET_API_STATUS NetValidatePasswordPolicy(
public NET_API_STATUS ValidationStatus;
internal enum NET_API_STATUS : uint
private static extern NET_API_STATUS NetValidatePasswordPolicyFree(ref IntPtr OutputArg);
NET_API_STATUS status = NetValidatePasswordPolicy(serverName, IntPtr.Zero, NET_VALIDATE_PASSWORD_TYPE.NetValidatePasswordChange, inputPointer, ref outputPointer);
if (status == NET_API_STATUS.NERR_Success)
if (outputArgs.ValidationStatus == NET_API_STATUS.NERR_Success) 20: OpenSCManager
SC_MANAGER_QUERY_LOCK_STATUS = 0x00010,
SC_MANAGER_QUERY_LOCK_STATUS |
SC_MANAGER_QUERY_LOCK_STATUS,
SC_MANAGER_QUERY_LOCK_STATUS = &H10
SC_MANAGER_QUERY_LOCK_STATUS Or _
SC_MANAGER_QUERY_LOCK_STATUS
Const SC_MANAGER_QUERY_LOCK_STATUS As Int32 = &H10
SC_MANAGER_QUERY_LOCK_STATUS Or _ For infoLevel only SC_STATUS_PROCESS_INFO (0x0) is allowed . See SERVICE_STATUS_PROCESS definition.
public static SERVICE_STATUS_PROCESS QueryServiceStatusEx(IntPtr serviceHandle)
return (SERVICE_STATUS_PROCESS)Marshal.PtrToStructure(buf, typeof(SERVICE_STATUS_PROCESS)); For infoLevel only SC_STATUS_PROCESS_INFO (0x0) is allowed . See SERVICE_STATUS_PROCESS definition. //NB for this code to work you will need to change the SERVICE_STATUS_PROCESS class to a struct
public static SERVICE_STATUS_PROCESS QueryServiceStatusEx(SafeHandle serviceHandle)
pData = Marshal.AllocHGlobal(sizeof(SERVICE_STATUS_PROCESS));
bool bOk = QueryServiceStatusEx(serviceHandle.DangerousGetHandle(), 0, pData, sizeof(SERVICE_STATUS_PROCESS), out
SERVICE_STATUS_PROCESS pStatus = (SERVICE_STATUS_PROCESS)Marshal.PtrToStructure(pData, typeof(SERVICE_STATUS_PROCESS)); Constants24: 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 25: NCBASTAT 26: PROPERTYKEY
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] 27: SCM
Const SC_MANAGER_QUERY_LOCK_STATUS As Int32 = &H10
SC_MANAGER_QUERY_LOCK_STATUS Or _ 28: Service
private const int SERVICE_QUERY_STATUS = 0x4;
SERVICE_QUERY_STATUS |
Const SERVICE_QUERY_STATUS As Int32 = &H4
SERVICE_QUERY_STATUS Or _ 29: ShellAPI
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. 30: ShellAPI
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. 31: WINBASE
public const int FSCTL_FILESYSTEM_GET_STATISTICS = 0x00090060; 32: Window styles
public const uint WS_EX_STATICEDGE = 0x00020000;
WS_EX_STATICEDGE = 0x00020000,
WS_EX_STATICEDGE = 131072 33: WINERROR
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); winfax
ref FAX_DEVICE_STATUS DeviceStatus); wlanapi
[Out] out WLAN_HOSTED_NETWORK_STATUS pWlanHostedNetworkStatus, 37: WLAN_RADIO_STATE private struct WLAN_RADIO_STATE
public WLAN_PHY_RADIO_STATE[] PhyRadioState;
public WLAN_RADIO_STATE(IntPtr ppData)
// The first 4 bytes are the number of WLAN_PHY_RADIO_STATE structures.
// Construct the array of WLAN_PHY_RADIO_STATE structures.
PhyRadioState = new WLAN_PHY_RADIO_STATE[dwNumberOfPhys];
// structure. The length of the WLAN_PHY_RADIO_STATE structure is 12 bytes
// Construct the WLAN_PHY_RADIO_STATE structure, marshal the unmanaged
PhyRadioState[i] = (WLAN_PHY_RADIO_STATE)Marshal.PtrToStructure(pPhyList, typeof(WLAN_PHY_RADIO_STATE));
Private Structure WLAN_RADIO_STATE
Public PhyRadioState As WLAN_PHY_RADIO_STATE()
' The first 4 bytes are the number of WLAN_PHY_RADIO_STATE structures.
' Construct the array of WLAN_PHY_RADIO_STATE structures.
PhyRadioState = New WLAN_PHY_RADIO_STATE(dwNumberOfPhys - 1) {}
' structure. The length of the WLAN_PHY_RADIO_STATE structure is 12 bytes
' Construct the WLAN_PHY_RADIO_STATE structure, marshal the unmanaged
PhyRadioState(i) = DirectCast(Marshal.PtrToStructure(pPhyList, GetType(WLAN_PHY_RADIO_STATE)), WLAN_PHY_RADIO_STATE) 38: WLAN_STATISTICS
public struct WLAN_STATISTICS {
public WLAN_MAC_FRAME_STATISTICS MacUcastCounters;
public WLAN_MAC_FRAME_STATISTICS MacMcastCounters;
public WLAN_PHY_FRAME_STATISTICS[] PhyCounters;
Public Structure WLAN_STATISTICS
Public MacUcastCounters As WLAN_MAC_FRAME_STATISTICS
Public MacMcastCounters As WLAN_MAC_FRAME_STATISTICS
Public PhyCounters() As WLAN_PHY_FRAME_STATISTICS rasapi32
static extern uint RasGetConnectionStatistics(IntPtr hRasConn, ref RAS_STATS lpStatistics);
ByRef lpStatistics As RAS_STATS) As UInt32
RAS_STATS statistics = new RAS_STATS(); 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 ws2_32
SO_BSP_STATE = 0x1009, netapi3243: NetDfsEnum
[DllImport("Netapi32.dll", CharSet = CharSet.Auto/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]
Dim state As DFS_STORAGE_STATES
DFS_STORAGE_STATES state; [2014-02-27] The function does not set the last error value, the error is returned directly and is in NET_API_STATUS format /Stoyan Sabev/
if (storage.State == (DFS_STORAGE_STATE_ACTIVE | DFS_STORAGE_STATE_ONLINE)) ActiveOnlineServer = storage.ServerName;
if (storage.State == (DFS_STORAGE_STATE_ACTIVE | DFS_STORAGE_STATE_ONLINE)) 45: NetDfsGetInfo
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)] [Stoyan Sabev] The function does not set the last error value, the error is returned directly and is NET_API_STATUS form 46: NetFileClose
'NET_API_STATUS NetFileClose( 47: NetFileEnum
'NET_API_STATUS NetFileEnum(
ByRef bufferType As NETSETUP_JOIN_STATUS) _
As NET_API_STATUS
} // NETSETUP_JOIN_STATUS NET_API_STATUS - Possible return values are NERR_Success and ERROR_NOT_ENOUGH_MEMORY
Public Enum NETSETUP_JOIN_STATUS As UInteger
Public GroupType As NETSETUP_JOIN_STATUS
Public Enum NET_API_STATUS As UInteger
Public Enum NETSETUP_JOIN_STATUS As UInteger
ByRef bufferType As NETSETUP_JOIN_STATUS) _
As NET_API_STATUS
(ByVal lpBuffer As IntPtr) As NET_API_STATUS
Dim status As NET_API_STATUS
If status = NET_API_STATUS.NERR_Success Then
As NET_API_STATUS NET_API_STATUS - Possible value are NERR_Success, ERROR_NOT_ENOUGH_MEMORY and ERROR_INVALID_PARAMETER.
If NetRemoteComputerSupports(ComputerName, Wanted, supports) = NET_API_STATUS.NERR_Success Then 50: NetSessionDel NET_API_STATUS NetSessionDel( 51: NetSessionEnum
ERROR_INVALID_HANDLE_STATE = 1609, 52: NetUseAdd
using NET_API_STATUS = System.UInt32;
internal static extern NET_API_STATUS NetUseAdd(
internal DWORD ui2_status; using NET_API_STATUS = System.UInt32; 53: NetUseEnum
internal static extern NET_API_STATUS NetUseEnum(
ByRef resumeHandle As IntPtr) As NET_API_STATUS
internal DWORD ui2_status;
Public ui2_status As UInt32
Private Enum NET_USE_STATUS As UInteger mpr54: WNetEnumResource
ERROR_INVALID_HANDLE_STATE = 1609,
ERROR_INVALID_HANDLE_STATE = 1609 winscard55: SCardGetAttrib
// 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; kernel3257: CreateMutex
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 59: NetBIOS See Also: NCB, LANA_ENUM, ADAPTER_STATUS, NAME_BUFFER
Dim adapt As ADAPTER_STATUS
Dim myAdapt As New ADAPTER_STATUS 60: OpenEvent
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); Cut off search results after 60. Please refine your search. |