# File lib/chef/win32/api/file.rb, line 505
        def symlink_file_handle(path, &block)
          begin
            path = encode_path(path)
            handle = CreateFileW(path, FILE_READ_EA, FILE_SHARE_READ,
                                  nil, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT | FILE_FLAG_BACKUP_SEMANTICS, nil)

            if handle == INVALID_HANDLE_VALUE
              Chef::ReservedNames::Win32::Error.raise!
            end
            block.call(handle)
          ensure
            CloseHandle(handle) if handle && handle != INVALID_HANDLE_VALUE
          end
        end