Desktop Functions: Smart Device Functions:
|
Search Results for "time" in [All]icmp1: IcmpSendEcho
static extern Int32 IcmpSendEcho(IntPtr icmpHandle, Int32 destinationAddress, IntPtr requestData, Int16 requestSize, IntPtr requestOptions, IntPtr replyBuffer, Int32 replySize, Int32 timeout);
Declare Function IcmpSendEcho Lib "icmp.dll" (icmpHandle as IntPtr, destinationAddress as Int32, requestData as IntPtr, requestSize as Int16, requestOptions as IntPtr, replyBuffer as IntPtr, replySize as Int32, timeout as Int32) As Int32
using System.Runtime.InteropServices;
public int RoundTripTime;
private static extern int IcmpSendEcho(IntPtr icmpHandle, int destinationAddress, string requestData, short requestSize, ref ICMP_OPTIONS requestOptions, ref ICMP_ECHO_REPLY replyBuffer, int replySize, int timeout);
// still not quite sure what the times are, e.g., the max time can be set at
// 5 mSec and we successfully complete the ping in 188 mSec... should timeout.
#include <time.h>
ULONG RoundTripTime;
DWORD ReplySize,DWORD Timeout);
printf("Roundtrip time to %s = %ld mSec\n", ip_addr_str,
pEchoReply->RoundTripTime); comctl32
using System.Runtime.InteropServices;
using System.Runtime.InteropServices; 4: TaskDialog This only appears to be an issue with VS2008, and it may have been fixed by the time you are reading this, so try to run the project first, and if you click on one of the 'TaskDialog' buttons and see it popup (ie you dont see an exception) then you do not need to take these steps, if you do get an exception, follow the steps below: This only appears to be an issue with VS2008, and it may have been fixed by the time you are reading this, so try to run the project first, and if you click on one of the 'TaskDialog' buttons and see it popup (ie you dont see an exception) then you do not need to take these steps, if you do get an exception, follow the steps below: fbwflibUsing a custom marshaler for this type might be possible as it is used a couple of times in this API. Using a custom marshaler for this type might be possible as it is used a couple of times in this API. crypt32
using System.Runtime.InteropServices;
revPara.pftTimeToUse = Marshal.AllocHGlobal(sizeof(long));
Marshal.StructureToPtr(DateTime.Now.ToFileTimeUtc(), revPara.pftTimeToUse, false); 10: 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)> _ Structures12: ADAPTER_STATUS
short t1_timeouts;
short ti_timeouts;
Dim t1_timeouts As Short
Dim ti_timeouts As Short
WORD t1_timeouts;
WORD ti_timeouts; 13: BITMAPFILEHEADER
using System.Runtime.InteropServices;
Imports System.Runtime.InteropServices
internal byte cTimeoutMultiplier;
public FILETIME CreationTime;
public FILETIME LastAccessTime;
public FILETIME LastWriteTime;
<FieldOffset(4)> Public ftCreationTime As Int64 ' FILETIME
<FieldOffset(12)> Public ftLastAccessTime As Int64 ' FILETIME
<FieldOffset(20)> Public ftLastWriteTime As Int64 ' FILETIME
val mutable CreationTime:FILETIME
val mutable LastAccessTime:FILETIME
val mutable LastWriteTime:FILETIME 17: CAPTUREPARMS
/// Time limit enabled flag. If this member is TRUE, streaming capture stops after the number
/// of seconds in wTimeLimit has elapsed. The default value is FALSE.
/// Time limit for capture, in seconds. This parameter is used only if fLimitEnabled is TRUE.
public System.UInt32 wTimeLimit;
/// a video source is enabled. If it is FALSE, real-time capture using an MCI device is enabled.
public System.UInt32 dwMCIStartTime;
public System.UInt32 dwMCIStopTime;
/// Number of times a frame is sampled when creating a frame based on the average sample. A typical
''' Time limit enabled flag. If this member is TRUE, streaming capture stops after the
''' number of seconds in wTimeLimit has elapsed. The default value is FALSE.
''' Time limit for capture, in seconds. This parameter is used only if fLimitEnabled is TRUE.
Public wTimeLimit As Integer
''' a video source is enabled. If it is FALSE, real-time capture using an MCI device is enabled.
Public dwMCIStartTime As Integer
Public dwMCIStopTime As Integer
''' Number of times a frame is sampled when creating a frame based on the average sample. A 18: CEOSVERSIONINFO
Imports System.Runtime.InteropServices 19: CERT_INFO
public FILETIME NotBefore;
public FILETIME NotAfter;
public IntPtr pftTimeToUse;
public uint dwUrlRetrievalTimeout;
public bool fCheckFreshnessTime;
public uint dwFreshnessTime;
public IntPtr pftCurrentTime;
public bool fHasFreshnessTime;
public uint dwFreshnessTime; 22: COMMCONFIG
const UInt32 PCF_INTTIMEOUTS = 0x0080; // Interval time-outs supported
const UInt32 PCF_TOTALTIMEOUTS = 0x0040; // Total (elapsed) time-outs supported 23: COMMTIMEOUTS
struct COMMTIMEOUTS {
public UInt32 ReadIntervalTimeout;
public UInt32 ReadTotalTimeoutMultiplier;
public UInt32 ReadTotalTimeoutConstant;
public UInt32 WriteTotalTimeoutMultiplier;
public UInt32 WriteTotalTimeoutConstant;
Private Type COMMTIMEOUTS
ReadIntervalTimeout As Long
ReadTotalTimeoutMultiplier As Long
ReadTotalTimeoutConstant As Long
WriteTotalTimeoutMultiplier As Long
WriteTotalTimeoutConstant As Long
Public Structure COMMTIMEOUTS
Public ReadIntervalTimeout As Int32
Public ReadTotalTimeoutMultiplier As Int32
Public ReadTotalTimeoutConstant As Int32
Public WriteTotalTimeoutMultiplier As Int32
Public WriteTotalTimeoutConstant As Int32 ReadIntervalTimeout Maximum time allowed to elapse between the arrival of two bytes on the communications line, in milliseconds. During a ReadFile operation, the time period begins when the first byte is received. If the interval between the arrival of any two bytes exceeds this amount, the ReadFile operation is completed and any buffered data is returned. A value of zero indicates that interval time-outs are not used. A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the bytes that have already been received, even if no bytes have been received. ReadTotalTimeoutMultiplier Multiplier used to calculate the total time-out period for read operations, in milliseconds. For each read operation, this value is multiplied by the requested number of bytes to be read. ReadTotalTimeoutConstant Constant used to calculate the total time-out period for read operations, in milliseconds. For each read operation, this value is added to the product of the ReadTotalTimeoutMultiplier member and the requested number of bytes. A value of zero for both the ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant members indicates that total time-outs are not used for read operations. WriteTotalTimeoutMultiplier Multiplier used to calculate the total time-out period for write operations, in milliseconds. For each write operation, this value is multiplied by the number of bytes to be written. WriteTotalTimeoutConstant Constant used to calculate the total time-out period for write operations, in milliseconds. For each write operation, this value is added to the product of the WriteTotalTimeoutMultiplier member and the number of bytes to be written. A value of zero for both the WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant members indicates that total time-outs are not used for write operations. If an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called: ->If no bytes arrive within the time specified by ReadTotalTimeoutConstant, ReadFile times out.
/// returns after the profile has been loaded. Loading the profile can be time-consuming, 25: CWPSTRUCT
<System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _ 26: DCB
using System.Runtime.InteropServices; 27: 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 28: DFS_INFO_4
public int Timeout; // Timeout, in seconds, of this junction point 29: DHCP_DATE_TIME
public struct DATE_TIME
public uint dwLowDateTime;
public uint dwHighDateTime;
Structure DHCP_DATE_TIME
Dim dwLowDateTime As Integer
Dim dwHighDateTime As Integer 30: DISK_GEOMETRY
<System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _ 31: DNS_RPC_RECORD
public UInt32 dwTimeStamp; // REVERSED from MS documentation
public UInt32 dwTimeStamp { get { return header.dwTimeStamp;}}
public struct DynamicTimeZoneInformation
public SystemTime StandardDate;
public SystemTime DaylightDate;
public string TimeZoneKeyName;
public bool DynamicDaylightTimeDisabled;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] 34: EVENTMSG
public UInt32 time;
Public time As UInt32 35: FILEDESCRIPTOR
FD_CREATETIME = 0x00000008,
FD_ACCESSTIME = 0x00000010,
FD_WRITESTIME = 0x00000020,
public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime;
public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime;
public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime;
FD_CREATETIME = &H8
FD_ACCESSTIME = &H10
FD_WRITESTIME = &H20
<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)> 36: FILETIME
public struct FILETIME {
public uint DateTimeLow;
public uint DateTimeHigh;
Public Structure FILETIME
Public dwLowDateTime As UInteger
Public dwHighDateTime As UInteger
Return CType(dwHighDateTime << 32, ULong) + dwLowDateTime [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]:
public static DateTime FiletimeToDateTime(FILETIME fileTime) {
long hFT2 = (((long) fileTime.dwHighDateTime) << 32) | ((uint) fileTime.dwLowDateTime);
return DateTime.FromFileTimeUtc(hFT2);
public static FILETIME DateTimeToFiletime(DateTime time) {
FILETIME ft;
long hFT1 = time.ToFileTimeUtc();
ft.dwLowDateTime = (int) (hFT1 & 0xFFFFFFFF);
ft.dwHighDateTime = (int) (hFT1 >> 32); Actually, this is NOT working. The only solution I've found so far is using the API Kernel32.dll function FileTimeToSystemTime, then transforming from that into a regular DateTime. * Note that System.Runtime.InteropServices.FILETIME is now obsolete. Changed to use System.Runtime.InteropServices.ComTypes.FILETIME instead.
Private Shared Function ConvertFileTimeToDateTime(input As FILETIME) As DateTime
Dim longTime As ULong = (CType(input.dwHighDateTime, ULong) << 32) Or input.dwLowDateTime
Return DateTime.FromFileTime(longTime)
struct FILETIME {
private long timestamp;
public DateTime Local {
get { return DateTime.FromFileTime(this.timestamp); }
set { this.timestamp = value.ToFileTime(); }
public DateTime Utc {
get { return DateTime.FromFileTimeUtc(this.timestamp); }
set { this.timestamp = value.ToFileTimeUtc(); }
public LargeInteger CreationTime;
public LargeInteger LastAccessTime;
public LargeInteger LastWriteTime;
public LargeInteger ChangeTime; 38: 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
public int DefaultRevocationFreshnessTime;
public int DefaultRevocationUrlRetrievalTimeout; 40: ICMP_ECHO_REPLY
public Int32 RoundTripTime;
public UInt32 TimeDateStamp;
Public TimeDateStamp As Integer
public UInt32 TimeDateStamp;
''' Indicates the time when the file was created. This value is the number
''' of seconds since January 1, 1970, Greenwich Mean Time (GMT). This value
''' file system date/time.
Public TimeDateStamp As UInt32
' Indicates the time when the file was created. This value is the number of seconds since
' January 1, 1970, Greenwich Mean Time (GMT). This value is a more accurate indicator of
' when the file was created than is the file system date/time.
TimeDateStamp As Long
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
''' The ImageBase can be set at link time with the /BASE switch, or later with the
''' At one time, it was used to indicate that the newer Windows 95 or Windows NT 4.0
' or DllMain, rather, it points to runtime library code that calls the aforementioned functions.
' The ImageBase can be set at link time with the /BASE switch, or later with the REBASE utility.
' At one time, it was used to indicate that the newer Windows 95 or Windows NT 4.0 user interface was
' or DllMain, rather, it points to runtime library code that calls the aforementioned functions.
' The ImageBase can be set at link time with the /BASE switch, or later with the REBASE utility.
' At one time, it was used to indicate that the newer Windows 95 or Windows NT 4.0 user interface was
public IMAGE_DATA_DIRECTORY CLRRuntimeHeader;
IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12,
ICC_DATE_CLASSES = 0x00000100, // month picker, date picker, time picker, updown
' month picker, date picker, time picker, updown
public byte TimeToLive; 47: JOB_INFO_1
public SYSTEMTIME Submitted; 48: KBDLLHOOKSTRUCT
public uint time;
Public time As UInt32
public time As UInt32
public long StartTime;
public long EndTime;
public long RenewTime; 50: KEYBDINPUT
internal int time;
Public time As Integer 51: LASTINPUTINFO
public UInt32 dwTime;
Public dwTime As Integer
dwTime : uint32 dwTime does wrap around. Watch out for that, and beware of casting to a signed. 52: LOGFONT 2) The FromLogFont method in VB .NET returned "Times New Roman" as the Font.name for many LogFont.lfFaceName that were not "Times New Roman." 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.
uint DozeTimeoutAc;
uint DozeTimeoutDc;
uint DozeS4TimeoutAc;
uint DozeS4TimeoutDc;
Private DozeTimeoutAc As UInteger
Private DozeTimeoutDc As UInteger
Private DozeS4TimeoutAc As UInteger
Private DozeS4TimeoutDc As UInteger 54: MAPI
public string lpszDateReceived = DateTime.Now.ToString("yyyy/MM/dd HH:mm"); 55: MEMORYSTATUS
/// <remarks>MEMORYSTATUSEX reflects the state of memory at the time of the call. It also
/// reflects the size of the paging file at that time. The operating system can enlarge 56: MENUINFO mi.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(typeof(MENUINFO));
private const uint MIXERCONTROL_CT_CLASS_TIME = 0x60000000u;
private const uint MIXERCONTROL_CT_SC_TIME_MICROSECS = 0x00000000u;
private const uint MIXERCONTROL_CT_SC_TIME_MILLISECS = 0x01000000u;
MICROTIME =(MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED),
MILLITIME =(MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED), 58: MmTime 59: MOUSEINPUT
internal uint time;
Public time As Integer 60: MSLLHOOKSTRUCT
public int time;
Public time As Int32 Cut off search results after 60. Please refine your search. |