fp = fopen ("prcoessinformation.txt","w+"); // 建立或打开1个名为 prcoessinformation 的文件
process.dwsize = sizeof( tagprocessentry32 );
snapshot = createtoolhelp32snapshot (th32cs_snapprocess,0); //接收句柄值
if( process32first (snapshot,&process) == true ) //对于异常发生的处理
{
while( process32next ( snapshot, &process ) )
{
processinformation = ptotal = process.szexefile; // 将prcoessinformation 指向process.szexefile 字符串
while ( *ptotal != '\0' )
{