CoGetCancelObject (ole32)
Last changed: anfortas.geo@yahoo.com-216.204.61.86

.
Summary

C# Signature:

[DllImport("ole32.dll", ExactSpelling=true, PreserveSig=false)]
[return: MarshalAs(UnmanagedType.Interface)]
static extern ICancelMethodCalls CoGetCancelObject(
   uint dwThreadID,
   [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid);

User-Defined Types:

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("00000029-0000-0000-C000-000000000046")]
interface ICancelMethodCalls
{
   void Cancel(uint ulSeconds);
   void TestCancel();
}

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation