Fix WOW64 registry mode on Windows 2000 (#10759)
Fix WOW64 registry mode on Windows 2000 (#10759)

CMake fails to find any registry paths on Windows 2000: according to regmon
it fails with an access denied error. I double checked all the access rights
and they are fine. After checking the access modes on MSDN I found that it
says KEY_WOW64_32KEY / KEY_WOW64_64KEY are not supported on Windows 2000.
CMake does not check if the current system supports Wow64 before applying
these flags.

This commit adds a check for IsWow64Process in kernel32.dll before adding
these flags.

Author: Axel Gembe <f03c0a59c59454eea25ccc9b83f19b79a7c85f45@bastart.eu.org>
Signed-off-by: Axel Gembe <f03c0a59c59454eea25ccc9b83f19b79a7c85f45@bastart.eu.org>

keithroe/vtkoptix,spthaolt/VTK,jmerkow/VTK,daviddoria/PointGraphsPhase1,msmolens/VTK,msmolens/VTK,sumedhasingla/VTK,ashray/VTK-EVM,sankhesh/VTK,johnkit/vtk-dev,SimVascular/VTK,sumedhasingla/VTK,hendradarwin/VTK,jmerkow/VTK,msmolens/VTK,biddisco/VTK,jmerkow/VTK,cjh1/VTK,spthaolt/VTK,demarle/VTK,msmolens/VTK,gram526/VTK,sumedhasingla/VTK,daviddoria/PointGraphsPhase1,jmerkow/VTK,sumedhasingla/VTK,johnkit/vtk-dev,berendkleinhaneveld/VTK,spthaolt/VTK,sumedhasingla/VTK,gram526/VTK,gram526/VTK,mspark93/VTK,keithroe/vtkoptix,msmolens/VTK,sankhesh/VTK,SimVascular/VTK,cjh1/VTK,gram526/VTK,demarle/VTK,sumedhasingla/VTK,aashish24/VTK-old,gram526/VTK,sankhesh/VTK,msmolens/VTK,spthaolt/VTK,daviddoria/PointGraphsPhase1,hendradarwin/VTK,aashish24/VTK-old,keithroe/vtkoptix,collects/VTK,berendkleinhaneveld/VTK,demarle/VTK,johnkit/vtk-dev,biddisco/VTK,SimVascular/VTK,mspark93/VTK,mspark93/VTK,cjh1/VTK,spthaolt/VTK,cjh1/VTK,candy7393/VTK,demarle/VTK,jmerkow/VTK,demarle/VTK,sumedhasingla/VTK,hendradarwin/VTK,keithroe/vtkoptix,collects/VTK,gram526/VTK,candy7393/VTK,mspark93/VTK,mspark93/VTK,berendkleinhaneveld/VTK,candy7393/VTK,hendradarwin/VTK,biddisco/VTK,berendkleinhaneveld/VTK,berendkleinhaneveld/VTK,ashray/VTK-EVM,msmolens/VTK,demarle/VTK,johnkit/vtk-dev,sankhesh/VTK,sankhesh/VTK,aashish24/VTK-old,ashray/VTK-EVM,keithroe/vtkoptix,candy7393/VTK,keithroe/vtkoptix,gram526/VTK,sankhesh/VTK,hendradarwin/VTK,mspark93/VTK,mspark93/VTK,jmerkow/VTK,biddisco/VTK,candy7393/VTK,sankhesh/VTK,mspark93/VTK,collects/VTK,keithroe/vtkoptix,biddisco/VTK,biddisco/VTK,candy7393/VTK,aashish24/VTK-old,keithroe/vtkoptix,SimVascular/VTK,ashray/VTK-EVM,demarle/VTK,candy7393/VTK,ashray/VTK-EVM,johnkit/vtk-dev,daviddoria/PointGraphsPhase1,msmolens/VTK,gram526/VTK,biddisco/VTK,spthaolt/VTK,sumedhasingla/VTK,collects/VTK,berendkleinhaneveld/VTK,candy7393/VTK,ashray/VTK-EVM,ashray/VTK-EVM,jmerkow/VTK,SimVascular/VTK,daviddoria/PointGraphsPhase1,SimVascular/VTK,collects/VTK,SimVascular/VTK,cjh1/VTK,hendradarwin/VTK,johnkit/vtk-dev,aashish24/VTK-old,collects/VTK,sankhesh/VTK,demarle/VTK,daviddoria/PointGraphsPhase1,johnkit/vtk-dev,cjh1/VTK,jmerkow/VTK,SimVascular/VTK,berendkleinhaneveld/VTK,hendradarwin/VTK,aashish24/VTK-old,ashray/VTK-EVM,spthaolt/VTK