I need help doing this. I have some source code to do so but I'm lost on 1 part of it. Look below..."Whatever" would be the bitmap but I'm lost on the "Some API Call" part. What API call would I need there?
Code:
Dim gch As GCHandle
Try gch = GCHandle.Alloc(whatever, GCHandleType.Pinned)
SomeAPICall(gch.AddressOfPinnedObject())
Finally
If GCHandle.IsAllocated()
Then GCH.Free()
End Try