Sets the handle to the specified pre-existing handle.
Protected Sub SetHandle ( _
handle As IntPtr _
The pre-existing handle to use.
Use the SetHandle method only if you need to support a pre-existing handle (for example, if the handle is returned in a structure) because the .NET Framework COM interop infrastructure does not support marshaling output handles in a structure.
for permission to call unmanaged code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode