Pairing bluetooth devices on windows via custom UI

When it comes to pairing devices using bluetooth, is it possible to control all the native Windows functions (searching, pairing, assigning ports, etc.) from within a custom UI? In other words, can we treat the windows functions like an API and manage the UX on our own?