"Kerem Gümrükcü" wrote:
> H Nathan,
>
> the WFSO Function is available in .net, since you can invoke it
> with PInvoke. Its Signature is like this:
>
> [DllImport("kernel32", SetLastError=true, ExactSpelling=true)]
> internal static extern Int32 WaitForSingleObject(IntPtr handle, Int32
> milliseconds);
>
> public static uint INFINITE = 0xFFFFFFFF;
>
> But you should not use it for some .net internal related reasons.
> there is a safe "managed" class that will give you the same functionallity
> but in a "safe" and .net "managed" way. The Class is called
>
> [WaitHandle Class (System.Threading)]
>
http://msdn2.microsoft.com/en-us/library/system.threading.waithandle.aspx >
> Before i used the WaitHandle was used to call the Windows API functions
> avec PInvoke but this has several drawbacks like GC issues and Handle
> stuff. So use whenever you can use a managed eqivalent in your software
> from the .net FW,...use it!
>
> Regards
>
> Kerem
>
>
> --
> -----------------------
> Beste Grüsse / Best regards / Votre bien devoue
> Kerem Gümrükcü
> Microsoft Live Space:
http://kerem-g.spaces.live.com/
> Latest Open-Source Projects:
http://entwicklung.junetz.de > -----------------------
> "This reply is provided as is, without warranty express or implied."
>
>