How do I fix “The program issued a command but the command length is incorrect.” error when calling Process32First()?
问题 GetLastError tells me I'm getting the "The program issued a command but the command length is incorrect." error when calling Process32First() (see code below). I found one post that looked helpful (http://social.msdn.microsoft.com/Forums/is/vcgeneral/thread/6f43716f-fdd3-4c92-bfba-6a23178c32bf), but I'm not sure if this is my problem. I've tried building a program that includes only "stdafx.h" , <iostream> , <Windows.h> and <TlHelp32.h> to test __alignof(PROCESSENTRY32) , but I still get a