Windows services API wrapper