Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Organizing a solution in VS2010 Pin
PozzaVecia1-Dec-12 2:55
PozzaVecia1-Dec-12 2:55 
GeneralRe: Organizing a solution in VS2010 Pin
Pete O'Hanlon1-Dec-12 3:03
mvePete O'Hanlon1-Dec-12 3:03 
GeneralRe: Organizing a solution in VS2010 Pin
PozzaVecia1-Dec-12 4:11
PozzaVecia1-Dec-12 4:11 
Questionfile name from network port??? Pin
lanep30-Nov-12 11:13
lanep30-Nov-12 11:13 
AnswerRe: file name from network port??? Pin
Dave Kreskowiak30-Nov-12 12:36
mveDave Kreskowiak30-Nov-12 12:36 
GeneralRe: file name from network port??? Pin
lanep30-Nov-12 19:28
lanep30-Nov-12 19:28 
GeneralRe: file name from network port??? Pin
Eddy Vluggen30-Nov-12 23:29
professionalEddy Vluggen30-Nov-12 23:29 
GeneralRe: file name from network port??? Pin
Dave Kreskowiak1-Dec-12 3:13
mveDave Kreskowiak1-Dec-12 3:13 
Well that changes the question a bit...

No, there is no chain like that, but you can find all the ports that are being listened to and get the process ids (PIDs) of the process that is listening on that port. You then need to enumerate the entire Windows handle table, filter out just the files that are open, get the PIDs of the owners of those handles, then match them up with the PIDs you got from the listeners pass.

This is a rather time consuming process and if you wanted to get a constant "real-time" update, you'd be using a ton of processing power because of the constant polling you'd have to do.

Oh, and all this requires admin priv's.

GeneralRe: file name from network port??? Pin
lanep5-Dec-12 11:19
lanep5-Dec-12 11:19 
QuestionSerialPort DataReceived event Pin
Blubbo30-Nov-12 11:04
Blubbo30-Nov-12 11:04 
AnswerRe: SerialPort DataReceived event Pin
OriginalGriff30-Nov-12 22:28
mveOriginalGriff30-Nov-12 22:28 
Questionvideo conferencing Pin
Oyebisi Jemil30-Nov-12 8:44
Oyebisi Jemil30-Nov-12 8:44 
AnswerRe: video conferencing Pin
Pete O'Hanlon30-Nov-12 9:03
mvePete O'Hanlon30-Nov-12 9:03 
AnswerRe: video conferencing Pin
OriginalGriff30-Nov-12 22:30
mveOriginalGriff30-Nov-12 22:30 
QuestionMaster-details Issue: Works with EW3 But Not with EW4 Pin
SaintNek30-Nov-12 5:08
SaintNek30-Nov-12 5:08 
AnswerRe: Master-details Issue: Works with EW3 But Not with EW4 Pin
Eddy Vluggen1-Dec-12 5:52
professionalEddy Vluggen1-Dec-12 5:52 
AnswerRe: Master-details Issue: Works with EW3 But Not with EW4 Pin
SaintNek4-Dec-12 8:35
SaintNek4-Dec-12 8:35 
QuestionA MEF question Pin
John T.Emmatty30-Nov-12 4:50
John T.Emmatty30-Nov-12 4:50 
AnswerRe: A MEF question Pin
Simon_Whale30-Nov-12 4:59
Simon_Whale30-Nov-12 4:59 
QuestionRe: A MEF question Pin
Richard Deeming30-Nov-12 5:35
mveRichard Deeming30-Nov-12 5:35 
AnswerRe: A MEF question Pin
John T.Emmatty30-Nov-12 20:00
John T.Emmatty30-Nov-12 20:00 
QuestionC# WinForms - Printing Multiple Pages Pin
Matt U.30-Nov-12 4:29
Matt U.30-Nov-12 4:29 
AnswerRe: C# WinForms - Printing Multiple Pages Pin
BobJanova30-Nov-12 4:34
BobJanova30-Nov-12 4:34 
GeneralRe: C# WinForms - Printing Multiple Pages Pin
Matt U.30-Nov-12 4:48
Matt U.30-Nov-12 4:48 
QuestionFind the differences between two images for screen sharing apps Pin
Tridip Bhattacharjee30-Nov-12 3:13
professionalTridip Bhattacharjee30-Nov-12 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.