Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
AnswerRe: .NET and LDAP Pin
leppie6-Oct-05 22:34
leppie6-Oct-05 22:34 
GeneralRe: .NET and LDAP Pin
ehuysamer6-Oct-05 22:41
ehuysamer6-Oct-05 22:41 
GeneralRe: .NET and LDAP Pin
leppie7-Oct-05 1:34
leppie7-Oct-05 1:34 
Questiongraphics Pin
unni_jeevan6-Oct-05 20:53
unni_jeevan6-Oct-05 20:53 
AnswerRe: graphics Pin
XRaheemX7-Oct-05 3:34
XRaheemX7-Oct-05 3:34 
Questionapplication wide events Pin
Dipendra Singh6-Oct-05 20:52
Dipendra Singh6-Oct-05 20:52 
AnswerRe: application wide events Pin
XRaheemX7-Oct-05 3:32
XRaheemX7-Oct-05 3:32 
QuestionRetrieving the terminal session id Pin
_Hacker6-Oct-05 20:50
suss_Hacker6-Oct-05 20:50 
Hi
How can I retrieve the terminal session id?
My code is as follows:


[DllImport ("User32.lib", CharSet = CharSet.Auto)]
private static extern Boolean GetSystemMetrics(int nIndex);

[DllImport ("Kernel32.lib", CharSet = CharSet.Auto)]
private static extern uint WTSGetActiveConsoleSessionId();

public static Boolean IsRemoteSession()
{
return GetSystemMetrics( SM_REMOTESESSION );

// Where can I get this SM_REMOTESESSION from?
}

public static uint GetSessionId()
{
return WTSGetActiveConsoleSessionId();
}

AnswerRe: Retrieving the terminal session id Pin
mav.northwind7-Oct-05 0:23
mav.northwind7-Oct-05 0:23 
QuestionRe: Retrieving the terminal session id Pin
_Hacker7-Oct-05 1:00
suss_Hacker7-Oct-05 1:00 
AnswerRe: Retrieving the terminal session id Pin
mav.northwind7-Oct-05 3:36
mav.northwind7-Oct-05 3:36 
GeneralRe: Retrieving the terminal session id Pin
_Hacker7-Oct-05 3:43
suss_Hacker7-Oct-05 3:43 
GeneralC# Pin
momoo6-Oct-05 20:46
momoo6-Oct-05 20:46 
GeneralRe: C# Pin
David Stone6-Oct-05 21:36
sitebuilderDavid Stone6-Oct-05 21:36 
GeneralOT - Re: C# Pin
mav.northwind7-Oct-05 0:27
mav.northwind7-Oct-05 0:27 
QuestionLoading a image at runtime in Crystal report XI Pin
dhol6-Oct-05 19:06
dhol6-Oct-05 19:06 
Question2 Web Browser Problem Pin
erwinliong6-Oct-05 17:24
erwinliong6-Oct-05 17:24 
AnswerRe: 2 Web Browser Problem Pin
XRaheemX7-Oct-05 7:12
XRaheemX7-Oct-05 7:12 
GeneralRe: 2 Web Browser Problem Pin
erwinliong7-Oct-05 7:24
erwinliong7-Oct-05 7:24 
GeneralRe: 2 Web Browser Problem Pin
XRaheemX7-Oct-05 7:27
XRaheemX7-Oct-05 7:27 
QuestionDetermine if a thread has been instantiated Pin
raysot7776-Oct-05 16:28
raysot7776-Oct-05 16:28 
AnswerRe: Determine if a thread has been instantiated Pin
Mohamad Al Husseiny6-Oct-05 18:18
Mohamad Al Husseiny6-Oct-05 18:18 
GeneralRe: Determine if a thread has been instantiated Pin
raysot7776-Oct-05 18:32
raysot7776-Oct-05 18:32 
AnswerRe: Determine if a thread has been instantiated Pin
S. Senthil Kumar6-Oct-05 18:27
S. Senthil Kumar6-Oct-05 18:27 
QuestionGetHashCode and composite key Pin
devvvy6-Oct-05 16:02
devvvy6-Oct-05 16:02 

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.