Structure Definitions

Back Up

PowerBuilder structure definitions for use with Win32 API

Name
PowerBuilder definition
Note
str_browseinfo $PBExportHeader$str_browseinfo.srs
global type str_browseinfo from structure
    long        hwndowner
    long        pidlroot
    string        pszdisplayname
    string        lpsztitle
    unsignedinteger        ulflags
    long        lpfn
    long        lparam
    integer        iimage
end type
str_logfont $PBExportHeader$str_logfont.srs
global type str_logfont from structure
    long        lfheight
    long        lfwidth
    long        lfescapement
    long        lforientation
    long        lfweight
    character        lfitalic
    character        lfunderline
    character        lfstrikeout
    character        lfcharset
    character        lfoutprecision
    character        lfclipprecision
    character        lfquality
    character        lfpitchandfamily
    character        lffacename[32]
end type
str_choosefont $PBExportHeader$str_choosefont.srs
global type str_choosefont from structure
    long        lstructsize
    unsignedlong        hwndowner
    unsignedlong        hdc
    long        lplogfont
    long        ipointsize
    long        flags
    long        rgbcolors
    long        lcustdata
    long        lpfnhook
    string        lptemplatename
    unsignedlong        hinstance
    string        lpszstyle
    integer        nfonttype
    integer        missingalignment
    unsignedlong        nsizemin
    unsignedlong        nsizemax
end type
Lstructsize = 60
str_browseinfo
$PBExportHeader$str_browseinfo.srs
global type str_browseinfo from structure
long hwndowner
long pidlroot
string pszdisplayname
string lpsztitle
unsignedinteger ulflags
long lpfn
long lparam
integer iimage
end type
Str_choosecolor
$PBExportHeader$str_choosecolor.srs
global type str_choosecolor from structure
long lstructsize
ulong hwndowner
ulong hinstance
long rgbresult
blob lpcustcolors
long flags
long lcustdata
long lpfnhook
long lptemplatename
end type
Lstructsize = 36
str_connectioninfo
$PBExportHeader$str_connectioninfo.srs
global type str_connectioninfo from structure
string s_connection
string s_user
string s_password
boolean b_Valid
boolean b_Save
end type
str_filedata
$PBExportHeader$str_filedata.srs
global type str_filedata from structure
unsignedlong ul_FileAttributes
str_filedatetime str_CreationTime
str_filedatetime str_LastAccessTime
str_filedatetime str_LastWriteTime
unsignedlong ul_FileSizeHigh
unsignedlong ul_FileSizeLow
unsignedlong ul_Reserved0
unsignedlong ul_Reserved1
character ch_FileName[260]
character ch_AlternateFileName
end type
str_filedatetime
$PBExportHeader$str_filedatetime.srs
global type str_filedatetime from structure
unsignedlong ul_LowDateTime
unsignedlong ul_HighDateTimeend type
str_fileversioninfo
$PBExportHeader$str_fileversioninfo.srs
global type str_fileversioninfo from structure
string ProductName
string ProductVersion
string OriginalFilename
string FileDescription
string FileVersion
string CompanyName
string LegalCopyright
string LegalTrademarks
string InternalName
string PrivateBuild
string SpecialBuild
string Comments
end type
str_linger $PBExportHeader$str_linger.srs
$PBExportComments$Winsock linger structure for setsockoptions
global type str_linger from structure
        integer          l_onoff
        integer          l_linger
end type
str_memorystatus
$PBExportHeader$str_memorystatus.srs
global type str_memorystatus from structure
long dwlength
long dwmemoryload
long dwtotalphys
long dwavailphys
long dwtotalpagefile
long dwavailpagefile
long dwtotalvirtual
long dwavailvirtual
end type
DwLength = 40
str_minmaxinfo
$PBExportHeader$str_minmaxinfo.srs
global type str_minmaxinfo from structure
str_Point ptReserved
str_Point ptMaxSize
str_Point ptMaxPosition
str_Point ptMinTrackSize
str_Point ptMaxTrackSize
end type
str_point
$PBExportHeader$str_point.srs
global type str_point from structure
long lx
long ly
end type
str_procssentry32 $PBExportHeader$str_processentry32.srs
global type str_PROCESSENTRY32 from structure
    ulong dwSize
ulong cntUsage
ulong th32ProcessID
ulong th32DefaultHeapID
ulong th32ModuleID
ulong cntThreads
ulong th32ParentProcessID
LONG pcPriClassBase
ulong dwFlags
char szExeFile[256]
end type

str_processinformation $PBExportHeader$str_processinformation.srs
global type str_processinformation from structure
    ulong        hprocess
    ulong        hthread
    long        dwprocessid
    long        dwthreadid
end type
str_rasconn
$PBExportHeader$str_rasconn.srs
global type str_rasconn from structure
long dwsize
unsignedlong hrasconn
character szentryname[257]
character szdevicetype[17]
character szdevicename[129]
character dummy
end type
Dwsize = 412
str_rasdialdlg
$PBExportHeader$str_rasdialdlg
global type str_rasdialdlg from structure
long dwSize
ulong hwndOwner
long dwFlags
long xDlg
long yDlg
long dwSubEntry
long dwError
long Reserved1
long Reserved2
end type
Dwsize = 36
str_rasdialextensions
$PBExportHeader$str_rasdialextensions.srs
global type str_rasdialextensions from structure
long dwSize
long dwfOptions
ulong hwndParent
long reserved
end type
Dwsize = 16
str_rasdialparms
$PBExportHeader$str_rasdialparms.srs
global type str_rasdialparms from structure
long dwsize
character szentryname[257]
character szphonenumber[129]
character szcallbacknumber[129]
character szusername[257]
character szpassword[257]
character szdomain[16]
end type
Dwsize = 1052
str_rasentryname
$PBExportHeader$str_rasentryname
global type str_rasentryname from structure
long dwsize
character rasentryname[257]
character dummy[3]
end type
Dwsize = 264
str_rasstatus
$PBExportHeader$str_rasstatus
global type str_rasstatus from structure
long dwsize
long rasconnstatus
long dwerror
character fszdevicetype[17]
character szdevicename[129]
end type
Dwsize = 160
str_remote_name_info $PBExportHeader$str_remote_name_info.srs
global type str_remote_name_info from structure
string universalname
string connexionname
string remainingpath
end type
str_securityattributes $PBExportHeader$str_securityattributes.srs
global type str_securityattributes from structure
    ulong        nlength
    ulong        lpSecurityDescriptor
    boolean        bInheritHandle
end type
str_startupinfo $PBExportHeader$str_startupinfo.srs
global type str_startupinfo from structure
    long        cb
    string        lpreserved
    string        lpdesktop
    string        lptitle
    long        dwx
    long        dwy
    long        dwxsize
    long        dwysize
    long        dwxcountchars
    long        dwycountchars
    long        dwfillattribute
    long        dwflags
    long        wshowwindow
    long        cbreserved2
    long        lpreserved2
    ulong        hstdinput
    ulong        hstdoutput
    ulong        hstderror
end type
str_systemtime
$PBExportHeader$str_systemtime.srs
global type str_systemtime from structure
unsignedinteger ui_WYear
unsignedinteger ui_WMonth
unsignedinteger ui_WDayOfWeek
unsignedinteger ui_WDay
unsignedinteger ui_WHour
unsignedinteger ui_WMinute
unsignedinteger ui_Wsecond
unsignedinteger ui_WMilliseconds
end type
str_transarray
$PBExportHeader$str_transarray.srs
global type str_transarray from structure
unsignedinteger wlanguageid
unsignedinteger wcharacterset
end type
str_vs_fixedfileinfo
$PBExportHeader$str_vs_fixedfileinfo.srs
global type str_vs_fixedfileinfo from structure
long dwsignature
long dwstrucversion
long dwfileversionms
long dwfileversionls
long dwproductversionms
long dwproductversionls
long dwfileflagmask
long dwfileflags
long dwfileos
long dwfiletype
long dwfilesubtype
long dwfiledatems
long dwfiledatels
end type
str_wksta_user_info_1 $PBExportHeader$wksta_user_info_1.srs
global type wksta_user_info_1 from structure
        long            username
        long            logon_domain
        long            oth_domains
        long            logon_server
end type
str_sockaddr $PBExportHeader$str_sockaddr.srs
$PBExportComments$WINSOCK sockaddr structure for connect and bind
global type str_sockaddr from structure
        integer          sin_family
        unsignedinteger          sin_port
        character                sin_addr[4]
        character                sin_zero[8]
end type
str_wsadata $PBExportHeader$str_wsadata.srs
$PBExportComments$WINSOCK structure for WSAStartup
global type str_wsadata from structure
        unsignedinteger          version
        unsignedinteger          highversion
        character                description[257]
        character                systemstatus[129]
        unsignedinteger          maxsockets
        unsignedinteger          maxupddg
        string           vendorinfo
end type

 

Back Up