'Globally declare Declare Function EnumWindows Lib "user32" (ByVal x As CallBack, ByVal y As Integer) As Integer Public Delegate Sub CallBack() 'Function declared in Main module Public Sub AddProcessReply() 'Calling function Dim intAddressOf As Integer intAddressOf = EnumWindows(AddressOf AddProcessReply, 0) Ret = .Back(intAddressOf) // Back function is VC++ function from vb.net
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)