But I believe those examples make use of MFC....

and about WinAPI...

This is what confuses me... those codes can be implemented to a winAPI application ?