code: def WindowsSdkDir(self):
          
          sdkdir = ''
          for ver in self.WindowsSdkVersion:
              # Try to get it from registry
              loc = os.path.join(self.ri.windows_sdk, 'v%s' % ver)
              sdkdir = self.ri.lookup(loc, 'installationfolder')
              if sdkdir:
                  break
          if not sdkdir or not os.path.isdir(sdkdir):
              # Try to get "VC++ for Python" version from registry
              path = os.path.join(self.ri.vc_for_python, '%0.1f' % self.vc_ver)
              install_base = self.ri.lookup(path, 'installdir')
              if install_base:
                  sdkdir = os.path.join(install_base, 'WinSDK')
          if not sdkdir or not os.path.isdir(sdkdir):
              # If fail, use default new path
              for ver in self.WindowsSdkVersion:
                  intver = ver[:ver.rfind('.')]
                  path = r'Microsoft SDKs\Windows Kits\%s' % (intver)
                  d = os.path.join(self.ProgramFiles, path)
                  if os.path.isdir(d):
                      sdkdir = d
          if not sdkdir or not os.path.isdir(sdkdir):
              # If fail, use default old path
              for ver in self.WindowsSdkVersion:
                  path = r'Microsoft SDKs\Windows\v%s' % ver
                  d = os.path.join(self.ProgramFiles, path)
                  if os.path.isdir(d):
                      sdkdir = d
          if not sdkdir:
              # If fail, use Platform SDK
              sdkdir = os.path.join(self.VCInstallDir, 'PlatformSDK')
          return sdkdir
docs: Microsoft Windows SDK directory.