The CTL_FIND_SUBJECT_PARA structure is used by CertFindCTLInStore with a dwFindType of CTL_FIND_SUBJECT.
typedef struct _CTL_FIND_SUBJECT_PARA {
DWORD cbSize;
PCTL_FIND_USAGE_PARA pUsagePara; // optional
DWORD dwSubjectType;
void *pvSubject;
} CTL_FIND_SUBJECT_PARA, *PCTL_FIND_SUBJECT_PARA;
For CTL_ANY_SUBJECT_TYPE, pvSubject points to the CTL_ANY_SUBJECT_INFO structure which contains the SubjectAlgorithm to be matched in the CTL and the SubjectIdentifer to be matched in one of the CTL entries.
CERT_CONTEXT, CTL_ANY_SUBJECT_INFO, CTL_FIND_USAGE_PARA, CertFindCTLInStore