Desktop Functions: Smart Device Functions:
|
Search Results for "Service" in [All]wtsapi32
static extern TODO TerminalServices(TODO);
Declare Function TerminalServices Lib "wtsapi32.dll" (TODO) As TODO
using System.Runtime.InteropServices;
namespace TerminalServices
using System.Runtime.InteropServices;
$datasize = [system.runtime.interopservices.marshal]::SizeOf([System.Type][mystruct.WTS_SESSION_INFO])
$element = [system.runtime.interopservices.marshal]::PtrToStructure($ppSessionInfo + ($datasize * $i),[System.type][mystruct.WTS_SESSION_INFO])
Imports System.Runtime.InteropServices
Throw New Exception(ex.Message & vbCrLf & System.Runtime.InteropServices.Marshal.GetLastWin32Error) The WTSFreeMemory function frees memory allocated by a Terminal Services function.
Throw New Exception(ex.Message & vbCrLf & System.Runtime.InteropServices.Marshal.GetLastWin32Error)
/// <param name="sessionId">A Terminal Services session identifier. To indicate the session in which the calling application is running
using System.Runtime.InteropServices;
/// <param name="sessionId">A Terminal Services session identifier. To indicate the session in which the calling application is running
/// Terminal Services session currently attached to the physical console.
/// <remarks>It is not necessary that Terminal Services be running for this function to succeed.</remarks>
/// The WTSFreeMemory function frees memory allocated by a Terminal Services function.
<System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=20)> _ aygshell13: ExitWindowsEx msdelta14: CreateDeltaW
ref System.Runtime.InteropServices.ComTypes.FILETIME lpTargetFileTime, shlwapi15: ColorHLSToRGB
using System.Runtime.InteropServices; 16: ColorRGBToHLS
using System.Runtime.InteropServices; 17: IPreviewHandler [System.Runtime.InteropServices.ComImport] 18: PathCompactPath
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream); static extern void SHCreateStreamOnFileEx(string fileName, uint grfmode, uint dwAttributes, bool fCreate, System.Runtime.InteropServices.ComTypes.IStream streamNull, ref System.Runtime.InteropServices.ComTypes.IStream stream);
<System.Runtime.InteropServices.DllImport("shlwapi", CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _ comdlg3223: PrintDlg
Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _ 24: PrintDlgEx
Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1), System.Runtime.InteropServices.ComVisible(False)> _ rapi25: CE_FIND_DATA FILETIME is now obsolet. You can use System.Runtime.InteropServices.ComTypes.FILETIME type instead. ntdsapi26: DsCrackNames The success of the name conversion request depends on where the client is bound. Clients bind to specific instances of the directory service using some variant of DsBind. If bound to a global catalog, the scope of the name mapping is the entire forest. If not bound to a global catalog, the scope of the name mapping is the domain not covered by a global catalog for that domain controller. If not bound to a global catalog and a name is not found, but the input name unambiguously identifies its domain and this domain is in the forest, then the return data identifies the DNS domain name for the domain of interest. Clients are expected to use this data to bind to the correct domain controller or global catalog and call DsCrackNames again with the new bind handle.
using System.Runtime.InteropServices;
// eg: www/www.microsoft.com@example.com - generalized service principal
DS_SERVICE_PRINCIPAL_NAME = 10, System.DirectoryServices.ActiveDirectory.
using System.Runtime.InteropServices; 28: DsUnBind odbc3229: SQLAllocStmt
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _
Private Shared Function SQLAllocStmt(ByVal connectionHandle As IntPtr, <Runtime.InteropServices.Out()> _ 30: SQLConnect
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _ 31: SQLDriverConnect
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _
<Runtime.InteropServices.Out()> ByRef pbcConnStrOut As Short, ByVal fDriverCompletion As Short) As Short 32: SQLExecDirect
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _ 33: SQLFetch
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _ 34: SQLFreeStmt
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _ 35: SQLGetData
<Runtime.InteropServices.DllImport("odbc32.dll")> _ 36: SQLMoreResults
<Runtime.InteropServices.DllImport("odbc32.dll", CharSet:=Runtime.InteropServices.CharSet.Unicode)> _ Enums37: ADDRESS_FAMILIES
/// Native ATM Services [value = 22].
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; 39: DEVICE_TYPE
FILE_DEVICE_POINT_OF_SERVICE = 0x54,
FILE_DEVICE_POINT_OF_SERVICE = &H54 40: DOT11_BSS_TYPE 41: DS_NAME_FORMAT
// eg: www/www.microsoft.com@example.com - generalized service principal
DS_SERVICE_PRINCIPAL_NAME = 10, 42: FileAttributes
/// The file or directory is not to be indexed by the content indexing service.
''' The file or directory is not to be indexed by the content indexing service. 43: HRESULT
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential,Pack=4)]
return System.Runtime.InteropServices.Marshal.GetExceptionForHR(hr);
///Unable to initialize RPC services
[Description("Unable to initialize RPC services")]
///The OLE service mutex already exists
[Description("The OLE service mutex already exists")]
///The OLE service file mapping already exists
[Description("The OLE service file mapping already exists")]
///Unable to map view of file for OLE service
[Description("Unable to map view of file for OLE service")]
///Failure attempting to launch OLE service
[Description("Failure attempting to launch OLE service")]
///Use of Ole1 services requiring DDE windows is disabled
[Description("Use of Ole1 services requiring DDE windows is disabled")]
///The service providing this server could not be started.
[Description("The service providing this server could not be started.")]
public const int CO_E_START_SERVICE_FAILURE = unchecked((int)0x8000401C);
///The Task Scheduler Service is not installed on this computer.
[Description("The Task Scheduler Service is not installed on this computer.")]
public const int SCHED_E_SERVICE_NOT_INSTALLED = unchecked((int)0x8004130C);
///Task Scheduler security services are available only on Windows NT.
[Description("Task Scheduler security services are available only on Windows NT.")]
public const int SCHED_E_NO_SECURITY_SERVICES = unchecked((int)0x80041312);
///The Task Scheduler Service is not running.
[Description("The Task Scheduler Service is not running.")]
public const int SCHED_E_SERVICE_NOT_RUNNING = unchecked((int)0x80041315);
///OLE service could not bind object
[Description("OLE service could not bind object")]
///RPC communication failed with OLE service
[Description("RPC communication failed with OLE service")]
///OLE service could not communicate with the object server
[Description("OLE service could not communicate with the object server")]
///Object server is stopping when OLE service contacts it
[Description("Object server is stopping when OLE service contacts it")]
///The security context could not be established due to a failure in the requested quality of service (e.g. mutual authentication or delegation).
[Description("The security context could not be established due to a failure in the requested quality of service (e.g. mutual authentication or delegation).")]
///The KDC was unable to generate a referral for the service requested.
[Description("The KDC was unable to generate a referral for the service requested.")]
///The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user.
[Description("The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user.")]
///Certificate service has been suspended for a database restore operation.
[Description("Certificate service has been suspended for a database restore operation.")]
///The contacted domain controller cannot support signed LDAP traffic. Update the domain controller or configure Certificate Services to use SSL for Active Directory access.
[Description("The contacted domain controller cannot support signed LDAP traffic. Update the domain controller or configure Certificate Services to use SSL for Active Directory access.")]
///A service installation section in this INF is invalid.
[Description("A service installation section in this INF is invalid.")]
public const int SPAPI_E_BAD_SERVICE_INSTALLSECT = unchecked((int)0x800F0217);
public const int SPAPI_E_NO_ASSOCIATED_SERVICE = unchecked((int)0x800F0219);
///The Plug and Play service is not available on the remote machine.
[Description("The Plug and Play service is not available on the remote machine.")]
public const int SPAPI_E_NO_CONFIGMGR_SERVICES = unchecked((int)0x800F0223);
public const int SCARD_E_NO_SERVICE = unchecked((int)0x8010001D);
public const int SCARD_E_SERVICE_STOPPED = unchecked((int)0x8010001E);
///The service is not installed
[Description("The service is not installed")]
public const int COMADMIN_E_SERVICENOTINSTALLED = unchecked((int)0x80110436);
public const int COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE = unchecked((int)0x80110602);
///COM+ applications that run as NT service may not be pooled or recycled
[Description("COM+ applications that run as NT service may not be pooled or recycled")]
///Applications running as NT services may not be recycled.
[Description("Applications running as NT services may not be recycled.")]
public const int COMADMIN_E_CANTRECYCLESERVICEAPPS = unchecked((int)0x80110811);
///Library applications may not be NT services.
[Description("Library applications may not be NT services.")]
public const int COMADMIN_E_CANTMAKEINPROCSERVICE = unchecked((int)0x80110814);
<System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack := 4)> _
Return System.Runtime.InteropServices.Marshal.GetExceptionForHR(hr)
'''Unable to initialize RPC services
<Description("Unable to initialize RPC services")> _
'''The OLE service mutex already exists
<Description("The OLE service mutex already exists")> _
'''The OLE service file mapping already exists
<Description("The OLE service file mapping already exists")> _
'''Unable to map view of file for OLE service
<Description("Unable to map view of file for OLE service")> _
'''Failure attempting to launch OLE service
<Description("Failure attempting to launch OLE service")> _
'''Use of Ole1 services requiring DDE windows is disabled
<Description("Use of Ole1 services requiring DDE windows is disabled")> _
'''The service providing this server could not be started.
<Description("The service providing this server could not be started.")> _
Public Const CO_E_START_SERVICE_FAILURE As Integer = CInt(&H8000401cUI)
'''The Task Scheduler Service is not installed on this computer.
<Description("The Task Scheduler Service is not installed on this computer.")> _
Public Const SCHED_E_SERVICE_NOT_INSTALLED As Integer = CInt(&H8004130cUI)
'''Task Scheduler security services are available only on Windows NT.
<Description("Task Scheduler security services are available only on Windows NT.")> _
Public Const SCHED_E_NO_SECURITY_SERVICES As Integer = CInt(&H80041312UI)
'''The Task Scheduler Service is not running.
<Description("The Task Scheduler Service is not running.")> _
Public Const SCHED_E_SERVICE_NOT_RUNNING As Integer = CInt(&H80041315UI)
'''OLE service could not bind object
<Description("OLE service could not bind object")> _
'''RPC communication failed with OLE service
<Description("RPC communication failed with OLE service")> _
'''OLE service could not communicate with the object server
<Description("OLE service could not communicate with the object server")> _
'''Object server is stopping when OLE service contacts it
<Description("Object server is stopping when OLE service contacts it")> _
'''The security context could not be established due to a failure in the requested quality of service (e.g. mutual authentication or delegation).
<Description("The security context could not be established due to a failure in the requested quality of service (e.g. mutual authentication or delegation).")> _
'''The KDC was unable to generate a referral for the service requested.
<Description("The KDC was unable to generate a referral for the service requested.")> _
'''The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user.
<Description("The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user.")> _
'''Certificate service has been suspended for a database restore operation.
<Description("Certificate service has been suspended for a database restore operation.")> _
'''The contacted domain controller cannot support signed LDAP traffic. Update the domain controller or configure Certificate Services to use SSL for Active Directory access.
<Description("The contacted domain controller cannot support signed LDAP traffic. Update the domain controller or configure Certificate Services to use SSL for Active Directory access.")> _
'''A service installation section in this INF is invalid.
<Description("A service installation section in this INF is invalid.")> _
Public Const SPAPI_E_BAD_SERVICE_INSTALLSECT As Integer = CInt(&H800f0217UI)
Public Const SPAPI_E_NO_ASSOCIATED_SERVICE As Integer = CInt(&H800f0219UI)
'''The Plug and Play service is not available on the remote machine.
<Description("The Plug and Play service is not available on the remote machine.")> _
Public Const SPAPI_E_NO_CONFIGMGR_SERVICES As Integer = CInt(&H800f0223UI)
Public Const SCARD_E_NO_SERVICE As Integer = CInt(&H8010001dUI)
Public Const SCARD_E_SERVICE_STOPPED As Integer = CInt(&H8010001eUI)
'''The service is not installed
<Description("The service is not installed")> _
Public Const COMADMIN_E_SERVICENOTINSTALLED As Integer = CInt(&H80110436UI)
Public Const COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE As Integer = CInt(&H80110602UI)
'''COM+ applications that run as NT service may not be pooled or recycled
<Description("COM+ applications that run as NT service may not be pooled or recycled")> _
'''Applications running as NT services may not be recycled.
<Description("Applications running as NT services may not be recycled.")> _
Public Const COMADMIN_E_CANTRECYCLESERVICEAPPS As Integer = CInt(&H80110811UI)
'''Library applications may not be NT services.
<Description("Library applications may not be NT services.")> _
Public Const COMADMIN_E_CANTMAKEINPROCSERVICE As Integer = CInt(&H80110814UI)
enum HTTP_SERVICE_CONFIG_ID
HttpServiceConfigIPListenList = 0,
HttpServiceConfigSSLCertInfo,
HttpServiceConfigUrlAclInfo,
HttpServiceConfigMax
Enum HTTP_SERVICE_CONFIG_ID
HttpServiceConfigIPListenList = 0
HttpServiceConfigSSLCertInfo = 1
HttpServiceConfigUrlAclInfo = 2
HttpServiceConfigMax = 3
public enum HTTP_SERVICE_CONFIG_QUERY_TYPE
HttpServiceConfigQueryExact = 0,
HttpServiceConfigQueryNext,
HttpServiceConfigQueryMax
Enum HTTP_SERVICE_CONFIG_QUERY_TYPE 46: PARTITION_TYPE
PARTITION_FAT32_XINT13 = 0x0C, // FAT32 using extended int13 services
PARTITION_XINT13 = 0x0E, // Win95 partition using extended int13 services
PARTITION_XINT13_EXTENDED = 0x0F, // Same as type 5 but uses extended int13 services
PARTITION_FAT32_XINT13 = &Hc ' FAT32 using extended int13 services
PARTITION_XINT13 = &He ' Win95 partition using extended int13 services
PARTITION_XINT13_EXTENDED = &Hf ' Same as type 5 but uses extended int13 services
/// Indicates whether the printer is published in the directory service. 48: RasError
/// <summary>711. The Remote Access Service Manager could not start. Additional information is provided in the event log. </summary>
/// <summary>716. The Remote Access Service IP configuration is unusable. </summary>
/// <summary>717. No IP addresses are available in the static pool of Remote Access Service IP addresses. </summary>
/// <summary>796. The Service Type RADIUS attribute for this user is neither Framed nor Callback Framed. </summary>
ERROR_UNKNOWN_SERVICE_TYPE,
/// <summary>815. The broadband network connection could not be established on your computer because the remote server is not responding. This could be caused by an invalid value for the 'Service Name' field for this connection. </summary>
/// <summary>816. A feature or setting you have tried to enable is no longer supported by the remote access service. </summary>
/// <summary>818. The Network Access Protection (NAP) enforcement client could not create system resources for remote access connections. Some network services or resources might not be available. </summary>
/// <summary>819. The Network Access Protection Agent (NAP Agent) service has been disabled or is not installed on this computer. Some network services or resources might not be available. </summary>
/// <summary>820. The Network Access Protection (NAP) enforcement client failed to register with the Network Access Protection Agent (NAP Agent) service. Some network services or resources might not be available. </summary>
/// <summary>822. The Network Access Protection (NAP) enforcement client did not respond. Some network services or resources might not be available. </summary>
/// <summary>827. The L2TP/IPsec connection cannot be completed because the IKE and AuthIP IPSec Keying Modules service and/or the Base Filtering Engine service is not running. These services are required to establish an L2TP/IPSec connection. </summary>
ERROR_IPSEC_SERVICE_STOPPED,
ERROR_RASMAN_SERVICE_STOPPED, 49: RM_REBOOT_REASON
/// A critical service has been detected.
RmRebootReasonCriticalService = 0x8, 50: SCM_ACCESS The Windows security model enables you to control access to the service control manager (SCM) and service objects. The following provides detailed information regarding the Access Rights for the Service Control Manager.
SC_MANAGER_CREATE_SERVICE = 0x00002,
SC_MANAGER_ENUMERATE_SERVICE = 0x00004,
SC_MANAGER_CREATE_SERVICE |
SC_MANAGER_ENUMERATE_SERVICE |
SC_MANAGER_CREATE_SERVICE = &H2
SC_MANAGER_ENUMERATE_SERVICE = &H4
SC_MANAGER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED And SC_MANAGER_CONNECT And SC_MANAGER_CREATE_SERVICE And SC_MANAGER_ENUMERATE_SERVICE And SC_MANAGER_LOCK And SC_MANAGER_QUERY_LOCK_STATUS And SC_MANAGER_MODIFY_BOOT_CONFIG 51: SC_ACTION_TYPE
RestartService = 1,
RestartService = 1
public enum ServiceControlAccessRights : int
CreateService = 0x00002,
EnumerateService = 0x00004,
Public Enum ServiceControlAccessRights As UInteger
CreateService = &H2
EnumerateService = &H4 54: SERVICE_ACCESS
public enum SERVICE_ACCESS : uint
SERVICE_QUERY_CONFIG = 0x00001,
SERVICE_CHANGE_CONFIG = 0x00002,
SERVICE_QUERY_STATUS = 0x00004,
SERVICE_ENUMERATE_DEPENDENTS = 0x00008,
SERVICE_START = 0x00010,
SERVICE_STOP = 0x00020,
SERVICE_PAUSE_CONTINUE = 0x00040,
SERVICE_INTERROGATE = 0x00080,
SERVICE_USER_DEFINED_CONTROL = 0x00100,
SERVICE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED |
SERVICE_QUERY_CONFIG |
SERVICE_CHANGE_CONFIG |
SERVICE_QUERY_STATUS |
SERVICE_ENUMERATE_DEPENDENTS |
SERVICE_START |
SERVICE_STOP |
SERVICE_PAUSE_CONTINUE |
SERVICE_INTERROGATE |
SERVICE_USER_DEFINED_CONTROL)
Public Enum SERVICE_ACCESS As Integer
SERVICE_QUERY_CONFIG = &H1
SERVICE_CHANGE_CONFIG = &H2
SERVICE_QUERY_STATUS = &H4
SERVICE_ENUMERATE_DEPENDENTS = &H8
SERVICE_START = &H10
SERVICE_STOP = &H20
SERVICE_PAUSE_CONTINUE = &H40
SERVICE_INTERROGATE = &H80
SERVICE_USER_DEFINED_CONTROL = &H100
SERVICE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED Or _
SERVICE_QUERY_CONFIG Or _
SERVICE_CHANGE_CONFIG Or _
SERVICE_QUERY_STATUS Or _
SERVICE_ENUMERATE_DEPENDENTS Or _
SERVICE_START Or SERVICE_STOP Or _
SERVICE_PAUSE_CONTINUE Or _
SERVICE_INTERROGATE Or _
SERVICE_USER_DEFINED_CONTROL see OpenService 55: SERVICE_STATE
public enum SERVICE_STATES : int
SERVICE_ACTIVE = 0x00000001,
SERVICE_INACTIVE = 0x00000002,
SERVICE_STATE_ALL = SERVICE_ACTIVE | SERVICE_INACTIVE Public Enum SERVICE_STATES : int32
SERVICE_ACTIVE = &H1
SERVICE_INACTIVE = &H2
SERVICE_STATE_ALL = SERVICE_ACTIVE Or SERVICE_INACTIVE 56: SERVICE_STATES
public enum SERVICE_STATES : int
SERVICE_ACTIVE = 0x00000001,
SERVICE_INACTIVE = 0x00000002,
SERVICE_STATE_ALL = SERVICE_ACTIVE | SERVICE_INACTIVE <Flags()> Public Enum SERVICE_STATES : int32
SERVICE_ACTIVE = &H1
SERVICE_INACTIVE = &H2
SERVICE_STATE_ALL = SERVICE_ACTIVE Or SERVICE_INACTIVE 57: SERVICE_TYPES
enum SERVICE_TYPES : int
SERVICE_KERNEL_DRIVER = 0x00000001,
SERVICE_FILE_SYSTEM_DRIVER = 0x00000002,
SERVICE_WIN32_OWN_PROCESS = 0x00000010,
SERVICE_WIN32_SHARE_PROCESS = 0x00000020,
SERVICE_INTERACTIVE_PROCESS = 0x00000100
<Flags()> Public Enum SERVICE_TYPES : int32
SERVICE_KERNEL_DRIVER = &H1
SERVICE_FILE_SYSTEM_DRIVER = &H2
SERVICE_WIN32_OWN_PROCESS = &H10
SERVICE_WIN32_SHARE_PROCESS = &H20
SERVICE_INTERACTIVE_PROCESS = &H100 58: SE_OBJECT_TYPE
SE_SERVICE,
SE_SERVICE 59: ShutdownReason
MinorServicePack = 0x00000010,
MinorServicePackUninstall = 0x00000016,
MinorServicePack = &H10
MinorServicePackUninstall = &H16 60: SPDRP
/// Service (R/W)
SPDRP_SERVICE = 0x00000004, Cut off search results after 60. Please refine your search. |