Re: Requested API Structure and constants
Posted: Wed Feb 19, 2025 5:44 pm
Code: Select all
#PROCESS_QUERY_LIMITED_INFORMATION = $1000
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
#PROCESS_QUERY_LIMITED_INFORMATION = $1000
Code: Select all
CompilerIf Not Defined(AF_INET6, #PB_Constant)
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Linux
#AF_INET6 = 10
CompilerCase #PB_OS_MacOS
#AF_INET6 = 30
CompilerCase #PB_OS_Windows
#AF_INET6 = 23
CompilerEndSelect
CompilerEndIf
Code: Select all
CompilerIf Not Defined(in6_addr, #PB_Structure)
Structure in6_addr Align #PB_Structure_AlignC
StructureUnion
s6_addr.a[16]
s6_addr16.u[8]
s6_addr32.l[4]
EndStructureUnion
EndStructure
CompilerEndIf
Code: Select all
CompilerIf Not Defined(SOCKADDR_IN6, #PB_Structure)
Structure SOCKADDR_IN6 Align #PB_Structure_AlignC
CompilerIf #PB_Compiler_OS = #PB_OS_MacOS
sin6_len.a
sin6_family.a
CompilerElse
sin6_family.u
CompilerEndIf
sin6_port.u
sin6_flowinfo.l
sin6_addr.in6_addr
sin6_scope_id.l
EndStructure
CompilerEndIf
Code: Select all
Structure SYSTEM_POWER_STATUS
ACLineStatus.b
BatteryFlag.b
BatteryLifePercent.b
SystemStatusFlag.b ; <- Showing as "Reserved1.b" in Structure Viewer
BatteryLifeTime.l
BatteryFullLifeTime.l
EndStructure
Code: Select all
Enumeration
#ASSOCSTR_COMMAND = 1
#ASSOCSTR_EXECUTABLE
#ASSOCSTR_FRIENDLYDOCNAME
#ASSOCSTR_FRIENDLYAPPNAME
#ASSOCSTR_NOOPEN
#ASSOCSTR_SHELLNEWVALUE
#ASSOCSTR_DDECOMMAND
#ASSOCSTR_DDEIFEXEC
#ASSOCSTR_DDEAPPLICATION
#ASSOCSTR_DDETOPIC
#ASSOCSTR_INFOTIP
#ASSOCSTR_QUICKTIP
#ASSOCSTR_TILEINFO
#ASSOCSTR_CONTENTTYPE
#ASSOCSTR_DEFAULTICON
#ASSOCSTR_SHELLEXTENSION
#ASSOCSTR_MAX
EndEnumerationCode: Select all
#PB_OpenGL_GetContext For some reason still not added?Little John wrote: Mon Jun 20, 2022 8:46 pmhttps://github.com/tpn/winsdk-10/blob/m ... /WinUser.hCode: Select all
#KEYEVENTF_UNICODE = 4 #KEYEVENTF_SCANCODE = 8
Code: Select all
#PROCESS_QUERY_LIMITED_INFORMATION = $1000
Code: Select all
#MOUSEEVENTF_HWHEEL = $01000
It is... see Freds post earlier :Rinzwind wrote: Fri Jan 30, 2026 5:36 am ...
Should be a public github project I guess with strict and useful doc with translation rules (or even automated)?
If you can, feel free to create patch for these adds, directly on https://github.com/fantaisie-software/purebasic (located in Residents/ dir)