I am currently interacting with 64 bit registry entries from a 32-bit application so I’m having to resort to DllImports. Fun fun.
I came across this line in the MSDN entry of RegOpenKeyEx:
“A single registry key can be opened only 65534 times. When attempting the 65535th open operation, this function fails with ERROR_NO_SYSTEM_RESOURCES.“
(In the Remarks section of here)
Just thought it was funny.
What’s not funny, is that I’m having to write this code in .NET 1.1 due to clients not willing to upgrade their servers to at least .NET 2.0. The horror.
Side Note: I have 2 posts coming. One on using Microsoft Sandcastle to automate chm generation from API code (where comments are acceptable in my code) and another on MSI generation using WiX. Coming soon.
Post Footer automatically generated by Add Post Footer Plugin for wordpress.