RE: [ActiveDir] can variables be used in the registry?

2006-01-26 Thread Gil Kirkpatrick
It would depend on the app that is interpreting the registry entry. The
registry itself doesn't automatically do parameter replacement like
that.

-gil 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thommes,
Michael M.
Sent: Thursday, January 26, 2006 8:23 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] can variables be used in the registry?

A discussion this afternoon touched upon the notion of using variables
(like %systemroot% or %windir%) in the registry.  Is this possible?  Has
anyone ever done it?  TIA!

Mike Thommes
List info   : http://www.activedir.org/List.aspx
List FAQ: http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ: http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/


RE: [ActiveDir] can variables be used in the registry?

2006-01-26 Thread joe
Agree with Gil. There is a registry data type specifically for this kind of
data, it is called REG_EXPAND_SZ. That will tell the app to do the expansion
and it simply has to use ExpandEnvironmentStrings to get the real value
then. Of course if the app doesn't look for that and do something about it,
it isn't going to do anything.

 joe


--
O'Reilly Active Directory Third Edition -
http://www.joeware.net/win/ad3e.htm 
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gil Kirkpatrick
Sent: Thursday, January 26, 2006 11:05 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] can variables be used in the registry?

It would depend on the app that is interpreting the registry entry. The
registry itself doesn't automatically do parameter replacement like that.

-gil 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thommes, Michael M.
Sent: Thursday, January 26, 2006 8:23 PM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] can variables be used in the registry?

A discussion this afternoon touched upon the notion of using variables (like
%systemroot% or %windir%) in the registry.  Is this possible?  Has anyone
ever done it?  TIA!

Mike Thommes
List info   : http://www.activedir.org/List.aspx
List FAQ: http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ: http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ: http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/