pCertContext = CertFindCertificateInStore(hMyStore,
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
0, CERT_FIND_SUBJECT_STR,
L"tas...@trustmarque.ca", NULL);
When I try to set the pvFindData to a value retrieved from
the command line arguments it fails. For instance...
void main(int argc, char **argv)
{
char certSubject[257];
strcpy(certSubject, argv[1]);
printf("Cert Subject: %s\n", certSubject); // Print
correct value.
...
pCertContext = CertFindCertificateInStore(hMyStore,
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
0, CERT_FIND_SUBJECT_STR,
certSubject, NULL);
...
}
Thanks
--
Yu Chen [MS]
This posting is provided "AS IS" with no warranties, and confers no rights.
"Anastasios Angelidis" <tas...@trustmarque.ca> wrote in message
news:451701c32535$d2776400$a101...@phx.gbl...
Does CERT_FIND_SUBJECT_STR_A work any better?
Regards,
John Banes
[Microsoft Security Developer]
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"Anastasios Angelidis" <tas...@trustmarque.ca> wrote in message
news:451701c32535$d2776400$a101...@phx.gbl...
I tried WCHAR still no go...
I also used wscopy also, WCHAR will only work if my
application is set for unicode my application is not
unicode ready...
>.
>
Thanks
>.
>
--
Yu Chen [MS]
This posting is provided "AS IS" with no warranties, and confers no rights.
"Anastasios Angelidis" <tas...@trustmarque.ca> wrote in message
news:482a01c32557$72d1a430$a101...@phx.gbl...