Read this, esp. subsections 5/3-5 and 5/3-7.

Getting a dismissal falls far short of what it takes to establish a case for malicious prosecution.
Quote Quoting Lyddon v Shaw, 56 Ill. App.3d 815, 372 N.E.2d 685 (1978) - Elements of Malicious Prosecution
Under Illinois law, a complaint for malicious prosecution must allege five distinct elements: (1) institution and prosecution of judicial proceedings by the defendant; (2) lack of probable cause for those proceedings; (3) malice in instituting the proceedings; (4) termination of the prior cause in plaintiff's favor, and (5) suffering by plaintiff of some special injury, beyond the anxiety, loss of time, attorney fees, and necessity for defending one's reputation, which are an unfortunate incident of many (if not most) lawsuits. (E.g., Madda v. Reliance Insurance Co. (1977), 53 Ill. App.3d 67, 70.)