What is the purpose of value type REG_NONE

Hi All,

I noticed that the registry has a value type of REG_NONE.

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_value_types.asp

What is the purpose of this value type? Even a default Value is of type REG_SZ.

Jeff
[297 byte] By [jeffrey@toad.net] at [2007-11-19 14:09:07]
# 1 Re: What is the purpose of value type REG_NONE
Sometimes, you just need to know if a value exist, and you don't care what is the value.

It's like in a C progam, sometimes, you have #define TEST and no value assigned to TEST, then you have #ifdef TEST, and it is enough to know that the constant has been defined.

- May I ask you a question?
- Yes.
- Okay, thanks.
olivthill at 2007-11-9 13:18:11 >
# 2 Re: What is the purpose of value type REG_NONE
Hello Olivthill,

I am working on a YARC (Yet Another Registry Class). This class encrypts the Value (data) using AES. As of this point, I am writing data as REG_BINARY.

Is it permissible to write the data as a REG_NONE (as a indicator to the class that the Value is unique)? Is this latitude for a programmer?

I have not written any sample code to see if it is even possible.

Thanks,
Jeff
jeffrey@toad.net at 2007-11-9 13:19:09 >