Wrap it in an extern C
This commit is contained in:
parent
fa746abd4f
commit
654c258bed
@ -80,7 +80,7 @@
|
||||
<TargetName>OpenBanapass</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<TargetName>OpenBanapass</TargetName>
|
||||
<TargetName>bngrw</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
@ -139,8 +139,9 @@
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;OPENBANAPASS_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||
<CallingConvention>FastCall</CallingConvention>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
|
@ -3,6 +3,9 @@
|
||||
|
||||
#define BANA_API_VERSION "Ver 1.6.0"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
ULONGLONG BngRwAttach(UINT a1, char* a2, int a3, int a4, void* callback, long a6)
|
||||
{
|
||||
log("BngRwAttach()\n");
|
||||
@ -161,4 +164,6 @@ int BngRwReqWaitTouch(UINT a, int b, UINT c, ULONGLONG d, ULONGLONG e)
|
||||
{
|
||||
log("BngRwReqWaitTouch()\n");
|
||||
return GetAsyncKeyState(VK_RETURN) ? 0 : -1;
|
||||
}
|
||||
|
||||
}
|
@ -4,25 +4,30 @@
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
|
||||
BANA_API ULONGLONG BngRwAttach(UINT, char*, int, int, void*, long);
|
||||
BANA_API int BngRwDevReset(UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API ULONGLONG BngRwExReadMifareAllBlock();
|
||||
BANA_API void BngRwFin();
|
||||
BANA_API UINT BngRwGetFwVersion(UINT);
|
||||
BANA_API UINT BngRwGetStationID(UINT);
|
||||
BANA_API UINT BngRwGetTotalRetryCount(UINT);
|
||||
BANA_API const char* BngRwGetVersion();
|
||||
BANA_API long BngRwInit();
|
||||
BANA_API ULONGLONG BngRwIsCmdExec(UINT);
|
||||
BANA_API int BngRwReqAction(UINT, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqAiccAuth(UINT, int, UINT, int*, ULONGLONG, ULONGLONG, ULONGLONG*);
|
||||
BANA_API int BngRwReqBeep(UINT, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqCancel(UINT);
|
||||
BANA_API int BngRwReqFwCleanup(UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqFwVersionup(UINT, ULONGLONG, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqLatchID(UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqLed(UINT, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqSendMailTo(UINT, int, UINT, int*, char*, char*, char*, char*, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqSendUrlTo(UINT, int, UINT, int*, char*, char*, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqWaitTouch(UINT, int, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API ULONGLONG BngRwReqSetLedPower();
|
||||
extern "C"
|
||||
{
|
||||
|
||||
BANA_API ULONGLONG BngRwAttach(UINT, char*, int, int, void*, long);
|
||||
BANA_API int BngRwDevReset(UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API ULONGLONG BngRwExReadMifareAllBlock();
|
||||
BANA_API void BngRwFin();
|
||||
BANA_API UINT BngRwGetFwVersion(UINT);
|
||||
BANA_API UINT BngRwGetStationID(UINT);
|
||||
BANA_API UINT BngRwGetTotalRetryCount(UINT);
|
||||
BANA_API const char* BngRwGetVersion();
|
||||
BANA_API long BngRwInit();
|
||||
BANA_API ULONGLONG BngRwIsCmdExec(UINT);
|
||||
BANA_API int BngRwReqAction(UINT, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqAiccAuth(UINT, int, UINT, int*, ULONGLONG, ULONGLONG, ULONGLONG*);
|
||||
BANA_API int BngRwReqBeep(UINT, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqCancel(UINT);
|
||||
BANA_API int BngRwReqFwCleanup(UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqFwVersionup(UINT, ULONGLONG, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqLatchID(UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqLed(UINT, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqSendMailTo(UINT, int, UINT, int*, char*, char*, char*, char*, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqSendUrlTo(UINT, int, UINT, int*, char*, char*, ULONGLONG, ULONGLONG);
|
||||
BANA_API int BngRwReqWaitTouch(UINT, int, UINT, ULONGLONG, ULONGLONG);
|
||||
BANA_API ULONGLONG BngRwReqSetLedPower();
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user