Thread overview | |||||
---|---|---|---|---|---|
|
January 04, 2014 GetWindowText & GetWindowTextLength | ||||
---|---|---|---|---|
| ||||
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 Re: GetWindowText & GetWindowTextLength | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bauss | 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 Re: GetWindowText & GetWindowTextLength | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | Perfect. Thank you! |
Copyright © 1999-2021 by the D Language Foundation