On Saturday, 4 January 2014 at 02:44:55 UTC, Bauss wrote:
I cannot seem to access those two functions from the Windows
API.
The core.sys.windows module is woefully incomplete. Two options,
either grab the better bindings here:
http://www.dsource.org/projects/bindings/browser/trunk/win32
Or define the functions yourself, paste this into your module:
extern(Windows)
int GetWindowTextLengthW(
HWND hWnd
);
extern(Windows)
int GetWindowTextW(
HWND hWnd,
wchar* lpString,
int nMaxCount
);
then call them normally. Or use the A versions instead of W if
you want to work with ascii char* instead of unicode.