Click here to Skip to main content
15,845,330 members
Home / Discussions / C#
   

C#

 
QuestionGetting Windows Login/Logout Time Pin
AmbiguousName4-Feb-12 9:45
AmbiguousName4-Feb-12 9:45 
AnswerRe: Getting Windows Login/Logout Time Pin
Abhinav S4-Feb-12 22:22
Abhinav S4-Feb-12 22:22 
GeneralRe: Getting Windows Login/Logout Time Pin
AmbiguousName5-Feb-12 21:38
AmbiguousName5-Feb-12 21:38 
GeneralRe: Getting Windows Login/Logout Time Pin
Abhinav S5-Feb-12 22:42
Abhinav S5-Feb-12 22:42 
QuestionGetting Max of an attribute value from Entity Collection Pin
indian1433-Feb-12 9:52
indian1433-Feb-12 9:52 
AnswerRe: Getting Max of an attribute value from Entity Collection Pin
Tim Groven3-Feb-12 9:57
Tim Groven3-Feb-12 9:57 
AnswerRe: Getting Max of an attribute value from Entity Collection Pin
BillWoodruff4-Feb-12 12:00
professionalBillWoodruff4-Feb-12 12:00 
QuestionHelp with p/invoking iphlpapi.dll Pin
CCodeNewbie3-Feb-12 6:55
CCodeNewbie3-Feb-12 6:55 
Hi,

I need to output netstat -ao to a SQL database. I have seen many sites/forums on ways to capture this info using the Process method as well as the IPGlobalProperties methods native to .NET.

While the IPGlobalProperties methods work very well there is no method that I have found that can get the process pid associated with each open port.

I have stripped EASY SOCKET V3 found here http://files.codes-sources.com/fichier.aspx?id=11430&f=easy_socket\iphelper.cs[^]but am not sure how to get the information out. The stripped code compiles but when I run the code from a c# Console application the console pops up and then closes almost immediately.

The stripped code is here http://pastebin.com/yVzrqcJX[^] if anyone is able to help.

Thank you in advance.
AnswerRe: Help with p/invoking iphlpapi.dll Pin
PIEBALDconsult3-Feb-12 8:40
mvePIEBALDconsult3-Feb-12 8:40 
AnswerRe: Help with p/invoking iphlpapi.dll Pin
Luc Pattyn3-Feb-12 8:46
sitebuilderLuc Pattyn3-Feb-12 8:46 
GeneralRe: Help with p/invoking iphlpapi.dll Pin
CCodeNewbie3-Feb-12 10:45
CCodeNewbie3-Feb-12 10:45 
GeneralRe: Help with p/invoking iphlpapi.dll Pin
PIEBALDconsult3-Feb-12 12:25
mvePIEBALDconsult3-Feb-12 12:25 
AnswerRe: Help with p/invoking iphlpapi.dll Pin
Luc Pattyn3-Feb-12 16:40
sitebuilderLuc Pattyn3-Feb-12 16:40 
GeneralRe: Help with p/invoking iphlpapi.dll Pin
jschell4-Feb-12 10:47
jschell4-Feb-12 10:47 
AnswerRe: Help with p/invoking iphlpapi.dll - Going in circles Pin
CCodeNewbie5-Feb-12 3:05
CCodeNewbie5-Feb-12 3:05 
AnswerRe: Help with p/invoking iphlpapi.dll - Going in circles Pin
Luc Pattyn5-Feb-12 4:25
sitebuilderLuc Pattyn5-Feb-12 4:25 
GeneralRe: Help with p/invoking iphlpapi.dll - Going in circles Pin
CCodeNewbie6-Feb-12 6:57
CCodeNewbie6-Feb-12 6:57 
AnswerRe: Help with NETSTAT output Pin
Luc Pattyn6-Feb-12 7:25
sitebuilderLuc Pattyn6-Feb-12 7:25 
GeneralRe: Help with NETSTAT output Pin
CCodeNewbie6-Feb-12 10:23
CCodeNewbie6-Feb-12 10:23 
AnswerRe: Help with NETSTAT output Pin
Luc Pattyn6-Feb-12 10:55
sitebuilderLuc Pattyn6-Feb-12 10:55 
GeneralRe: Help with NETSTAT output Pin
CCodeNewbie6-Feb-12 11:35
CCodeNewbie6-Feb-12 11:35 
QuestionSerialPort.Close() hanging Pin
__John_3-Feb-12 6:13
__John_3-Feb-12 6:13 
AnswerRe: SerialPort.Close() hanging Pin
jschell3-Feb-12 11:57
jschell3-Feb-12 11:57 
GeneralRe: SerialPort.Close() hanging Pin
__John_5-Feb-12 23:20
__John_5-Feb-12 23:20 
QuestionBest method for putting a wait Pin
Subin Mavunkal2-Feb-12 22:08
Subin Mavunkal2-Feb-12 22:08 

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.