Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "MmTime" in [All]

winmm

.

Declare Function midiStreamPosition Lib "winmm.dll" (ByVal hms As IntPtr, ByVal pmmt As MMTIME, ByVal cbmmt As UInteger) As Integer

.

Structure MMTIME

.

    // tickcount has resolution of 16.5ms, mmtime has 1ms

.

      oWriter.WriteLine("{0}: TickCount={1}, MMTime={2}", nLoop, Environment.TickCount, MM_GetTime());

.

static extern UInt32 timeGetSystemTime( ref MmTime mmTime, UInt32 sizeMmTime );

.

    public class MMTimer : IDisposable

.

    ~MMTimer()

.

    public MMTimer()

.

            Debug.WriteLine("MMTimer " + id.ToString() + " stopped");

.

        Debug.WriteLine("MMTimer " + id.ToString() + " started");

.

        //Callback from the MMTimer API that fires the Timer event. Note we are in a different thread here

kernel32

.

   [Out] ref COMMTIMEOUTS lpCommTimeouts);

.
Summary
.

static extern bool GetCommTimeouts(IntPtr hFile,

.

   [Out] ref COMMTIMEOUTS lpCommTimeouts);

.

<DllImport("kernel32.dll", SetLastError:=True)> Private Shared Function GetCommTimeouts(ByVal hFile As IntPtr, ByRef lpCommTimeouts As COMMTIMEOUTS) As Boolean

.
Documentation
[GetCommTimeouts] on MSDN
.
Summary
.

static extern bool SetCommTimeouts(IntPtr hFile, [In] ref COMMTIMEOUTS

.

   lpCommTimeouts);

.

<DllImport("kernel32.dll", SetLastError:=True)> Private Shared Function SetCommTimeouts(ByVal hFile As IntPtr, ByRef lpCommTimeouts As COMMTIMEOUTS) As Boolean

.
Documentation
[SetCommTimeouts] on MSDN

Structures

.
Summary
The COMMTIMEOUTS structure is used in the SetCommTimeouts and GetCommTimeouts functions to set and query the time-out parameters for a communications device. The parameters determine the behavior of ReadFile, WriteFile, ReadFileEx, and WriteFileEx operations on the device.
.

struct COMMTIMEOUTS {

.

Private Type COMMTIMEOUTS

.

Public Structure COMMTIMEOUTS

.
Documentation
.

struct MmTime {

.

    Public Structure MmTime

.
Documentation
[MmTime] on MSDN

 
Access PInvoke.net directly from VS: