EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
987 stars 155 forks source link

[1805] Prototype More Functions #2263

Open Rixxan opened 1 week ago

Rixxan commented 1 week ago

Description

This PR hands over duties for a number of direct calls to the Win32 API to the pywin32 library. These calls help properly prototype a number of used functions and reduce reliance on the direct calling of the Win32 API.

This has the added benefit of helping to properly set up the code to be more stable and reliable when using built 64-bit versions of EDMC. Where pywin32 isn't available, proper prototyping of direct win32 api calls h ave been performed to enhance stability.

Additionally, makes changes to enable the usage of game_running() on Linux.

Type of Change

Enhancement

How Tested

Tested using multiple local builds of EDMC on 32 and 64 bit Windows and ensuring the program executes properly.

Notes

Related to #1805 (though a second look is due when pywin32 307 comes out) Replaces #1808 Closes #610