EnumWindowsProc (Delegates)
Last changed: -24.77.237.43

.
Summary

C# Definition:

delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);

VB Definition:

Delegate Function EnumWindowsProc( _
   ByVal hWnd As System.IntPtr, ByVal lParam As IntPtr) As Boolean

Notes:

If you're going to use the lparam to return a by-value result (such as the hwnd of a window you are looking for) then you want to declare the lparam as a ref:

   delegate bool EnumWindowsProc(IntPtr hWnd, ref IntPtr lParam);

Documentation