Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Application type for a .DLL

Aug
1,933
71
When I use @EXETYPE on a .DLL, it returns 6, regardless if it is 32-bit or 64-bit;
Code:
c:\users\jlc\utils>echo %@exetype[ISO8601-x64.dll]
6

c:\users\jlc\utils>echo %@exetype[ISO8601.dll]
6

As @EXETYPE is meant to only return the application type for an .EXE, not a .DLL, another method must be used.

Using the get-peheader from the PowerShell Community Extensions, I can now see if a .DLL is 32-bit or 64-bit.
Code:
c:\users\jlc\utils>pshell /s "$a = get-peheader ISO8601-x64.dll; $a.type"
PE64

c:\users\jlc\utils>pshell /s "$a = get-peheader ISO8601.dll; $a.type"
PE32

See Also: File 64 or 32Bit?

Joe
 
Back
Top