dcsimg
Results 1 to 4 of 4
  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2018
    Location
    Bosnia and hercegovina
    Posts
    2

    VB6 Find proces handle by proces Id

    Hello

    Is there any way to find process handle from process id

    i have vb6 app and net application, this vb6 runs dll-s and that dlls is not shown in taskbar, i cant minimise it
    dll-s is like child form of vb6 frm.
    i need hwnd to set dll's form in front of net form

    or is there second way to do this

  2. #2
    Lively Member
    Join Date
    Aug 2017
    Posts
    96

    Re: VB6 Find proces handle by proces Id

    Quote Originally Posted by igoracc View Post
    Is there any way to find process handle from process id
    Check out the OpenProcess API function.

  3. #3
    Addicted Member
    Join Date
    Jun 2015
    Posts
    192

    Re: VB6 Find proces handle by proces Id

    If you only need window handles to manipulate window states you can use the EnumChildWindows or FindWindow API.

    if you control the source to both components the easiest way is to save the forms hwnd to the registry in its form load event then have the second component grab it from there. then you can use ShowWindow api to manipulate it.

    If you save it to HKCU\Software\VB and VBA Program Settings\[program_name] then you can access it from vb easily with getsetting()

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2018
    Location
    Bosnia and hercegovina
    Posts
    2

    Re: VB6 Find proces handle by proces Id

    thanks dz32

    I fixed it with .net application which calls this vb6
    and use appactivate(application.exe) in vb.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width