Silverlight, unlike WPF, does not expose window handles. However, you can, if you try hard enough, find the handle to your window. This article describes the method. Essentially you call the FindWindow
function to get hold of the window handle.
And remember that you won't get a handle for your user control because only top level windows have handles under Silverlight. Silverlight controls are not windowed.
As an aside, are you quite sure that your struct is packed? That would be quite unusual.