PDA

View Full Version : user32dll + window size



Lionheart008
12-11-2009, 00:15
..quite another thing

how can I get more infos/content about "user32.dll" property?


uses "console"

%Screen_Info = 48

DECLARE FUNCTION SystemParametersInfo LIB "USER32.DLL" ALIAS "SystemParametersInfoA" _
( _
BYVAL uAction AS DWORD, _
BYVAL uParam AS DWORD, _
BYREF lpvParam AS ANY, _
BYVAL fuWinIni AS DWORD _
) AS LONG

TYPE RECT
nLeft AS LONG
nTop AS LONG
nRight AS LONG
nBottom AS LONG
END TYPE

FUNCTION TBMAIN() AS LONG
LOCAL rc AS RECT

CALL SystemParametersInfo(%Screen_Info,0,rc,0)
MSGBOX (0, "size width = " & TRIM$(STR$(rc.nRight)) & " and size height = " & TRIM$(STR$(rc.nBottom)), %MB_OK, "workspace info")

TBMAIN=0
END FUNCTION

good night, frank lionheart

Petr Schreiber
12-11-2009, 09:01
Hi Frank,

you can have a look here, it is tool long list to retype it here:
MSDN (http://msdn.microsoft.com/en-us/library/ms724947%28VS.85%29.aspx)

MSDN is usually good source for Win32 :)

Lionheart008
12-11-2009, 17:35
thanks petr, but can you check your msdn link in last post again ? it doesn't work for me, cannot load this page ("server not found") etcpp. bye, frank

Petr Schreiber
12-11-2009, 17:52
Hi Frank,

I checked the link and in Firefox (at least) it works without problem.

Anyway - try to visit msdn.microsoft.com and then search for SystemParametersInfo. You should get there in few seconds.