Click here to Skip to main content
15,902,939 members
Home / Discussions / C#
   

C#

 
AnswerRe: converting a Image to a byte[] Pin
Bluebamboo5-Jul-06 11:29
Bluebamboo5-Jul-06 11:29 
GeneralRe: converting a Image to a byte[] Pin
(Steven Hicks)n+15-Jul-06 13:36
(Steven Hicks)n+15-Jul-06 13:36 
AnswerRe: converting a Image to a byte[] Pin
Jon Sagara5-Jul-06 11:36
Jon Sagara5-Jul-06 11:36 
AnswerRe: converting a Image to a byte[] Pin
Ravi Bhavnani5-Jul-06 13:26
professionalRavi Bhavnani5-Jul-06 13:26 
AnswerRe: converting a Image to a byte[] [Solved] [modified] Pin
(Steven Hicks)n+16-Jul-06 5:18
(Steven Hicks)n+16-Jul-06 5:18 
Questionshow release version Pin
donkaiser5-Jul-06 10:39
donkaiser5-Jul-06 10:39 
AnswerRe: show release version Pin
mav.northwind6-Jul-06 5:51
mav.northwind6-Jul-06 5:51 
Questionaccessing http headers in .NET 2.0 WebBrowser Control Pin
mbenezra5-Jul-06 10:03
mbenezra5-Jul-06 10:03 
AnswerRe: accessing http headers in .NET 2.0 WebBrowser Control Pin
led mike5-Jul-06 10:27
led mike5-Jul-06 10:27 
GeneralRe: accessing http headers in .NET 2.0 WebBrowser Control Pin
mbenezra5-Jul-06 12:33
mbenezra5-Jul-06 12:33 
GeneralRe: accessing http headers in .NET 2.0 WebBrowser Control Pin
led mike6-Jul-06 4:49
led mike6-Jul-06 4:49 
QuestionSize problem Pin
Phoen255-Jul-06 9:40
Phoen255-Jul-06 9:40 
AnswerRe: Size problem Pin
Phoen255-Jul-06 9:46
Phoen255-Jul-06 9:46 
AnswerRe: Size problem Pin
Alexander Wiseman5-Jul-06 10:55
Alexander Wiseman5-Jul-06 10:55 
QuestionGet the current users name Pin
jhsheets5-Jul-06 9:00
jhsheets5-Jul-06 9:00 
I'm fairly new to C#, and I've never really written anything that relied on the microsoft api's before.

I'm currently writing a C# service, which I wish to have run as a LocalSystem. So far, so good. My problem is, I need to somehow monitor when a user logs on/off. I was hoping there would be some event firing I could listen to, but I can't seem to find one in the .NET framework. The computers the program will run on only allow one user being logged in at a time, so even simply making my own call or looking for a changed attribute value every few seconds would work fine.

I was looking at maybe doing a P/Invoke on user32.dll or kernel32.dll, but it looks rather complicated, and there's not alot of documentation I can find to help me there.

Any help would be appreciated.



- James Sheets
AnswerRe: Get the current users name Pin
Dustin Metzgar5-Jul-06 12:32
Dustin Metzgar5-Jul-06 12:32 
GeneralRe: Get the current users name Pin
jhsheets5-Jul-06 19:57
jhsheets5-Jul-06 19:57 
AnswerRe: Get the current users name Pin
Ed.Poore5-Jul-06 12:41
Ed.Poore5-Jul-06 12:41 
GeneralRe: Get the current users name Pin
jhsheets5-Jul-06 19:54
jhsheets5-Jul-06 19:54 
QuestionForm.Show() moves Location Pin
sailracerj5-Jul-06 8:12
sailracerj5-Jul-06 8:12 
AnswerRe: Form.Show() moves Location Pin
led mike5-Jul-06 8:49
led mike5-Jul-06 8:49 
GeneralRe: Form.Show() moves Location Pin
sailracerj6-Jul-06 2:50
sailracerj6-Jul-06 2:50 
AnswerRe: Form.Show() moves Location Pin
BoneSoft5-Jul-06 9:28
BoneSoft5-Jul-06 9:28 
GeneralRe: Form.Show() moves Location Pin
sailracerj6-Jul-06 2:52
sailracerj6-Jul-06 2:52 
QuestionTransfer of datagrid to another webform Pin
blurMember5-Jul-06 7:43
blurMember5-Jul-06 7:43 

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.