Desktop Functions: Smart Device Functions:
|
Search Results for "Run" in [All]Structures
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices
Imports System.Runtime.InteropServices 3: CERT_INFO
public CRYPT_OBJID_BLOB IssuerUniqueId; 4: CWPSTRUCT
<System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _ 5: DCB
using System.Runtime.InteropServices; 6: DEVMODE
[System.Runtime.InteropServices.FieldOffset(0)]
[System.Runtime.InteropServices.FieldOffset(32)]
[System.Runtime.InteropServices.FieldOffset(34)]
[System.Runtime.InteropServices.FieldOffset(36)]
[System.Runtime.InteropServices.FieldOffset(38)]
[System.Runtime.InteropServices.FieldOffset(40)]
[System.Runtime.InteropServices.FieldOffset(44)]
[System.Runtime.InteropServices.FieldOffset(46)]
[System.Runtime.InteropServices.FieldOffset(48)]
[System.Runtime.InteropServices.FieldOffset(50)]
[System.Runtime.InteropServices.FieldOffset(52)]
[System.Runtime.InteropServices.FieldOffset(54)]
[System.Runtime.InteropServices.FieldOffset(56)]
[System.Runtime.InteropServices.FieldOffset(58)]
[System.Runtime.InteropServices.FieldOffset(44)]
[System.Runtime.InteropServices.FieldOffset(52)]
[System.Runtime.InteropServices.FieldOffset(56)]
[System.Runtime.InteropServices.FieldOffset(60)]
[System.Runtime.InteropServices.FieldOffset(62)]
[System.Runtime.InteropServices.FieldOffset(64)]
[System.Runtime.InteropServices.FieldOffset(66)]
[System.Runtime.InteropServices.FieldOffset(68)]
[System.Runtime.InteropServices.FieldOffset(70)]
[System.Runtime.InteropServices.FieldOffset(102)]
[System.Runtime.InteropServices.FieldOffset(104)]
[System.Runtime.InteropServices.FieldOffset(108)]
[System.Runtime.InteropServices.FieldOffset(112)]
[System.Runtime.InteropServices.FieldOffset(116)]
[System.Runtime.InteropServices.FieldOffset(116)]
[System.Runtime.InteropServices.FieldOffset(120)]
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices
<System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime;
public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime;
public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime;
<Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, CharSet:=Runtime.InteropServices.CharSet.Auto)>
Public ftCreationTime As System.Runtime.InteropServices.ComTypes.FILETIME
Public ftLastAccessTime As System.Runtime.InteropServices.ComTypes.FILETIME
Public ftLastWriteTime As System.Runtime.InteropServices.ComTypes.FILETIME
<Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=260)> 10: FILETIME [System.Runtime.InteropServices.FILETIME] (obsolete), or [System.Runtime.InteropServices.ComTypes.FILETIME] in the .NET Framework 2.0. There is no reason not to use [System.Runtime.InteropServices.ComTypes.FILETIME], but there still is a need for conversion to [DateTime]: * Note that System.Runtime.InteropServices.FILETIME is now obsolete. Changed to use System.Runtime.InteropServices.ComTypes.FILETIME instead. 11: FORMATETC
// handle with the GMEM_SHARE flag. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
// The storage medium is a disk file identified by a path. If the STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
// ISequentialStream::Read to read the data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
// If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
// If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
// to access the metafile's data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
// The storage medium is an enhanced metafile. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' handle with the GMEM_SHARE flag. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' The storage medium is a disk file identified by a path. If the STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' ISequentialStream::Read to read the data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' to access the metafile's data. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
' The storage medium is an enhanced metafile. If the System.Runtime.InteropServices.ComTypes.STGMEDIUMSystem.Runtime.InteropServices.ComTypes.STGMEDIUM.pUnkForRelease
RunFromSwapIfInRemovableMedia = &H400
RunFromSwapIfInNetworkMedia = &H800
IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12,
public IMAGE_DATA_DIRECTORY CLRRuntimeHeader;
public IMAGE_DATA_DIRECTORY CLRRuntimeHeader;
''' runtime library code that calls the aforementioned functions. This field can
''' run under Windows 9x or Windows Me, the minimum alignment size is a page (4KB).
''' IMAGE_SUBSYSTEM_WINDOWS_CUI // Run as a console mode application
''' // When run, the OS creates a console
' or DllMain, rather, it points to runtime library code that calls the aforementioned functions.
' executables to run under Windows 9x or Windows Me, the minimum alignment size is a page (4KB).
' IMAGE_SUBSYSTEM_WINDOWS_CUI (Run as a console mode application. When run, the OS creates a
' or DllMain, rather, it points to runtime library code that calls the aforementioned functions.
' executables to run under Windows 9x or Windows Me, the minimum alignment size is a page (4KB).
' IMAGE_SUBSYSTEM_WINDOWS_CUI (Run as a console mode application. When run, the OS creates a
public IMAGE_DATA_DIRECTORY CLRRuntimeHeader;
IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12, 15: LOGFONT The .NET Framework class Font, has a method, Font::FromLogfont that takes an Object reference as it's method parameter. You must define a managed LOGFONT class using the same format as the C# signature above. When using the StructLayout attribute on the class definition, you must set the CharSet property to Auto (the default is Ansi, which will not work correctly). The only difficulty encountered is passing the string value (the designated Font Face Name) to the FromLogfont method; apparently, this must have the attribute: [MarshalAs(UnmanagedType::ByValTStr)] enum value for the method to work correctly. Then, when instantiating a new Font in your managed application, you must cast the LOGFONT class (with appropriate member values assigned) to a System::Object for the function to work without generating a runtime exception. 16: MEMORYSTATUS
/// approximately 3 GB for 32-bit processes that are large address aware running 17: MENUINFO mi.cbSize = System.Runtime.InteropServicesÂ.Marshal.SizeOf(typeof(MENUINFÂO)); 18: NOTIFYICONDATA
using System.Runtime.InteropServices
public int otmsCharSlopeRun;
Public otmsCharSlopeRun As Int32 20: PRINTDLG
[System.Runtime.InteropServices.ComVisible(false)] 21: RAS_STATS
public int dwHardwareOverrunErr;
public int dwBufferOverrunErr;
Public dwBufferOverrunErr As Integer
Public dwHardwareOverrunErr As Integer 22: RAWINPUTKEYBOARD
<System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _ 23: RECT Imports System.Runtime.InteropServices
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
Application.Run(new Form1()); 26: SERVICE_STATUS
SERVICE_RUNNING = 0x00000004, 27: SetServiceStatus After your worker thread(s) start and are your service is running, call (before OnStart ends):
myServiceStatus.currentState = (int)State.SERVICE_RUNNING;
SERVICE_RUNNING = 0x00000004, 28: SHFILEOPSTRUCT Under x64, the SHFILEOPSTRUCT must be declared without the Pack = 1 parameter, or it will fail. This is a real pain if you want your code to be platform independent, as you have to declare two separate structures, one with Pack = 1, and one without. You then have to declare two different SHFileOperation calls, one for each of the structures. Then you have to decide which one to call depending on whether you are running on 32 or 64 bit. 29: SHQUERYRBINFO
using System.Runtime.InteropServices; 30: SP_DRVINFO_DATA
public System.Runtime.InteropServices.ComTypes.FILETIME DriverDate; 31: SP_DRVINFO_DATA
public System.Runtime.InteropServices.ComTypes.FILETIME DriverDate; 32: StartDocPrinter
using System.Runtime.InteropServices; // for CharSet
<System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _
[System.Runtime.InteropServices.DllImport("Kernel32.dll", SetLastError = true)]
[System.Runtime.InteropServices.DllImport("Kernel32.dll", SetLastError = true)]
[System.Runtime.InteropServices.DllImport("Kernel32.dll", SetLastError = true)] 35: TITLEBARINFO
pti.cbSize = (uint)System.Runtime.InteropServices.Marshal.SizeOf(pti); 36: TOOLINFO
<System.Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential)> _
<System.Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPTStr)> _ 37: TRACKMOUSEEVENT <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _ 38: USN_RECORD
DataTruncation = 0x00000004,
NamedDataTruncation = 0x00000040, 39: WAVEOUTCAPS
<Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential, CharSet:=Runtime.InteropServices.CharSet.Auto)> _
<System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=32)> _ 40: WIN32_FIND_DATA
public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime;
public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime;
public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime;
Public ftCreationTime As System.Runtime.InteropServices.ComTypes.FILETIME
Public ftLastAccessTime As System.Runtime.InteropServices.ComTypes.FILETIME
Public ftLastWriteTime As System.Runtime.InteropServices.ComTypes.FILETIME FILETIME is in System.Runtime.InteropServices. The ComTypes namespace is introduced with .net 2.0 I actually discovered a problem using the System.Runtime.InteropServices.ComTypes.FILETIME structure for the ftLastAccessTime and ftLastWriteTime members. The FILETIME is defined by the .NET framework as a high and low component, both of type int. This worked fine in almost all cases.
'requires: Imports System.Runtime.InteropServices
System.Runtime.InteropServices.ComTypes.FILETIME ConnectTime;
System.Runtime.InteropServices.ComTypes.FILETIME DisconnectTime;
System.Runtime.InteropServices.ComTypes.FILETIME LastInputTime;
System.Runtime.InteropServices.ComTypes.FILETIME LoginTime;
System.Runtime.InteropServices.ComTypes.FILETIME CurrentTime; To people who just run into this page : crypt32
using System.Runtime.InteropServices; 44: CryptProtectData
CharSet=System.Runtime.InteropServices.CharSet.Auto)
<DllImport("Crypt32.dll", SetLastError:=True, CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _
CharSet=System.Runtime.InteropServices.CharSet.Auto)
<DllImport("Crypt32.dll", SetLastError:=True, CharSet:=System.Runtime.InteropServices.CharSet.Auto)> _ 46: VBQWM5YQK3TMPXBQ3WC1IQRLET9WBTP10BR7IKNKW77BR2RTG4TFHXWTTTANWRMTIZEC10EESJJ59T0K561KV7HHMZYUR1ABCQ1D ��Ȩ�m7~Cs�"�r�@����tZ���Kb��9���t!$��Xin�f�������\���a~ɫ�З�ˆ19}�6�v"X�htf?�}+<��B��z��f�ϴ�걢��l�rUNV��3�Al$",�$��ޢ��62�?���Y��Wy0H�[I_�<�5���`e����g?����HA6�o Constants47: NERR_
/// <summary> 2161 - The spooler is not running. </summary>
/// <summary> 2212 - An error occurred while loading or running the logon script. </summary>
/// <summary> 2289 - The broadcast message was truncated. </summary>
public const int TruncatedBroadcast = 2289;
/// <summary> 2317 - The data returned from a remote administration command has been truncated to 64K. </summary>
/// <summary> 2385 - The Run server you requested is paused. </summary>
public const int RunSrvPaused = 2385;
/// <summary> 2389 - An error occurred when communicating with a Run server. </summary>
public const int ErrCommRunSrv = 2389;
/// <summary> 2451 - This operation is not permitted when the Netlogon service is running. </summary>
public const int BrowserConfiguredToNotRun = 2550; 48: O_
const int _O_TRUNC = 0x0200; /* open and truncate */
const int O_TRUNC = _O_TRUNC; 49: PROPERTYKEY
// https://subversion.assembla.com/svn/portaudio/portaudio/trunk/src/hostapi/wasapi/mingw-include/propkey.h
public static PropertyKey PKEY_DeviceDisplay_UnpairUninstall = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000062); // VT_BOOL
using System.Runtime.InteropServices; 51: WINBASE
private const uint TRUNCATE_EXISTING = 5; 52: WINERROR It is documented that you should NOT use the pinvoke GetLastError() due to the fact that the runtime
using System.Runtime;
using System.Runtime.InteropServices;
/// The %1 application cannot be run in Win32 mode.
/// The operating system cannot run %1.
/// The operating system cannot run %1.
/// The operating system cannot run %1.
/// The operating system cannot run %1.
/// Cannot run %1 in Win32 mode.
/// The operating system cannot run %1.
/// The operating system cannot run %1.
/// The operating system cannot run %1.
/// The operating system cannot run this application program.
/// The operating system is not presently configured to run this application.
/// The operating system cannot run %1.
/// The operating system cannot run this application program.
/// The operating system cannot run %1.
/// The operating system cannot run %1.
/// A stop control has been sent to a service that other running services are dependent on.
public const int ERROR_DEPENDENT_SERVICES_RUNNING = 1051;
/// An instance of the service is already running.
public const int ERROR_SERVICE_ALREADY_RUNNING = 1056;
/// The system is currently running with the last-known-good configuration.
public const int ERROR_ALREADY_RUNNING_LKG = 1074;
/// The account specified for this service is different from the account specified for other services running in the same process.
/// This service runs in the same process as the service control manager.
/// The executable program that this service is configured to run in does not implement the service.
/// One of the library files needed to run this application is damaged.
/// One of the library files needed to run this application cannot be found.
/// The tracking (workstation) service is not running.
public const int ERROR_STACK_BUFFER_OVERRUN = 1282;
/// The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed. Contact your support personnel for assistance.
public const int ERROR_INSTALL_ALREADY_RUNNING = 1618;
/// All cluster nodes must be running to perform this operation.
/// The cluster resource cannot be brought online. The owner node cannot run this resource.
/// The Task Scheduler service must be configured to run in the System account to function properly. Individual tasks may be configured to run in other accounts.
public const int ERROR_CTX_SHADOW_NOT_RUNNING = 7057;
/// Schema allocation failed. Please check if the machine is running low on memory.
/// For security reasons, the operation must be run on the destination DC.
public const int ERROR_DS_MUST_BE_RUN_ON_DST_DC = 8558;
/// Could not access a partition of the Active Directory located on a remote server. Make sure at least one server is running for the partition in question.
public const int WARNING_IPSEC_MM_POLICY_PRUNED = 13024;
public const int WARNING_IPSEC_QM_POLICY_PRUNED = 13025;
/// The class is configured to run as a security id different from the caller
/// A RunAs specification must be <domain name>\<user name> or simply <user name>
public const int CO_E_RUNAS_SYNTAX = (int)(0x80004017 - 0x100000000);
public const int CO_E_RUNAS_CREATEPROCESS_FAILURE = (int)(0x80004019 - 0x100000000);
public const int CO_E_RUNAS_LOGON_FAILURE = (int)(0x8000401A - 0x100000000);
/// The common language runtime is not available
/// Need to run the object to perform this operation
public const int OLE_E_NOTRUNNING = (int)(0x80040005 - 0x100000000);
/// Message is too long; some of it had to be truncated before displaying
/// Application cannot be run more than once
/// Message is too long; some of it had to be truncated before displaying
public const int INPLACE_S_TRUNCATED = 0x000401A0;
/// Moniker is already registered in running object table
/// The task is ready to run at its next scheduled time.
/// The task is currently running.
public const int SCHED_S_TASK_RUNNING = 0x00041301;
/// The task will not run at the scheduled times because it has been disabled.
/// The task has not yet run.
public const int SCHED_S_TASK_HAS_NOT_RUN = 0x00041303;
/// There are no more runs scheduled for this task.
public const int SCHED_S_TASK_NO_MORE_RUNS = 0x00041304;
/// One or more of the properties that are needed to run this task on a schedule have not been set.
/// The last run of the task was terminated by the user.
/// Event triggers don't have set run times.
/// One or more of the properties that are needed to run this task have not been set.
/// There is no running instance of the task to terminate.
public const int SCHED_E_TASK_NOT_RUNNING = (int)(0x8004130B - 0x100000000);
/// The task has been configured with an unsupported combination of account settings and run time options.
/// The Task Scheduler Service is not running.
public const int SCHED_E_SERVICE_NOT_RUNNING = (int)(0x80041315 - 0x100000000);
/// See asn1code.h for a definition of the OSS runtime errors. The OSS
/// OSS ASN.1 Error: Output buffer is too small, the decoded data has been truncated.
/// The Smart card resource manager is not running.
/// The COM+ registry database is already running
public const int COMADMIN_E_REGDB_ALREADYRUNNING = (int)(0x80110475 - 0x100000000);
/// The specified application is not currently running
public const int COMADMIN_E_APP_NOT_RUNNING = (int)(0x8011080A - 0x100000000);
/// COM+ applications that run as NT service may not be pooled or recycled
/// Applications running as NT services may not be recycled. aygshell53: ExitWindowsEx oleaut3254: GetActiveObject 55: LoadTypeLib
Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal szFile As String, ByRef TPpTypeLib As System.Runtime.InteropServices.ComTypes.ITypeLib) As Integer In VB.Net you can substitute [System.Runtime.InteropServices.ComTypes.ITypeLib2] or [System.Runtime.InteropServices.UCOMITypeLib] for [System.Runtime.InteropServices.ComTypes.ITypeLib], defined in mscorlib.dll. Note that in v2.0 (Whidbey) of the .NET Framework, the System.Runtime.InteropServices.UCOMITypeLib interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.ITypeLib. 56: RegisterTypeLib
Declare Unicode Function RegisterTypeLib Lib "oleaut32.dll" (ByVal ptlib As System.Runtime.InteropServices.ComTypes.ITypeLib, ByVal szFullPath As String, ByVal szHelpDir As String) As Integer For the ITypeLib parameter in C#, you can use [System.Runtime.InteropServices.UCOMITypeLib], already defined in mscorlib.dll. Note that in v2.0 (Whidbey) of the .NET Framework, this interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.ITypeLib. In VB.Net you can substitute [System.Runtime.InteropServices.ComTypes.ITypeLib2] or [System.Runtime.InteropServices.UCOMITypeLib] for [System.Runtime.InteropServices.ComTypes.ITypeLib], defined in mscorlib.dll. 57: SysFreeString System.Runtime.InteropServices.Marshal.FreeBSTR http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.marshal.freebstr.aspx
Declare Unicode Function UnRegisterTypeLib Lib "oleaut32.dll" (ByRef LibID As System.Guid, ByVal nVerMajor As Short, ByVal nVerMinor As Short, ByVal lCID As Integer, ByVal tSysKind As System.Runtime.InteropServices.ComTypes.SYSKIND) As Integer In VB.Net you can substitute [System.Runtime.InteropServices.SYSKIND] for [System.Runtime.InteropServices.ComTypes.SYSKIND], defined in mscorlib.dll. Note that in v2.0 (Whidbey) of the .NET Framework, the System.Runtime.InteropServices.SYSKIND interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.SYSKIND. comdlg3259: 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)> _ 60: 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)> _ Cut off search results after 60. Please refine your search. |