Home > database >  Pb call crypt32. The problem of DLL function definition
Pb call crypt32. The problem of DLL function definition

Time:10-26

2, CertOpenStore type using a specified storage area to provide certificate to open a store,
HCERTSTORE WINAPI CertOpenStore (
LPCSTR lpszStoreProvider,//specifies the type of storage, a large number of types, see the MSDN
DWORD dwMsgAndCertEncodingType,//only if a parameter for CERT_STORE_PROV_MSG CERT_STORE_PROV_PKCS7, or only use CERT_STORE_PROV_FILENAME, otherwise must be 0
HCRYPTPROV HCRYPTPROV,//password algorithm handles the disclosing party, it is recommended to use the default, the parameter set to NULL
DWORD dwFlags,//it is composed of high and low byte, many parameters,
Const void * pvPara//void type, can point to any type data,
);

As above, is because of the need to call in the pb certificate API operation, in pb into definition, problem, HCERTSTORE this return, I don't know should be to define it as what type, I saw on the net deiphi and c + + example, do not see this exactly is what type, see have made similar friends advice,

CodePudding user response:

Focus on pb used in the field of certificate, to help the building roof

CodePudding user response:

refer to the original poster cbs_520 response:
2, CertOpenStore type using a specified storage area to provide certificate to open a store,
HCERTSTORE WINAPI CertOpenStore (
LPCSTR lpszStoreProvider,//specifies the type of storage, a large number of types, see the MSDN
DWORD dwMsgAndCertEncodingType,//only if a parameter for CERT_STORE_PROV_MSG CERT_STORE_PROV_PKCS7, or only use CERT_STORE_PROV_FILENAME, otherwise must be 0
HCRYPTPROV HCRYPTPROV,//password algorithm handles the disclosing party, it is recommended to use the default, the parameter set to NULL
DWORD dwFlags,//it is composed of high and low byte, many parameters,
Const void * pvPara//void type, can point to any type data,
);

As above, is because of the need to call in the pb certificate API operation, in pb into definition, problem, HCERTSTORE this return, I don't know should be to define it as what type, I saw on the net deiphi and c + + example, do not see this exactly is what type, see have made similar friends advice,


With Delphi or c + + encapsulated into a DLL and use pb to call

CodePudding user response:

refer to the second floor lzp_lrp response:
Quote: refer to the original poster cbs_520 response:

2, CertOpenStore type using a specified storage area to provide certificate to open a store,
HCERTSTORE WINAPI CertOpenStore (
LPCSTR lpszStoreProvider,//specifies the type of storage, a large number of types, see the MSDN
DWORD dwMsgAndCertEncodingType,//only if a parameter for CERT_STORE_PROV_MSG CERT_STORE_PROV_PKCS7, or only use CERT_STORE_PROV_FILENAME, otherwise must be 0
HCRYPTPROV HCRYPTPROV,//password algorithm handles the disclosing party, it is recommended to use the default, the parameter set to NULL
DWORD dwFlags,//it is composed of high and low byte, many parameters,
Const void * pvPara//void type, can point to any type data,
);

As above, is because of the need to call in the pb certificate API operation, in pb into definition, problem, HCERTSTORE this return, I don't know should be to define it as what type, I saw on the net deiphi and c + + example, do not see this exactly is what type, see have made similar friends advice,


With Delphi or c + + encapsulated into a DLL and use pb to call


Don't know if the moderators have the related resources to recommend, I am willing to pay to solve this problem

CodePudding user response:

reference cbs_520 reply: 3/f
Quote: refer to the second floor lzp_lrp response:

The
Quote: refer to the original poster cbs_520 response:

2, CertOpenStore type using a specified storage area to provide certificate to open a store,
HCERTSTORE WINAPI CertOpenStore (
LPCSTR lpszStoreProvider,//specifies the type of storage, a large number of types, see the MSDN
DWORD dwMsgAndCertEncodingType,//only if a parameter for CERT_STORE_PROV_MSG CERT_STORE_PROV_PKCS7, or only use CERT_STORE_PROV_FILENAME, otherwise must be 0
HCRYPTPROV HCRYPTPROV,//password algorithm handles the disclosing party, it is recommended to use the default, the parameter set to NULL
DWORD dwFlags,//it is composed of high and low byte, many parameters,
Const void * pvPara//void type, can point to any type data,
);

As above, is because of the need to call in the pb certificate API operation, in pb into definition, problem, HCERTSTORE this return, I don't know should be to define it as what type, I saw on the net deiphi and c + + example, do not see this exactly is what type, see have made similar friends advice,


With Delphi or c + + encapsulated into a DLL and use pb to call


Don't know if the moderators have the related resources to recommend, I am willing to pay to solve this problem


Leave a QQ number
  • Related