Make AutoHANDLE a template to allow specifying the invalid handle value, which is inconsistent across Win32 API and is INVALID_HANDLE_VALUE for most kinds of handles but 0 for some others, e.g. event object handles. See #16233. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775