While you can use DirectShow's H.264 decoder on Windows 10, Microsoft has moved towards using the Media Foundation framework, which they introduced with Windows Vista. The H.264 codec is natively supported by Media Foundation in Windows 10. Media Foundation is recommended for all new video development efforts, as DirectShow is considered a legacy API and may not have the same level of support and updates going forward.
That said, if you are dealing with an existing application that utilizes DirectShow, you can still use the H.264 decoder on Windows 10, but you might need to install it separately if it isn't already present on your system. You can download and install an H.264 DirectShow filter/decoder from various sources online, but ensure that you are downloading from a reliable source to protect your system from potential threats.
Please note that you should always comply with the necessary copyright laws and licensing terms associated with any codec or software you install.