Click here to Skip to main content
15,867,308 members
Home / Discussions / C#
   

C#

 
QuestionEmail merg Pin
merwa4-Jun-07 8:49
merwa4-Jun-07 8:49 
AnswerRe: Email merg Pin
Muammar©4-Jun-07 11:05
Muammar©4-Jun-07 11:05 
Questionget current session ID Pin
crash8934-Jun-07 8:00
crash8934-Jun-07 8:00 
AnswerRe: get current session ID Pin
Tarakeshwar Reddy4-Jun-07 8:51
professionalTarakeshwar Reddy4-Jun-07 8:51 
GeneralRe: get current session ID Pin
crash8934-Jun-07 9:06
crash8934-Jun-07 9:06 
GeneralRe: get current session ID Pin
Giorgi Dalakishvili4-Jun-07 9:20
mentorGiorgi Dalakishvili4-Jun-07 9:20 
GeneralRe: get current session ID Pin
crash8934-Jun-07 9:22
crash8934-Jun-07 9:22 
GeneralRe: get current session ID Pin
crash8934-Jun-07 9:22
crash8934-Jun-07 9:22 
i also found this

[DllImport("kernel32.dll")]

static extern bool ProcessIdToSessionId(uint dwProcessId, out uint pSessionId);



static void Main(string[] args)

{

Process _currentProcess = Process.GetCurrentProcess();

uint _processID = (uint)_currentProcess.Id;

uint _sessionID;



bool _result = ProcessIdToSessionId(_processID, out _sessionID);



Console.WriteLine("ProcessIdToSessionId Result: " + _result.ToString());

Console.WriteLine("Process ID = " + _processID.ToString());

Console.WriteLine("Session ID = " + _sessionID.ToString());





Console.ReadLine();

}

but im unclear on how to implement it
im still a little green with .net
GeneralRe: get current session ID Pin
Tarakeshwar Reddy4-Jun-07 9:47
professionalTarakeshwar Reddy4-Jun-07 9:47 
GeneralRe: get current session ID Pin
crash8934-Jun-07 10:11
crash8934-Jun-07 10:11 
QuestionError 404 Pin
vunhat4-Jun-07 7:31
vunhat4-Jun-07 7:31 
AnswerRe: Error 404 Pin
Jasmine25014-Jun-07 7:49
Jasmine25014-Jun-07 7:49 
QuestionRe: Error 404 Pin
vunhat4-Jun-07 8:33
vunhat4-Jun-07 8:33 
AnswerRe: Error 404 Pin
leckey4-Jun-07 8:57
leckey4-Jun-07 8:57 
GeneralRe: Error 404 Pin
vunhat4-Jun-07 10:19
vunhat4-Jun-07 10:19 
GeneralRe: Error 404 Pin
Dan Neely4-Jun-07 11:25
Dan Neely4-Jun-07 11:25 
GeneralRe: Error 404 Pin
vunhat4-Jun-07 11:29
vunhat4-Jun-07 11:29 
GeneralRe: Error 404 Pin
Jasmine25014-Jun-07 11:35
Jasmine25014-Jun-07 11:35 
QuestionHTML Parsing question Pin
bs99994-Jun-07 7:02
bs99994-Jun-07 7:02 
AnswerRe: HTML Parsing question Pin
Jasmine25014-Jun-07 7:44
Jasmine25014-Jun-07 7:44 
QuestionMaking DTS Package in C#? Pin
Gul_#4-Jun-07 6:09
Gul_#4-Jun-07 6:09 
QuestionFTP Upload, problem to close stream Pin
wojti4-Jun-07 6:05
wojti4-Jun-07 6:05 
QuestionDeleting log file using WMI ? Pin
Software_Specialist4-Jun-07 5:36
Software_Specialist4-Jun-07 5:36 
QuestionnUnit & C# express Pin
Justin Perez4-Jun-07 4:25
Justin Perez4-Jun-07 4:25 
AnswerRe: nUnit & C# express Pin
Bekjong4-Jun-07 4:32
Bekjong4-Jun-07 4:32 

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.