I want to get the default system locale in Windows 7, I figured out that the login screen uses this. So I want to start one application during system startup, before the login screen appear. So that the result I get is user independent. Please let me know if any have pointers...

link|improve this question
Can't you just log which user is logged in and save your data for that given user? Or store the data in their profile folder? – Ivo Flipse Feb 11 '10 at 8:07
My application must return me System default locale during startup.. So i need the application to run on startup. – Santhosha Kaldambe Feb 11 '10 at 8:24
It would be added to the proper HKLM registry run key...windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/… – Moab Apr 1 '11 at 15:40
feedback

2 Answers

I do know Windows 7 introduces Trigger Startup Services which allows you to start services without requiring a user to log into the console. Hopefully this might point you in the right direction:

http://windowsteamblog.com/blogs/developers/archive/2009/10/26/windows7-trigger-start-services-part-1-introduction.aspx

link|improve this answer
feedback

You don't necessarily need to run this from the login screen, an example:

systeminfo /FO LIST | find "System Locale"

A Developer alternative can be found here: MSDN - GetSystemDefaultLocaleName

This result will be user independent!

Don't use a service just to get that value, services are meant to be long-running tasks.

Don't use credential providers either, they are used as authentication methods.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.