Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FreemudWrapper
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李定达
FreemudWrapper
Commits
1b2543ef
Commit
1b2543ef
authored
Aug 12, 2017
by
李定达
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.导出RESGetValue接口
parent
3115db20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
FreemudWrapper.cpp
+17
-1
FreemudWrapper.suo
+0
-0
No files found.
FreemudWrapper.cpp
View file @
1b2543ef
...
...
@@ -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_
RES
GETVALUE
)
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
FreemudWrapper.suo
View file @
1b2543ef
No preview for this file type
wuyang.zou
@wuyang.zou
mentioned in commit
288759ba
May 27, 2019
mentioned in commit
288759ba
mentioned in commit 288759ba5365501460d4bbb2a288ae08eace1f46
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment