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

C#

 
QuestionGetting Windows Login/Logout Time Pin
AmbiguousName4-Feb-12 8:45
AmbiguousName4-Feb-12 8:45 
AnswerRe: Getting Windows Login/Logout Time Pin
Abhinav S4-Feb-12 21:22
Abhinav S4-Feb-12 21:22 
GeneralRe: Getting Windows Login/Logout Time Pin
AmbiguousName5-Feb-12 20:38
AmbiguousName5-Feb-12 20:38 
GeneralRe: Getting Windows Login/Logout Time Pin
Abhinav S5-Feb-12 21:42
Abhinav S5-Feb-12 21:42 
QuestionGetting Max of an attribute value from Entity Collection Pin
indian1433-Feb-12 8:52
indian1433-Feb-12 8:52 
AnswerRe: Getting Max of an attribute value from Entity Collection Pin
Tim Groven3-Feb-12 8:57
Tim Groven3-Feb-12 8:57 
AnswerRe: Getting Max of an attribute value from Entity Collection Pin
BillWoodruff4-Feb-12 11:00
professionalBillWoodruff4-Feb-12 11:00 
QuestionHelp with p/invoking iphlpapi.dll Pin
CCodeNewbie3-Feb-12 5:55
CCodeNewbie3-Feb-12 5: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 7:40
mvePIEBALDconsult3-Feb-12 7:40 
AnswerRe: Help with p/invoking iphlpapi.dll Pin
Luc Pattyn3-Feb-12 7:46
sitebuilderLuc Pattyn3-Feb-12 7:46 
GeneralRe: Help with p/invoking iphlpapi.dll Pin
CCodeNewbie3-Feb-12 9:45
CCodeNewbie3-Feb-12 9:45 
GeneralRe: Help with p/invoking iphlpapi.dll Pin
PIEBALDconsult3-Feb-12 11:25
mvePIEBALDconsult3-Feb-12 11:25 
AnswerRe: Help with p/invoking iphlpapi.dll Pin
Luc Pattyn3-Feb-12 15:40
sitebuilderLuc Pattyn3-Feb-12 15:40 
GeneralRe: Help with p/invoking iphlpapi.dll Pin
jschell4-Feb-12 9:47
jschell4-Feb-12 9:47 
AnswerRe: Help with p/invoking iphlpapi.dll - Going in circles Pin
CCodeNewbie5-Feb-12 2:05
CCodeNewbie5-Feb-12 2:05 
AnswerRe: Help with p/invoking iphlpapi.dll - Going in circles Pin
Luc Pattyn5-Feb-12 3:25
sitebuilderLuc Pattyn5-Feb-12 3:25 
GeneralRe: Help with p/invoking iphlpapi.dll - Going in circles Pin
CCodeNewbie6-Feb-12 5:57
CCodeNewbie6-Feb-12 5:57 
AnswerRe: Help with NETSTAT output Pin
Luc Pattyn6-Feb-12 6:25
sitebuilderLuc Pattyn6-Feb-12 6:25 
GeneralRe: Help with NETSTAT output Pin
CCodeNewbie6-Feb-12 9:23
CCodeNewbie6-Feb-12 9:23 
AnswerRe: Help with NETSTAT output Pin
Luc Pattyn6-Feb-12 9:55
sitebuilderLuc Pattyn6-Feb-12 9:55 
GeneralRe: Help with NETSTAT output Pin
CCodeNewbie6-Feb-12 10:35
CCodeNewbie6-Feb-12 10:35 
QuestionSerialPort.Close() hanging Pin
__John_3-Feb-12 5:13
__John_3-Feb-12 5:13 
AnswerRe: SerialPort.Close() hanging Pin
jschell3-Feb-12 10:57
jschell3-Feb-12 10:57 
GeneralRe: SerialPort.Close() hanging Pin
__John_5-Feb-12 22:20
__John_5-Feb-12 22:20 
QuestionBest method for putting a wait Pin
Subin Mavunkal2-Feb-12 21:08
Subin Mavunkal2-Feb-12 21: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.