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 "WaitForSingleObject" in [All]

kernel32

.

    internal static extern Int32 WaitForSingleObject(IntPtr handle, Int32 milliseconds);

.

        int rc = WaitForSingleObject( _Handle, TimeoutInSecs * 1000 );

.

This is great for starting an external app and then using the PID and handle for calls to functions such as WaitForSingleObject and all window message functions.

.

public static extern Int32 WaitForSingleObject(IntPtr handle, int milliseconds);

.

     int ret = Win32.PowerManagement.WaitForSingleObject(handle, (int)Win32.PowerManagement.INFINITE);

4: set
.

    static extern Int32 WaitForSingleObject(IntPtr Handle, uint Wait);

.

        if (WaitForSingleObject(handle, INFINITE) != 0)

.

        static extern Int32 WaitForSingleObject(IntPtr Handle, uint Wait);

.

            if (WaitForSingleObject(handle, INFINITE) != 0)

.
Summary
.

  static extern UInt32 WaitForSingleObject(IntPtr hHandle, UInt32 dwMilliseconds);

.

  Function WaitForSingleObject( _

.

static def WaitForSingleObject(hHandle as IntPtr, dwMilliseconds as uint) as uint:

.

  WaitForSingleObject(handle, (int)INFINITE);

.

  WaitForSingleObject(handle, INFINITE)

.

     if(WaitForSingleObject(ReceivedEvent,INFINITE) == WAIT_OBJECT_0)

.

waitFor = WaitForSingleObject(hMutex, 10000);

.
Documentation
[WaitForSingleObject] on MSDN

coredll

.

    Public Shared Function WaitForSingleObject(ByVal handle As IntPtr, ByVal milliseconds As Integer) As Integer

.

        Dim val As Integer = WaitHandles.WaitForSingleObject(Me._handle, millisecondsTimeout)

.

You will need the above ProcessInfo class and may also want to use GetLastError and WaitForSingleObject.

.

    WaitForSingleObject(pi.hProcess, INFINITE);

.
Summary
WaitForSingleObject- waits on a single kernel object.
.

public static extern Int32 WaitForSingleObject(IntPtr Handle,Int32 Wait);

.

Public Function WaitForSingleObject(ByVal handle As IntPtr, ByVal milliseconds As Integer) As Integer

.

waitResult = WaitForSingleObject(pi.hProcess,INFINITE);

.

result = WaitForSingleObject(pi.hProcess, INFINITE)

.
Documentation
[WaitForSingleObject] on MSDN

advapi32

.

    Public Function WaitForSingleObject(ByVal handle As IntPtr, ByVal milliseconds As UInt32) As UInt32

.

    WaitForSingleObject(processInfo.process, Infinite)

.

        public static extern UInt32 WaitForSingleObject(IntPtr handle, UInt32 milliseconds);

.

            WaitForSingleObject(processInfo.process, Infinite);


 
Access PInvoke.net directly from VS: