Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Kill the DLL

Kill the DLL

Scheduled Pinned Locked Moved C#
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yesu prakash
    wrote on last edited by
    #1

    Hi, I am running a form, when i click a button in the form a dll is called in which another form is appeared, now total two forms are running. In the task manager processes, i can see only the name of the first form. So i cannot able to find and kill the second from code using 'processname.Kill'. How can i able to find and kill the dll running from main form? Thankyou, YP

    L D 2 Replies Last reply
    0
    • Y yesu prakash

      Hi, I am running a form, when i click a button in the form a dll is called in which another form is appeared, now total two forms are running. In the task manager processes, i can see only the name of the first form. So i cannot able to find and kill the second from code using 'processname.Kill'. How can i able to find and kill the dll running from main form? Thankyou, YP

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      FreeLibrary(hModule); Free the Library (dll)....i'm assuming your program loaded the dll....

      KitKat - A Very Simple Pseudo-RootKit (unedited) SpyNet - An Application Specific Keylogger(unedited) Shove - Shell Shoveler (like NetCat) (unedited) GzTx - Compress and Transfer Files (unedited)

      Y 1 Reply Last reply
      0
      • L Lost User

        FreeLibrary(hModule); Free the Library (dll)....i'm assuming your program loaded the dll....

        KitKat - A Very Simple Pseudo-RootKit (unedited) SpyNet - An Application Specific Keylogger(unedited) Shove - Shell Shoveler (like NetCat) (unedited) GzTx - Compress and Transfer Files (unedited)

        Y Offline
        Y Offline
        yesu prakash
        wrote on last edited by
        #3

        yes my program load a dll which display another form, how can i free the library?

        1 Reply Last reply
        0
        • Y yesu prakash

          Hi, I am running a form, when i click a button in the form a dll is called in which another form is appeared, now total two forms are running. In the task manager processes, i can see only the name of the first form. So i cannot able to find and kill the second from code using 'processname.Kill'. How can i able to find and kill the dll running from main form? Thankyou, YP

          D Offline
          D Offline
          Dragonfly_Lee
          wrote on last edited by
          #4

          Kill the dll? Maybe you mean unload the dll from memory. Because only process owns the memory for excution. In this case, we can use AppDomain.Unload mehtod in .net as a approach.

          :) I Love KongFu~

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups