Tool that can combine many XSD files into one?

What you can do is to create another new file called file.xsd containing all the schema names in it and then the trick is to name the last schema file with .\ as prefix. File.xsd <xsd xmlns=””> <generateClasses language=”CS” namespace=”MyNamespace”> <schema>First.xsd</schema> <schema>Second.xsd</schema> <!– more schema files here –> <schema>.\Third.xsd</schema> </generateClasses> </xsd> Now run the command … Read more

SetWindowsHookEx failing in .NET 4.0 on 32-bit machine with “module not found”?

Yup, I think you understand what’s going on. SetWindowsHookEx() requires a valid module handle, and verifies it, but it doesn’t actually use it when you set a low-level hook. You just need a valid handle, it doesn’t matter which specific one. Calling LoadLibrary(“user32.dll”) is a good way to get a handle, that DLL will always … Read more

How do I tell if .NET 3.5 SP1 is installed?

Look at HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5\. One of these must be true: The Version value in that key should be 3.5.30729.01 Or the SP value in the same key should be 1 In C# (taken from the first comment), you could do something along these lines: const string name = @”SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5″; RegistryKey subKey = … Read more