o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Getting owner process (PID) -

Hello... I have the PID (or handle, or window title, or whatever you want) of a process.. And I would like to know how to find out by which process this is owned.

I.e. I want to get the PID of the process that started/owns my PID.

For example how do i get the PID of explorer.exe that started my program. Now i KNOW that i can get the FILENAME of a module that started my PID and i know that if i wanted explorer.exe PID's it also wouldn't be a problem.

But what i need is to find the PID (ProcessId) of the process that started [any given PID].

Does anyone know if there's an API for this? Or some scripting?

I was reading in this thread, which seemed to have some revelancy but couldn't find anything helpful.

Many thanks in advanced

 

help to obtain the process owner name -
Hello I `am using vb6 and with the functions on kernel32 I have been able to obtain the process list with their name but I need to know how to obtain the owners name of each process because I am developing a program that block and terminate all the unathorized process, I need to know t


[2.0] Process owner -
I've been using the Process class to get information about different processes, but I can't get the process owner. I've looked on MSDN about processes but i couldn't find anything. Is there a way to do this through API? Sorry if this question has been asked before.


Getting owner process (PID) -
Hello... I have the PID (or handle, or window title, or whatever you want) of a process.. And I would like to know how to find out by which process this is owned. I.e. I want to get the PID of the process that started/owns my PID. For example how do i get the PID of explorer.exe


[2005] Retrieve owner of a process. -
How do i retrieve the owner of a process? I am creating a program that is basicly a duplicate of the Windows Task Manager. i am doing this for learning purposes (so noone asks me what's the point).


Get Processes Info (The Process Owner->USER) -
Hi I Need To Retrive A List Of All Processes With The Process Owner -> USER For Each Process. Thank's


Parse FTP List Reply -
Hi i connected to my FTP server and have recived a directory listing like below... << 125 File status okay; about to open data connection. drwx------ 1 Owner Group 512 Mar 25 20:15 badgerb -rwx------ 1 Owner Group 3943 Mar 01 22:57 bc.asp drwx----


Finding process owner (Help needed) -
How can I find the owner of a process in VB6 (for WinXP)? So, in taskmanager, explorer.exe is owned by "Zach", and winlogon.exe is owned by "SYSTEM" etc. Also, how do I find all process owned by a certain user (all processes owned by "Zach" etc.)


Description of this stuff -
Quote: dr-xr-xr-x 1 owner group 0 Feb 13 2001 bussys dr-xr-xr-x 1 owner group 0 May 21 2001 deskapps dr-xr-xr-x 1 owner group 0 Apr 20 2001 developr dr-xr-xr-x 1 owner group 0 Feb 2


Trying to find totals for each owner -
I have a table set up with the following fields (columns): Owner Horse Winnings Starts Win Place Show A single Owner can own multiple Horses. I want an SQL query that will pull out each Owner and the totals for Winnings, Starts, Win, Place, Show for each Owner. I'm using Ac


Convert recordset into XML format by VB6 -
Hi I dont think this is going to be easy please help me if u can. Program: VB6 Reference: MS XML v3.0 I have recordset as below Proref PortName EntityRef PrefName ------- --------- ---------- ------- 11 AA P HHH 11 AA


Determining a Form's Owner -
Hi guys, I have a VB Form that is being invoked modally from a program that beyond my control. However, the VB Form is mine to code. How do I determine the Owner of my form? Not the parent, but the owner? Spy++ reports that there is no parent, for my Form, but the Owner does


Error:'The specified object can't be used as an owner form' -
i have an mdi child i'm trying to use as an owner form. if the form to the shown is also a child, i get 'invalid proc call', if not then i get the above error 371 this happens both in the form load and form activate of the owner - like this: Private Sub Command1_click() frmbi


[2005] Process Owner from a Service -
Hi, Goal: Have a Windows Service monitor for user login/logoff. I'd prefer not to use the event logs. Actually, if there's less overhead continually read the eventlogs than monitoring a process, then I would consider it, but I doubt that's true. I've seen several articles on how


Owner of the file -
Dear all, I am using a shell command to open a worddocument.I have to check for the owner.If the owner Of the file matches to a particular string, then only I want to run the shell .How can I.


Changing A Table's Owner -
We have some tables where the owner is listed as the logged in ID of the person that created them. I want to change the owner of these tables to dbo. I tried this Code: alter table tablename owner to dbo But, I get "Incorrect syntax near the keyword 'to'" How do


Need some insight into what I think is an odd problem -
I got what I believe to be an odd problem. This involves dialog boxes whose owner kept appearing to change each time I ran the application (same executable, not coded by me). Here is what is happening and I would like to understand why. 1) Execute the program 2) Program Finishes


Owner Drawn Listview -
I'm working on an app right now with several listviews in it. I would like to dress them up a bit and possibly make some modifications to them. However I have no experience with an owner drawn listview. I have done owner drawn menus before, are they similar? Anybody have any expirie


Creating a registry key with owner as System -
Is it possible to create a registry key with System as the owner? Whenever I create a registry key, it creates the owner as the currently logged in user, but I'd like the owner to be System. Any way to do this? I have "ImpersonateLoggedOnUser" code and I wonder if I can


NT4.0 server -
I have a file P:\test.dwg, it is an AutoCAD drawing I want to find the owner of the file and display the users login in a msgbox. I know how to do it with the mouse but I need to find out using my program. We have several people in this company who sometimes want to use the same fil


modal forms -
if i show a from as modal using, for example frmBookings.Show 1,Me How do I find get name of the owner form. The reason for this being frmBookings can be opened from various forms, and one of the buttons on it has to close it, as well as it's owner. I was hoping there would


Change print 'owner' when printing -
My app prints using the vb Printer object, and it processes print jobs for a lot of users. However, each job spools to the printer under the owner name of the person who is running my app. I'd like to change the 'owner' of the print job when I spool it off to the printer - can so


[2005] Centering a Form that is a control -
I'm simply making a control using a class library and inheriting from Form. I have this code that is found in the constructor for the 'form' control. I wonder two things: 1) Is there a more elegant way to center the form? The code works but I have this feeling that what I did wa


Open Common Dialog Extended -
hello everyone, I have a question, maibe somebody could answer me. Under Win2K, NTFS i want to make an Open CommonDialog control wich has the following properties: it has to browse only directories wich belong to the logged user. For example, if the is a structure like the following


Open Common Dialog Extended with Access Rights -
hello everyone, I have a question, maibe somebody could answer me. Under Win2K, NTFS i want to make an Open CommonDialog control wich has the following properties: it has to browse only directories wich belong to the logged user. For example, if the is a structure like the following


Owner drawn Combo Box -
Hi, I want to play with this owner drawn stuff - sounds cool! No seriously, I need to create a combo box that when you click the dropdown a listview is displayed. I presume that I need to set this control to be owner drawn but it doesn't have a property like other controls...!


Jill's legs -
So this new bar opens and the owner can't think of a name. So he decides to name the bar after the 3rd person who walks in. It doesn't take long and soon the 3rd customer walks in. The owner jumps up and walks over to the girl. “You're the 3rd person to enter my bar and I'm going t


SQL Server 2k SP Owner Question -
Hi All, I generated some SQL Scripts to recreate some SPs in another database, except when I look at the properties for these it shows me as the Owner instead of the Usual dbo. Firstly Why? What have I done wrong. Second Will this cause my apps to have problems and my DBA to go nuts


owner drawn listbox -
does anyone know how I can retrieve menu items from an owner drawn list in another application? i seem to be getting nowhere, any ideas where I should start?


Change Ownership of a registry key -
We use a program that has a registry key that we cannot access. If we click on the key, it gives the error "Cannot open nameOfKey: Error while opening key." If I view the owner under advanced security settings, under current owner of this item, it says "Unable to displ


Tasklist with paths W2k -
I'm looking for code that will give me a task list WITH path and process owner. I've got code that'll give me the tasklist as it is in the application tab, I want the process tab Thanks Prefer code for VB6 but VBNet code will do as well, it'll give me a reason to use VBNet


Change table owner -
I am new to SQL 2000 and my company just moved to SQL2000. How do I change the owner of a X in XX database from dbo to XXX user? Thank you.


Owner Drawn Menu's in VB.Net -
How to draw owner drawn menus in VB.Net???? ......Prashanth


Port Owner Info -
Is there any way to find out information about the owner of an open port in VB?


Z-Order (owner form and ActiveX EXE) -
I created an Active EXE which is an asynchronous progress indicator. Now I need the form that is part of the ActiveX EXE to be "on top" of ONLY the owner form, which can be set, passed in, etc. I do NOT want it to be "TOP MOST" because then switching between applica


creating an sql statement to run against another sql server instance -
Hi I have a problem.... I am creating a stored proc which runs on serverA and I am trying to get it to run a statement on serverB. When I run the sql statement SELECT * FROM serverB.database.owner.table It runs fine, but when i run SELECT serverB.database.owner.table.column FR


[2005] Creator/Owner -
Does anyone know how to view the Creator/Owner of a file?


is it possible to do this on a SQL select Query -
i have a table called tbl_owner owner | PIN Michael 001 JR 001 Janice 002 IAN 002 i want to arrange them into this owner | PIN michael,jr 001 Janice,ian 002 how can i do this using SQL statement


Karl Moore VB.NEt database tutorial Help -
In Tutorial 2.3 of Karl Moore's book VB.NEt the tutorials i have run into a snag. At the end of the section Karl suggest adding functionality to the application by allowing the user to add and delete pet records as well as owner records. I managed to get the Owner part working but i ca


Problem opening Access database -
Help me !!!! This is a desperate post of a computer whose hard disk will be formatted tomorrow if my owner doesn't find the solution to the problem that takes him off the sleep. When my owner tries to open an Access database in VB5 using DAO 3.5, he gets the error 3173: "Table '


Form Owner -
if a form is opened modally and an owner is specified.. is there a way to know what form is the owner in the modal form? for example in form1 i open form2 VB Code: Form2.Show vbModal, Form1 now in form 2 is there a way to know the owner? I know there is no owner or parent