[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

06/24/2009 at 05:31AM PDT, ID: 24517776
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.7

delphi vista setlocaltime

Asked by kinnon_2000 in Delphi Curiosities, Delphi Programming, Windows Vista

Tags: delphi, kernel32, setlocaltime, vista

Hi,
I've built a browser shell for a group of clients which runs on vista using a stardard manifest. All settings saved in user appdata folder. This needs to be non admin application in order to start as shell, because vista wont allow admin applications to startup as shell or run when set to start as admin.

My issue is, this program gets a date/time from a server, so the date and time on all machines involved is the same. I'm using the setlocaltime call, but in vista this dosnt work, and returns false.

Is there another mathod to set the local machine time on vista that will work, without messing with uac or manifest files?

Regards,
Allan.
1:
2:
3:
4:
5:
6:
7:
8:
function setsystemtime(timestamp:tdatetime):boolean;
var
  SystemTime: TSystemTime;
begin
  DateTimeToSystemTime(timestamp, SystemTime);
  result:= SetLocalTime(SystemTime);
  PostMessage(HWND_BROADCAST, WM_TIMECHANGE, 0, 0);
end;
[+][-]06/24/09 07:39 AM, ID: 24701527

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/24/09 07:44 AM, ID: 24701584

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Curiosities, Delphi Programming, Windows Vista
Tags: delphi, kernel32, setlocaltime, vista
Sign Up Now!
Solution Provided By: EddieShipman
Participating Experts: 1
Solution Grade: B
 
 
[+][-]06/24/09 02:14 PM, ID: 24705937

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/01/09 01:31 AM, ID: 24752438

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625