Using the king to prevent castling What is a more difficult problem which involves using the king to prevent castling than the following problem?

White to play and win:

[FEN "r3k3/5p2/2K2P1P/b1N1P2P/8/8/4n3/8 w q - 0 1"]
In this famous problem by H. Hultberg (1944), the white king castles to prevent Black from castling:
[FEN &quot;r3k2/1p1p2p1/2pP3p/8/8/5R2/PPPP4/4K2R - - - 0 0 &quot;]

White to mate in two moves.
According to chess problem conventions, castling is presumed to be legal unless it's provably illegal. In this position, you can prove that at least one player has lost the right to castle, but you don't know which one. (If the white rook on f3 came from a1, the white king must have moved to let it out. If the rook on f3 is a promoted piece, it must have visited a8, e8, or f8 before escaping the 8th rank, so the black king or rook must have moved.)
1.Rhf1? fails to 1...O-O-O.
1.O-O! and 2.Rf8#, as Black is now unable to castle.