\>is Interlocked API is still in use?
Yes Interlocked API is still in use.
\> why and when it is used instead of atomic?
I agree with Michael. If portability is not required, both methods can be used. If portability is required, it is recommended to use atomic.