i am making a dll to close the window calling it. i want to include an argument of HWND type. how do i do it. i tried this
proceduredll clswin(HWND hand)
but pb gives me error. so is there ne other way. see the program using the dll can return its handle to the hand argument.
reciving a handle as an argument.
hwnd is a long, that should put you in the right direction
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
In PureBasic
returns a HWND handle for the window. You need to specify the Window number eg WindowID(0)
Code: Select all
WindowID(#windownum)
Code: Select all
ProcedureDLL clswin(hand.l)