If you already have code that does that using windows API, then just keep using that.

The windows API is C/C++, right?

Cheers,
_