please use [ code ] [ /code ] around your code.

you forgot to pass buff1. Also, the command (ping.exe) must contain the full path. CreateProcess DOESN'T search the PATH-environment to look for the exe file.