Thread overview
GetWindowText & GetWindowTextLength
Jan 04, 2014
Bauss
Jan 04, 2014
Adam D. Ruppe
Jan 04, 2014
Bauss
January 04, 2014
I cannot seem to access those two functions from the Windows API.

They doesn't seem to be in the core.sys.windows.windows module either.

So I'm kinda lost as for what to do.
January 04, 2014
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.
January 04, 2014
Perfect. Thank you!