How to Control Minifilter from a user mode application

I need to start , stop and attach minifilter from a MFC application
Is there any API for this
Can I use CreateService,OpenService and ControlService ?

Note exactly what you asked, but I always use sc from the command prompt to start, stop & control minifilters
(hence powershell drives me demented since sc is one of the verbs that they have overridden).

See fltuser.h

https://docs.microsoft.com/en-us/windows/desktop/api/fltuser/

Thank you @“Scott_Noone_(OSR)”