There are many scenarios where it would be useful to call a Win32 function or some other DLL from a PowerShell script. to Given the following function signature:
bool MyFunction( char* buffer, int* bufferSize )
I hear there is something that makes this easier in PowerShell CTP 2, but I'm curious how this is best done in PowerShell 1.0. The fact that the function needing to be called is using pointers could affect the solution (yet I don't really know).
So the question is what's the best way to write a PowerShell script that can call an exported Win32 function like the one above?
Remember for PowerShell 1.0.