title: get a process id from process name
body: <p>Hi
  i am trying to do a project using windows API in C language. The small part in my project is to get process ID of lsass.exe.</p>
  
  <p>i have tried the program below but it wont work.
  i have read about the CreateToolhelp32Snapshot, Process32First, Process32Next functions can anyone help me explaining how to use them in the code.</p>
  
  <p>So please help me.
  i am a beginner to windows API so i will appreciate it if anyone can suggest me an good ebook to refer. </p>