get a process id from process name
        Posted  
        
            by 
                AJINKYA
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by AJINKYA
        
        
        
        Published on 2010-12-24T14:08:17Z
        Indexed on 
            2010/12/27
            1:53 UTC
        
        
        Read the original article
        Hit count: 646
        
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.
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.
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.
© Stack Overflow or respective owner