| | |
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 beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





