Click or drag to resize

WindowsApi Class

Defines common Windows API constants, enumerations, structures and functions.
Inheritance Hierarchy
SystemObject
  GSF.InteropWindowsApi

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static class WindowsApi
View Source

The WindowsApi type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAdjustTokenPrivileges Win32 AdjustTokenPrivileges function.
Public methodStatic memberChangeServiceConfig2(IntPtr, Int32, WindowsApiSERVICE_DESCRIPTION) Win32 ChangeServiceConfig2 function.
Public methodStatic memberChangeServiceConfig2(IntPtr, Int32, WindowsApiSERVICE_FAILURE_ACTIONS_FLAG) Win32 ChangeServiceConfig2 function.
Public methodStatic memberChangeServiceConfig2(IntPtr, Int32, IntPtr) Win32 ChangeServiceConfig2 function.
Public methodStatic memberCloseHandle Win32 CloseHandle function.
Public methodStatic memberCloseServiceHandle Win32 CloseServiceHandle function.
Public methodStatic memberCreateProcessWithTokenW Win32 CreateProcessWithTokenW function.
Public methodStatic memberCryptFindOIDInfo Win32 CryptFindOIDInfo function.
Public methodStatic memberCryptRegisterOIDInfo Win32 CryptRegisterOIDInfo function.
Public methodStatic memberCryptUnregisterOIDInfo Win32 CryptUnregisterOIDInfo function.
Public methodStatic memberDuplicateToken Win32 DuplicateToken function.
Public methodStatic memberDuplicateTokenEx(IntPtr, UInt32, WindowsApiSECURITY_ATTRIBUTES, WindowsApiSECURITY_IMPERSONATION_LEVEL, WindowsApiTOKEN_TYPE, IntPtr) Win32 DuplicateTokenEx function.
Public methodStatic memberDuplicateTokenEx(IntPtr, UInt32, IntPtr, WindowsApiSECURITY_IMPERSONATION_LEVEL, WindowsApiTOKEN_TYPE, IntPtr) Win32 DuplicateTokenEx function.
Public methodStatic memberFlushFileBuffers Flushes the buffers of a specified file and causes all buffered data to be written to a file.
Public methodStatic memberFormatMessage Win32 FormatMessage function.
Public methodStatic memberFreeSid Win32 FreeSid function.
Public methodStatic memberGetCurrentProcess Win32 GetCurrentProcess function.
Public methodStatic memberGetErrorMessage Formats and returns a .NET string containing the Windows API level error message corresponding to the specified error code.
Public methodStatic memberGetLastError Win32 GetLastError function.
Public methodStatic memberGetLastErrorMessage Formats and returns a .NET string containing the Windows API level error message from the last Win32 call.
Public methodStatic memberGetShellWindow Win32 GetShellWindow function.
Public methodStatic memberGetTokenInformation(IntPtr, WindowsApiTOKEN_INFORMATION_CLASS, WindowsApiTOKEN_ELEVATION_TYPE, UInt32, UInt32) Win32 GetTokenInformation function.
Public methodStatic memberGetTokenInformation(IntPtr, WindowsApiTOKEN_INFORMATION_CLASS, UInt32, UInt32, UInt32) Win32 GetTokenInformation function.
Public methodStatic memberGetWindowThreadProcessId Win32 GetWindowThreadProcessId function.
Public methodStatic memberGlobalMemoryStatusEx 
Public methodStatic memberInitiateSystemShutdownEx Win32 InitiateSystemShutdownEx function.
Public methodStatic memberIsWow64Process Win32 IsWow64Process function.
Public methodStatic memberLockServiceDatabase Win32 LockServiceDatabase function.
Public methodStatic memberLogonUser Win32 LogonUser function.
Public methodStatic memberLookupAccountName Win32 LookupAccountName function.
Public methodStatic memberLookupPrivilegeValue Win32 LookupPrivilegeValue function.
Public methodStatic memberLsaAddAccountRights Win32 LsaAddAccountRights function.
Public methodStatic memberLsaClose Win32 LsaClose function.
Public methodStatic memberLsaOpenPolicy Win32 LsaOpenPolicy function.
Public methodStatic memberOpenProcess Win32 OpenProcess function.
Public methodStatic memberOpenProcessToken Win32 OpenProcessToken function.
Public methodStatic memberOpenSCManager Win32 OpenSCManager function.
Public methodStatic memberOpenService Win32 OpenService function.
Public methodStatic memberUnlockServiceDatabase Win32 UnlockServiceDatabase function.
Top
Fields
 NameDescription
Public fieldStatic memberCRYPT_INSTALL_OID_INFO_BEFORE_FLAG 
Public fieldStatic memberCRYPT_OID_DISABLE_SEARCH_DS_FLAG 
Public fieldStatic memberCRYPT_OID_INFO_NAME_KEY 
Public fieldStatic memberCRYPT_OID_INFO_OID_KEY 
Public fieldStatic memberERROR_ACCESS_DENIED Access is denied.
Public fieldStatic memberLOGON32_LOGON_INTERACTIVE This logon type is intended for users who will be interactively using the computer, such as a user being logged on by a terminal server, remote shell, or similar process. This logon type has the additional expense of caching logon information for disconnected operations; therefore, it is inappropriate for some client/server applications, such as a mail server.
Public fieldStatic memberLOGON32_LOGON_NETWORK This logon type is intended for high performance servers to authenticate plaintext passwords. The LogonUserEx function does not cache credentials for this logon type.
Public fieldStatic memberLOGON32_PROVIDER_DEFAULT Use the standard logon provider for the system. The default security provider is NTLM.
Public fieldStatic memberSE_ASSIGNPRIMARYTOKEN_NAME 
Public fieldStatic memberSE_AUDIT_NAME 
Public fieldStatic memberSE_BACKUP_NAME 
Public fieldStatic memberSE_CHANGE_NOTIFY_NAME 
Public fieldStatic memberSE_CREATE_GLOBAL_NAME 
Public fieldStatic memberSE_CREATE_PAGEFILE_NAME 
Public fieldStatic memberSE_CREATE_PERMANENT_NAME 
Public fieldStatic memberSE_CREATE_SYMBOLIC_LINK_NAME 
Public fieldStatic memberSE_CREATE_TOKEN_NAME 
Public fieldStatic memberSE_DEBUG_NAME 
Public fieldStatic memberSE_ENABLE_DELEGATION_NAME 
Public fieldStatic memberSE_IMPERSONATE_NAME 
Public fieldStatic memberSE_INC_BASE_PRIORITY_NAME 
Public fieldStatic memberSE_INC_WORKING_SET_NAME 
Public fieldStatic memberSE_INCREASE_QUOTA_NAME 
Public fieldStatic memberSE_LOAD_DRIVER_NAME 
Public fieldStatic memberSE_LOCK_MEMORY_NAME 
Public fieldStatic memberSE_MACHINE_ACCOUNT_NAME 
Public fieldStatic memberSE_MANAGE_VOLUME_NAME 
Public fieldStatic memberSE_PRIVILEGE_ENABLED 
Public fieldStatic memberSE_PRIVILEGE_ENABLED_BY_DEFAULT 
Public fieldStatic memberSE_PRIVILEGE_REMOVED 
Public fieldStatic memberSE_PRIVILEGE_USED_FOR_ACCESS 
Public fieldStatic memberSE_PROF_SINGLE_PROCESS_NAME 
Public fieldStatic memberSE_RELABEL_NAME 
Public fieldStatic memberSE_REMOTE_SHUTDOWN_NAME 
Public fieldStatic memberSE_RESTORE_NAME 
Public fieldStatic memberSE_SECURITY_NAME 
Public fieldStatic memberSE_SERVICE_LOGON_NAME 
Public fieldStatic memberSE_SHUTDOWN_NAME 
Public fieldStatic memberSE_SYNC_AGENT_NAME 
Public fieldStatic memberSE_SYSTEM_ENVIRONMENT_NAME 
Public fieldStatic memberSE_SYSTEM_PROFILE_NAME 
Public fieldStatic memberSE_SYSTEMTIME_NAME 
Public fieldStatic memberSE_TAKE_OWNERSHIP_NAME 
Public fieldStatic memberSE_TCB_NAME 
Public fieldStatic memberSE_TIME_ZONE_NAME 
Public fieldStatic memberSE_TRUSTED_CREDMAN_ACCESS_NAME 
Public fieldStatic memberSE_UNDOCK_NAME 
Public fieldStatic memberSE_UNSOLICITED_INPUT_NAME 
Public fieldStatic memberSECURITY_IMPERSONATION Impersonate a client at the impersonation level.
Public fieldStatic memberSTANDARD_RIGHTS_READ 
Public fieldStatic memberSTANDARD_RIGHTS_REQUIRED 
Public fieldStatic memberTOKEN_ADJUST_DEFAULT 
Public fieldStatic memberTOKEN_ADJUST_GROUPS 
Public fieldStatic memberTOKEN_ADJUST_PRIVILEGES 
Public fieldStatic memberTOKEN_ADJUST_SESSIONID 
Public fieldStatic memberTOKEN_ALL_ACCESS 
Public fieldStatic memberTOKEN_ASSIGN_PRIMARY 
Public fieldStatic memberTOKEN_DUPLICATE 
Public fieldStatic memberTOKEN_IMPERSONATE 
Public fieldStatic memberTOKEN_QUERY 
Public fieldStatic memberTOKEN_QUERY_SOURCE 
Public fieldStatic memberTOKEN_READ 
Top
See Also