Page 1 of 1

Calling Win32 API from PureBasic examples

Posted: Sat Apr 26, 2008 12:34 pm
by codefire
Hi,

I'm looking for some examples on calling Win32 API from PureBasic.

I have:
- access to the Win32 Help on MSDN
- looked at the example win32 api PB example (draw an ellipse)

I need more information and examples.

In particular I'd like to start with a simple example: calling GetSystemTime from the kernel32.dll and build up from there.

Any help greatly appreciated.

Thanks,
Tony

Posted: Sat Apr 26, 2008 1:06 pm
by Trond

Code: Select all

GetSystemTime_(@Time.SYSTEMTIME)
Debug Time\wYear
Debug Time\wMonth
Debug Time\wDayOfWeek
Debug Time\wDay         
Debug Time\wHour        
Debug Time\wMinute      
Debug Time\wSecond      
Debug Time\wMilliseconds


Posted: Sat Apr 26, 2008 3:38 pm
by codefire
Thanks. It's handy the structures are pre-defined :)