| | |
Illegal Indirection Error - CertFindChainInStore
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2009
Posts: 9
Reputation:
Solved Threads: 0
I am getting an Illegal Indirection Error on this code, and I am not quite sure what I am doing wrong.
http://msdn.microsoft.com/en-us/libr...65(VS.85).aspx
That link shows the function and what it should do. Am I on the right track? What do I have to do to fix the error.
http://msdn.microsoft.com/en-us/libr...65(VS.85).aspx
That link shows the function and what it should do. Am I on the right track? What do I have to do to fix the error.
C++ Syntax (Toggle Plain Text)
#include <iostream> #include "windows.h" #include "Wincrypt.h" int main() { PCCERT_CHAIN_CONTEXT chainContext; HCERTSTORE certStore = "MY"; DWORD dwCertEncodingType = X509_ASN_ENCODING; DWORD dwFindFlags = CERT_CHAIN_FIND_BY_ISSUER_NO_KEY_FLAG; DWORD dwFindType = CERT_CHAIN_FIND_BY_ISSUER; const void *pvFindPara = "MyIssuer"; PCCERT_CHAIN_CONTEXT pPrevChainContext = NULL; while (chainContext = CertFindChainInStore(certStore, dwCertEncodingType, dwFindFlags, dwFindType, *pvFindPara, //This line contains the error. pPrevChainContext)) { printf((const char*)chainContext); } system("PAUSE"); return 0; }
![]() |
Similar Threads
- Error of Letter Frequencies in a Text File (C++)
- illegal call error (C++)
- Templates (C++)
- error C3861: identifier not found (C++)
- Can anyone help me with adding 2 polynomials together? (C++)
- error with pointers (C++)
- Parenthesize following expressions (C++)
- assignment operator for a 3d array (C++)
Other Threads in the C++ Forum
- Previous Thread: Function questions
- Next Thread: Hex char to string.
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





