DirectDraw still works on Windows 10
I just tested on my OS (Windows 10, 1909, no graphic card) (DirectDrawCreateEx and so on, it works but animations are less smooth than with Direct2D
But MS says at DirectDraw :
DirectDraw is no longer recommended for use. With the release of Direct3D 9.0, all two-dimensional functionality is contained within Direct3D, its associated helper functions in D3DX, and the DirectX 11 technology Direct2D. However, the DirectDraw reference documentation is still available in this section.