Hooking Create Process


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 15

Thread: Hooking Create Process

  1. #1
    Join Date
    Nov 2009
    Posts
    8

    Hooking Create Process

    Hi all, I want to ask, how do I hook CreateProcess? I want to write an antivirus program with Real Time Protector. Thanks.

  2. #2
    Join Date
    Mar 2009
    Location
    Italy - Breganze (VI)
    Posts
    120

  3. #3
    Join Date
    Nov 2009
    Posts
    8
    Quote Originally Posted by gibra View Post
    Antivirus in VB6.0 ???
    well yes. So far I already able to check whether it is a virus or not by using (custom/modified and more collision proof) CRC32, and "heuristic" for vbs and bat.

  4. #4
    Join Date
    Nov 2009
    Posts
    8
    bump

  5. #5
    Join Date
    Mar 2009
    Location
    Italy - Breganze (VI)
    Posts
    120
    A true and efficient antivirus must run as system service.

    Well known that VB6 can't create services.


  6. #6
    Join Date
    Jun 2009
    Posts
    135
    Ahhh... errrr... Ahhemm...

    Gibra, sir/madam,

    It is well know that VB6 can create services BUT it is also well know that it is not recommended to create services with VB6.

    http://www.freevbcode.com/ShowCode.asp?ID=4317

    http://www.smsoft.ru/en/ntservice.htm

    http://montgomerysoftware.com/Creati...S/Default.aspx

    http://www.tek-tips.com/viewthread.cfm?qid=1471648
    Last edited by vb5prgrmr; 12-21-2009 at 12:12 AM. Reason: misspelled Gibra's name, sorry

  7. #7
    Join Date
    Nov 2009
    Posts
    8
    Quote Originally Posted by gibra View Post
    A true and efficient antivirus must run as system service.

    Well known that VB6 can't create services.

    I agree with you, however I want to make a portable antivirus.

    I've tried googling around for hooking "createprocess" thingy, but still no luck with VB. Any ideas?

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Switch to VB.NET or even better C#
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  9. #9
    Join Date
    Nov 2009
    Posts
    8
    Quote Originally Posted by Hack View Post
    Switch to VB.NET or even better C#
    Hmm, I don't think I'll choose either. If I can't hook process using vb, maybe I'll move to C, or maybe C++, but not C#.

  10. #10
    Join Date
    Jun 2009
    Posts
    135
    You can hook a process with VB, and you can create threads with VB (but you cannot debug threads with VB). There are a couple of hooking tutorials out there and if you use your friends (yahoo, google, ask, answers, bing) you should be able to find them...



    Good Luck

  11. #11
    Join Date
    Nov 2009
    Posts
    8
    Quote Originally Posted by vb5prgrmr View Post
    You can hook a process with VB, and you can create threads with VB (but you cannot debug threads with VB). There are a couple of hooking tutorials out there and if you use your friends (yahoo, google, ask, answers, bing) you should be able to find them...



    Good Luck
    Thanks for the tip, but I've tried googling since before I create this thread. Perhaps you could give me some link or at least some keyword for those search engine. I've tried "vb hook process" but still no luck with the code.

  12. #12
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  13. #13
    Join Date
    Nov 2009
    Posts
    8
    @Hack
    Thank you so much.
    Anyway, Happy New Year! (according to my time zone, I'm 53 minutes late)
    errr this thread is closed : )

  14. #14
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Happy New Year to you as well, and I have another 11 hours to go!
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  15. #15
    Join Date
    Jun 2009
    Posts
    135
    Tick... Tick... Tick... 45 minutes to go here....

    a few results here...

    http://search.yahoo.com/search?p=vb6...8&fr=yfp-t-701


    Good Luck

Similar Threads

  1. Replies: 4
    Last Post: 07-10-2006, 07:07 AM
  2. best way to create background process
    By dayfrank in forum C++
    Replies: 1
    Last Post: 06-26-2006, 02:17 PM
  3. Create process from NT server
    By David Garrido in forum VB Classic
    Replies: 0
    Last Post: 06-20-2000, 02:28 AM
  4. Create process from NT server
    By David Garrido in forum VB Classic
    Replies: 0
    Last Post: 06-20-2000, 02:28 AM
  5. Replies: 0
    Last Post: 04-12-2000, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center