Commit 1b2543ef by 李定达

1.导出RESGetValue接口

parent 3115db20
......@@ -30,6 +30,7 @@ void DoCopyFile(const char *dir);
EXTERN_C typedef int (_stdcall *PFN_GETVALUE)(char *, char *);
EXTERN_C typedef int (_stdcall *PFN_RESGETVALUE)(char *, char *);
EXTERN_C typedef int (_stdcall *PFN_GETRSACRET)(int ,const char *,const char *);
int init_sign = 0;
......@@ -129,7 +130,7 @@ extern "C"{
{
HMODULE hMod = GetInstance();
if (hMod) {
PFN_RESGETVALUE pfn_GetValue = (PFN_GETVALUE)GetProcAddress(hMod, "RESGetValue");
PFN_RESGETVALUE pfn_GetValue = (PFN_RESGETVALUE)GetProcAddress(hMod, "RESGetValue");
if (pfn_GetValue) {
return pfn_GetValue(indata, outdata);
}
......@@ -139,4 +140,18 @@ extern "C"{
return -1;
}
__declspec(dllexport) int _stdcall GetRSACret(int partnerId,const char *storeID,const char *posNo)
{
HMODULE hMod = GetInstance();
if (hMod) {
PFN_GETRSACRET pfn_GetValue = (PFN_GETRSACRET)GetProcAddress(hMod, "_GetRSACret@12");
if (pfn_GetValue) {
return pfn_GetValue(partnerId, storeID, posNo);
}
FreeLibrary(hMod);
}
return -1;
}
};
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment