--- Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem in '******.exe.' Additional Information: Acall to PInvoke function '****' has unbalanced the stack. This is likely because the managed PInvoke signature dose not match the unmanaged target signature. Check that the calling convertion and parameters of the PInvoke signature match the target unmanaged signature. ---
>>640, 642 さんの会話が原因かなと思いましたが、 Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem などでググってみると、それ以前に問題がありそうな気がしました。 が、まだよく分かりません。そろそろWinRTスレと関係なくなってきましたかね。