Calling Win32 API from PureBasic examples

Windows specific forum
codefire
User
User
Posts: 38
Joined: Thu Mar 15, 2007 4:32 pm
Location: UK

Calling Win32 API from PureBasic examples

Post 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
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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

codefire
User
User
Posts: 38
Joined: Thu Mar 15, 2007 4:32 pm
Location: UK

Post by codefire »

Thanks. It's handy the structures are pre-defined :)
Post Reply