Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: specifying struct! in routine!

From: greggirwin:mindspring at: 12-Aug-2002 11:00

Hi Anton, << Hello, anyone know how to specify a structure in a routine definition? >> It's not as straight-forward as it could be. :) NETRESOURCE: make struct! [ dwScope [integer!] dwType [integer!] dwDisplayType [integer!] dwUsage [integer!] lpLocalName [string!] lpRemoteName [string!] lpComment [string!] lpProvider [string!] ] none ; (no initial values) net-use-connection: make routine! compose/deep [ ;...params lpNetRes [struct! [(first NETRESOURCE)]] ;...more params return: [integer!] ] mpr "WNetUseConnectionA" HTH! --Gregg