Added support for arrays of structs as return values.
Converted WNDPROC to a per-window callback.
Defined a NULL global variable (equal to 0L).