While there are several warnings, the solution does build successfully.
I've made a minor code update in an effort to prevent fatal errors when I invoke a HotKey:
public void Install()
{
m_hHook = SetWindowsHookEx(
m_hookType,
m_hookProc,
IntPtr.Zero,
//(int)AppDomain.GetCurrentThreadId());
(int)System.Threading.Thread.CurrentThread.ManagedThreadId);
}
The resultant build does load fine, and also prevents the previous fatal errors, however, the HotKeys are not functional.
When attempting to use Alt + C (for _CEN), the Menubar is activated as though you only pressed Alt. Menubar=0 results in the Alt options for the ribbon. Closing the Ribbon results in the Alt options for the Quick Access Toolbar (QAT). Removing all items from the QAT results in the Alt option for the Menu Browser.
*stuck*