Comment tester un fichier DLL Windows pour déterminer s'il est en 32 bits ou 64 bits ?
Comment tester un fichier DLL Windows pour déterminer s'il est en 32 bits ou 64 bits ?
Comment tester un fichier DLL Windows pour déterminer s'il est en 32 bits ou 64 bits ?
Re: Comment tester un fichier DLL Windows pour déterminer s'il est en 32 bits ou 64 bits ?
Détails techniques
Un fichier DLL utilise le format exécutable PE, et il n'est pas trop difficile d'en extraire ces informations.
Consultez cet [article MSDN sur le format de fichier PE](http://reversingproject.info/wp-content/uploads/2009/05/an_in-depth_look_into_the_win32_portable_executable_file_format_part_1.pdf) pour une vue d'ensemble. Vous devez lire l'en-tête MS-DOS, puis lire la structure [IMAGE_NT_HEADERS](http://msdn.microsoft.com/en-us/library/ms680336(VS.85).aspx). Celle-ci contient la structure [IMAGE_FILE_HEADER](http://msdn.microsoft.com/en-us/library/ms680313(VS.85).aspx) qui contient les informations dont vous avez besoin dans
Un fichier DLL utilise le format exécutable PE, et il n'est pas trop difficile d'en extraire ces informations.
Consultez cet [article MSDN sur le format de fichier PE](http://reversingproject.info/wp-content/uploads/2009/05/an_in-depth_look_into_the_win32_portable_executable_file_format_part_1.pdf) pour une vue d'ensemble. Vous devez lire l'en-tête MS-DOS, puis lire la structure [IMAGE_NT_HEADERS](http://msdn.microsoft.com/en-us/library/ms680336(VS.85).aspx). Celle-ci contient la structure [IMAGE_FILE_HEADER](http://msdn.microsoft.com/en-us/library/ms680313(VS.85).aspx) qui contient les informations dont vous avez besoin dans