Click here to Skip to main content
15,898,954 members
Home / Discussions / C#
   

C#

 
GeneralRe: Do I still need to LOCK a Synchronized Queue? Pin
JoeRip15-Aug-08 12:33
JoeRip15-Aug-08 12:33 
GeneralRe: Do I still need to LOCK a Synchronized Queue? Pin
Wendelius15-Aug-08 12:43
mentorWendelius15-Aug-08 12:43 
GeneralRe: Do I still need to LOCK a Synchronized Queue? Pin
JoeRip15-Aug-08 12:49
JoeRip15-Aug-08 12:49 
QuestionDeserialization, after GZipStream it´s possible?? (What is Wrong??) Pin
Guilherme Morais15-Aug-08 11:46
Guilherme Morais15-Aug-08 11:46 
AnswerRe: Deserialization, after GZipStream it´s possible?? (What is Wrong??) Pin
Guilherme Morais18-Aug-08 4:14
Guilherme Morais18-Aug-08 4:14 
QuestionHow to notify c# application from javascript Pin
tomc15-Aug-08 8:54
tomc15-Aug-08 8:54 
AnswerRe: How to notify c# application from javascript Pin
Pete O'Hanlon15-Aug-08 9:01
mvePete O'Hanlon15-Aug-08 9:01 
QuestionC# Code To Change System Date/Time Doesn't Work Pin
Kevin Marois15-Aug-08 8:24
professionalKevin Marois15-Aug-08 8:24 
I'm trying to change the system date and time on XP Pro:

In the form's class header I have:
[DllImport("kernel32.dll", SetLastError=true)]
public static extern bool SetSystemTime( [In] ref structSystemTime st );

public struct structSystemTime 
{
	public short wYear;
	public short wMonth;
	public short wDayOfWeek;
	public short wDay;
	public short wHour;
	public short wMinute;
	public short wSecond;
	public short wMilliseconds;
}


Then in Form_Load I have:

structSystemTime  st = new structSystemTime ();
st.wYear = 2003; 
st.wMonth = 5; 
st.wDay = 22;
st.wHour = 22;
st.wMinute = 15;
st.wSecond = 08;

SetSystemTime(ref st);


It compiles and runs, but the date/time doesn't change. Anyone know what's wrong?

Everything Makes Sense In Someones Mind

AnswerRe: C# Code To Change System Date/Time Doesn't Work Pin
Pete O'Hanlon15-Aug-08 8:52
mvePete O'Hanlon15-Aug-08 8:52 
AnswerRe: C# Code To Change System Date/Time Doesn't Work Pin
Mark Salsbery15-Aug-08 9:00
Mark Salsbery15-Aug-08 9:00 
GeneralRe: C# Code To Change System Date/Time Doesn't Work Pin
Kevin Marois15-Aug-08 10:24
professionalKevin Marois15-Aug-08 10:24 
GeneralRe: C# Code To Change System Date/Time Doesn't Work Pin
Mycroft Holmes15-Aug-08 15:34
professionalMycroft Holmes15-Aug-08 15:34 
AnswerRe: C# Code To Change System Date/Time Doesn't Work Pin
Thomas Stockwell16-Aug-08 12:57
professionalThomas Stockwell16-Aug-08 12:57 
GeneralRe: C# Code To Change System Date/Time Doesn't Work Pin
alefaga8-May-09 5:00
alefaga8-May-09 5:00 
QuestionMask Internet IP Address Pin
maliaslam15-Aug-08 6:49
maliaslam15-Aug-08 6:49 
GeneralRe: Mask Internet IP Address Pin
Pete O'Hanlon15-Aug-08 8:31
mvePete O'Hanlon15-Aug-08 8:31 
AnswerRe: Mask Internet IP Address Pin
Manas Bhardwaj15-Aug-08 9:10
professionalManas Bhardwaj15-Aug-08 9:10 
GeneralRe: Mask Internet IP Address Pin
Pete O'Hanlon15-Aug-08 9:13
mvePete O'Hanlon15-Aug-08 9:13 
GeneralRe: Mask Internet IP Address Pin
maliaslam16-Aug-08 2:57
maliaslam16-Aug-08 2:57 
GeneralRe: Mask Internet IP Address Pin
maliaslam10-Sep-08 0:27
maliaslam10-Sep-08 0:27 
QuestionCSC Pin
Muammar©15-Aug-08 5:28
Muammar©15-Aug-08 5:28 
AnswerRe: CSC PinPopular
Wendelius15-Aug-08 6:37
mentorWendelius15-Aug-08 6:37 
QuestionEnumerating a domain or network to get collection of excel files Pin
Suj_7815-Aug-08 5:26
Suj_7815-Aug-08 5:26 
AnswerRe: Enumerating a domain or network to get collection of excel files Pin
Wendelius15-Aug-08 9:40
mentorWendelius15-Aug-08 9:40 
AnswerRe: Enumerating a domain or network to get collection of excel files Pin
Mycroft Holmes15-Aug-08 15:42
professionalMycroft Holmes15-Aug-08 15:42 

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.