PB integrated Windows API and API Viewer

Windows specific forum
SMaag
Enthusiast
Enthusiast
Posts: 324
Joined: Sat Jan 14, 2023 6:55 pm
Location: Bavaria/Germany

PB integrated Windows API and API Viewer

Post by SMaag »

..\PureBasic\Compilers\APIFunctionListing.txt contains a List of Windows API Functions.
Is this the actual list of Windows APi integrated in PB?


--------------------------------------------------------------------------------------
ActiveVB.de provides an API Viewer which can directly export the API Definition as PB Code

Here the example for CreateWindowExA created from ApiViewer!

OpenLibrary(0,"user32.dll")
CallFunction(0,"CreateWindowExA",dwExStyle.l, lpClassName.String, lpWindowName.String, dwStyle.l, x.l, y.l, nWidth.l, nHeight.l, hWndParent.l, hMenu.l, hInstance.l, lpParam.l)

You can download it from
https://activevb.de/rubriken/apiviewer/ ... ereng.html
User avatar
mk-soft
Always Here
Always Here
Posts: 6242
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB integrated Windows API and API Viewer

Post by mk-soft »

Most Window API functions are already declared. You do not need to write the API function ...A or ...W. These are automatically extended internally by PB to the correct ASCII or WideChar API function.

Code: Select all


; CallFunction(0,"CreateWindowExA",dwExStyle.l, lpClassName.String, lpWindowName.String, dwStyle.l, x.l, y.l, nWidth.l, nHeight.l, hWndParent.l, hMenu.l, hInstance.l, lpParam.l)
r1 = CreateWindowEx_(dwExStyle.l, lpClassName.s, lpWindowName.s, dwStyle.l, x.l, y.l, nWidth.l, nHeight.l, hWndParent.i, hMenu.l, hInstance.i, lpParam.i)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply