On 25/04/2012 21:28, Andrej Mitrovic wrote: <snip> > This works well I think: > struct HWND { } If it does, it shouldn't, because that struct is of the wrong size. Windows handles are, AIUI, always of the platform pointer size. A zero-size handle type would be useless, as only one distinct handle could exist that way. Stewart.