Fix exports for 32/64 dlls
This commit is contained in:
parent
d6ab3f90e2
commit
c2e9c5c162
@ -11,8 +11,6 @@ project "iDmacDrv"
|
||||
|
||||
includedirs { "src", }
|
||||
|
||||
linkoptions { "/DEF:iDmacDrv/src/Source.def" }
|
||||
|
||||
prebuildcommands {
|
||||
"if not exist $(TargetDir)output mkdir $(TargetDir)output",
|
||||
}
|
||||
@ -24,6 +22,8 @@ project "iDmacDrv"
|
||||
|
||||
filter "platforms:x86"
|
||||
targetsuffix "32"
|
||||
linkoptions { "/DEF:iDmacDrv/src/Source32.def" }
|
||||
|
||||
filter "platforms:x64"
|
||||
targetsuffix "64"
|
||||
targetsuffix "64"
|
||||
linkoptions { "/DEF:iDmacDrv/src/Source64.def" }
|
@ -10,7 +10,7 @@ iDmacDrvRegisterBufferRead @7
|
||||
iDmacDrvRegisterBufferWrite @8
|
||||
iDmacDrvMemoryRead @9
|
||||
iDmacDrvMemoryWrite @10
|
||||
iDmacDrvMemoryReadExt @11
|
||||
iDmacDrvMemoryWriteExt @12
|
||||
iDmacDrvMemoryBufferRead @13
|
||||
iDmacDrvMemoryBufferWrite @14
|
||||
iDmacDrvMemoryBufferRead @11
|
||||
iDmacDrvMemoryBufferWrite @12
|
||||
iDmacDrvMemoryReadExt @13
|
||||
iDmacDrvMemoryWriteExt @14
|
15
iDmacDrv/src/Source64.def
Normal file
15
iDmacDrv/src/Source64.def
Normal file
@ -0,0 +1,15 @@
|
||||
EXPORTS
|
||||
|
||||
iDmacDrvOpen @1
|
||||
iDmacDrvClose @2
|
||||
iDmacDrvDmaRead @3
|
||||
iDmacDrvDmaWrite @4
|
||||
iDmacDrvRegisterRead @5
|
||||
iDmacDrvRegisterWrite @6
|
||||
iDmacDrvRegisterBufferRead @7
|
||||
iDmacDrvRegisterBufferWrite @8
|
||||
iDmacDrvMemoryRead @9
|
||||
iDmacDrvMemoryWrite @10
|
||||
iDmacDrvMemoryBufferRead @11
|
||||
iDmacDrvMemoryBufferWrite @12
|
||||
iDmacDrvProgramDownload @13
|
@ -83,16 +83,6 @@ extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryWrite(int a1, DWORD B
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryReadExt(int a1, DWORD BytesReturned, int a3, LPVOID lp, DWORD nOutBufferSize, LPVOID a6)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryWriteExt(int a1, int a2, int a3, void *Src, rsize_t DstSize, LPVOID lp)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryBufferRead(int a1, DWORD BytesReturned, LPVOID lp, UINT_PTR ucb, LPVOID a5)
|
||||
{
|
||||
return 0;
|
||||
@ -103,6 +93,27 @@ extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryBufferWrite(int a1, i
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef _M_IX86
|
||||
|
||||
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryReadExt(int a1, DWORD BytesReturned, int a3, LPVOID lp, DWORD nOutBufferSize, LPVOID a6)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryWriteExt(int a1, int a2, int a3, void *Src, rsize_t DstSize, LPVOID lp)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
extern "C" __declspec(dllexport) int __cdecl iDmacDrvProgramDownload()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user