what country am I in?

Hi

I am developing a driver, which needs to behave differently in the US, as
opposed to Europe. It seems to me that this can be done as 1 of 3 different
ways:

  1. at installation explicitly ask the user what country the driver should be
    configured for - is this via a co installer?
  2. at installation extract the information from the current windows
    configuration - can the inf file do this for you?
  3. at run time extract the information from the current windows
    configuration - is there an api to extract this info from the registry?

which is the best solution, and how do i do it?!

hope someone can help

best regards

Mark Riley


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

solution 1 seems to be ok.
this also gives the user the right to change the configuration if he moves
the machine.

problem with 2 - if the machine is miconfigured, can give u wrong
information
and malfunction your driver.

problem with 3 - same as problem with 2

hope this helps…
-Taher

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Riley
Sent: Tuesday, June 05, 2001 4:54 PM
To: NT Developers Interest List
Subject: [ntdev] what country am I in?

Hi

I am developing a driver, which needs to behave differently in the US, as
opposed to Europe. It seems to me that this can be done as 1 of 3 different
ways:

  1. at installation explicitly ask the user what country the driver should be
    configured for - is this via a co installer?
  2. at installation extract the information from the current windows
    configuration - can the inf file do this for you?
  3. at run time extract the information from the current windows
    configuration - is there an api to extract this info from the registry?

which is the best solution, and how do i do it?!

hope someone can help

best regards

Mark Riley


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

ok, but what I’m really looking for is the easiest and quickest solution to
implement, and how to do it!

Mark

-----Original Message-----
From: Taher Vohra [mailto:xxxxx@veritas.com]
Sent: 05 June 2001 12:51
To: NT Developers Interest List
Subject: [ntdev] RE: what country am I in?

Hi,

solution 1 seems to be ok.
this also gives the user the right to change the configuration if he moves
the machine.

problem with 2 - if the machine is miconfigured, can give u wrong
information
and malfunction your driver.

problem with 3 - same as problem with 2

hope this helps…
-Taher

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Riley
Sent: Tuesday, June 05, 2001 4:54 PM
To: NT Developers Interest List
Subject: [ntdev] what country am I in?

Hi

I am developing a driver, which needs to behave differently in the US, as
opposed to Europe. It seems to me that this can be done as 1 of 3 different
ways:

  1. at installation explicitly ask the user what country the driver should be
    configured for - is this via a co installer?
  2. at installation extract the information from the current windows
    configuration - can the inf file do this for you?
  3. at run time extract the information from the current windows
    configuration - is there an api to extract this info from the registry?

which is the best solution, and how do i do it?!

hope someone can help

best regards

Mark Riley


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@nsine.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

What are you going to do about terminal server? It is
now possible to have the machine in one country and
users in other countries. If you have a specific need
based on locale, you might consider ZwQueryDefaultLocale
which is available in kernel mode. This can query for
either the specific thread or the system’s default.

Don Burn
Windows 2000 Device Driver and Filesystem consulting

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Riley
Sent: Tuesday, June 05, 2001 4:54 PM
To: NT Developers Interest List
Subject: [ntdev] what country am I in?

Hi

I am developing a driver, which needs to behave differently in the US, as
opposed to Europe. It seems to me that this can be done as 1 of 3
different
ways:

  1. at installation explicitly ask the user what country the driver should
    be
    configured for - is this via a co installer?
  2. at installation extract the information from the current windows
    configuration - can the inf file do this for you?
  3. at run time extract the information from the current windows
    configuration - is there an api to extract this info from the registry?

which is the best solution, and how do i do it?!

hope someone can help

best regards

Mark Riley


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

thanks for your help, I think, ZwQueryDefaultLocale, is exactly what I need.
regarding, terminal server, this is not an issue, as the requirement for the
locale is for a driver that is currently in development, longer term, the
locale info will not be necessary.

once again thanks

mark

-----Original Message-----
From: Don Burn [mailto:xxxxx@acm.org]
Sent: 05 June 2001 13:09
To: NT Developers Interest List
Subject: [ntdev] RE: what country am I in?

What are you going to do about terminal server? It is
now possible to have the machine in one country and
users in other countries. If you have a specific need
based on locale, you might consider ZwQueryDefaultLocale
which is available in kernel mode. This can query for
either the specific thread or the system’s default.

Don Burn
Windows 2000 Device Driver and Filesystem consulting

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Riley
Sent: Tuesday, June 05, 2001 4:54 PM
To: NT Developers Interest List
Subject: [ntdev] what country am I in?

Hi

I am developing a driver, which needs to behave differently in the US, as
opposed to Europe. It seems to me that this can be done as 1 of 3
different
ways:

  1. at installation explicitly ask the user what country the driver should
    be
    configured for - is this via a co installer?
  2. at installation extract the information from the current windows
    configuration - can the inf file do this for you?
  3. at run time extract the information from the current windows
    configuration - is there an api to extract this info from the registry?

which is the best solution, and how do i do it?!

hope someone can help

best regards

Mark Riley


You are currently subscribed to ntdev as: xxxxx@nsine.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com