Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - C-Style callback in Powershell

Reply
 
Old 05-04-2007   #1 (permalink)
Joris van Lier


 
 

C-Style callback in Powershell

Hi all, continuing my quest into low-level land, i've got a question about C-style callbacks or ?delegates? in Powershell.
I have to interface with a DLL Written in C that contains a function to enumerate a collection which expects a callback function,
this callback will be called for every item in the collection.

Found this blog entry about creating delegates from scriptblocks but it only seems to deal with .NET delegates
http://blogs.msdn.com/powershell/arc...25/678259.aspx

Can i do this with C-style delegates too?

p.s.: You can probably tell from my questions that i don't have a C background, sorry for asking for what may seem obvious to you.

--
Joris van Lier
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://whizzrd.spaces.live.com


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Font Size - XP style vs Vista style Vista General
Font Size - XP style vs Vista style Vista General
Font Size - XP style vs Vista style Vista General
Event callback on thread PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46