Windows SCM functional. fixed C3867 with lambdas.

TODO: implement MMIDEVICE manipulation.