Discussion:
TWAPI on Windows Arm64
Add Reply
Michael Niehren
2024-12-17 11:36:35 UTC
Reply
Permalink
Hi,

is anybody using the twapi-Module on an Arm64-Windows ?

If i try to load it, i got the the following error:
() 1 % package require twapi
couldn't load
library "C:/Users/aschm/AppData/Local/Temp/TCL00004688/twapi_base64.dll":
invalid argument

Do we need a special Version of the Module for Arm64-Windows ?

The module has version V4.7.2

best regards
Michael
Ashok
2024-12-23 15:50:12 UTC
Reply
Permalink
Sorry, I do not have an ARM system, twapi is only built for x86/x64.
Post by Michael Niehren
Hi,
is anybody using the twapi-Module on an Arm64-Windows ?
() 1 % package require twapi
couldn't load
invalid argument
Do we need a special Version of the Module for Arm64-Windows ?
The module has version V4.7.2
best regards
Michael
Michael Niehren
2024-12-24 14:51:57 UTC
Reply
Permalink
I also have no ARM system here.

I am wondering that other modules compiled for x86/x64 are running fine only
TWAPI not. I cross-compile the other modules under Linux with mingw and use
your binary, all of them are x86/x64 compiled, so it seem's that Windows/ARM
use an x86 emulator.

Do you think it would be possible to cross compile TWAPI under Linux with
mingw too and would that help for using it under Windows/ARM ?

Michael
Post by Ashok
Sorry, I do not have an ARM system, twapi is only built for x86/x64.
Post by Michael Niehren
Hi,
is anybody using the twapi-Module on an Arm64-Windows ?
() 1 % package require twapi
couldn't load
invalid argument
Do we need a special Version of the Module for Arm64-Windows ?
The module has version V4.7.2
best regards
Michael
Ashok
2024-12-28 05:37:45 UTC
Reply
Permalink
I have really no idea. I was not even aware that ARM64 could run x64
binaries so that tells you the level of my knowledge :-)

Apparently, there is the Microsoft Compatibility Toolkit you can run on
ARM64 that will tell you whether a binary is compatible and the reason
why it is not. You need a ARM64 to run in though.

If you do find out, I'd be interested in knowing the answer.

There are a few API's that twapi uses that are not Win32, they are
direct ntdll calls. It is possible the emulator does not support these.
But that is only a wild guess.

/Ashok
Post by Michael Niehren
I also have no ARM system here.
I am wondering that other modules compiled for x86/x64 are running fine only
TWAPI not. I cross-compile the other modules under Linux with mingw and use
your binary, all of them are x86/x64 compiled, so it seem's that Windows/ARM
use an x86 emulator.
Do you think it would be possible to cross compile TWAPI under Linux with
mingw too and would that help for using it under Windows/ARM ?
Michael
Loading...