Alexandre Julliard : kernelbase: Add a helper function to validate process/thread attributes.