WinAPI Include-Sammlung

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

Constants:

Code: Alles auswählen

#ANY_SIZE=1
#MAXLEN_PHYSADDR=8
#MAXLEN_IFDESCR=256
Structures:

Code: Alles auswählen

;Commctrl.h
Structure LVFINDINFO
  flags.l 
  psz.s 
  lParam.l 
  pt.point 
  vkDirection.l 
EndStructure 

;Commctrl.h
Structure TVINSERTSTRUCT 
  hParent.l 
  hInsertAfter.l 
  item.TVITEM 
EndStructure 

;Tcpmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h) 
Structure MIB_TCPROW 
  dwState.l 
  dwLocalAddr.l 
  dwLocalPort.l 
  dwRemoteAddr.l 
  dwRemotePort.l 
EndStructure 

;Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIB_IPSTATS 
  dwForwarding.l
  dwDefaultTTL.l
  dwInReceives.l
  dwInHdrErrors.l
  dwInAddrErrors.l
  dwForwDatagrams.l
  dwInUnknownProtos.l
  dwInDiscards.l
  dwInDelivers.l
  dwOutRequests.l
  dwRoutingDiscards.l
  dwOutDiscards.l
  dwOutNoRoutes.l
  dwReasmTimeout.l
  dwReasmReqds.l
  dwReasmOks.l
  dwReasmFails.l
  dwFragOks.l
  dwFragFails.l
  dwFragCreates.l
  dwNumIf.l
  dwNumAddr.l
  dwNumRoutes.l
EndStructure 

;Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIB_TCPSTATS 
  dwRtoAlgorithm.l
  dwRtoMin.l
  dwRtoMax.l
  dwMaxConn.l
  dwActiveOpens.l
  dwPassiveOpens.l
  dwAttemptFails.l
  dwEstabResets.l
  dwCurrEstab.l
  dwInSegs.l
  dwOutSegs.l
  dwRetransSegs.l
  dwInErrs.l
  dwOutRsts.l
  dwNumConns.l
EndStructure 

;Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIB_UDPSTATS 
  dwInDatagrams.l
  dwNoPorts.l
  dwInErrors.l
  dwOutDatagrams.l
  dwNumAddrs.l
EndStructure 

;Ipmib.h on Windows Server 2008 And Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIBICMPSTATS 
  dwMsgs.l
  dwErrors.l
  dwDestUnreachs.l
  dwTimeExcds.l
  dwParmProbs.l
  dwSrcQuenchs.l
  dwRedirects.l
  dwEchos.l
  dwEchoReps.l
  dwTimestamps.l
  dwTimestampReps.l
  dwAddrMasks.l
  dwAddrMaskReps.l
EndStructure 

;Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIBICMPINFO 
  icmpInStats.MIBICMPSTATS
  icmpOutStats.MIBICMPSTATS
EndStructure

;Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIB_IPADDRROW 
  dwAddr.l 
  dwIndex.l 
  dwBCastAddr.l 
  dwReasmSize.l 
  unused1.l 
  unused2.l 
EndStructure 

;Ipmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIB_IPADDRTABLE 
  dwEntries.l 
  mIPInfo.MIB_IPADDRROW[#ANY_SIZE] 
EndStructure

;Shlobj.h
Structure BROWSEINFOS  
  hwndOwner.l  
  pidlRoot.l  
  pszDisplayName.s  
  lpszTitle.s  
  ulFlags.l  
  lpfn.l  
  lParam.l  
  iImage.l  
EndStructure 

;Lmserver.h (include Lm.h)
Structure SERVER_INFO_101  
  dwPlatformId.l  
  lpszServerName.l  
  dwVersionMajor.l  
  dwVersionMinor.l  
  dwType.l  
  lpszComment.l  
EndStructure

;Lmwksta.h (include Lm.h)
Structure WKSTA_INFO_100 
  wki100_platform_id.l
  wki100_computername.l
  wki100_langroup.l
  wki100_ver_major.l
  wki100_ver_minor.l
EndStructure

;Wininet.h
Structure INTERNET_CACHE_ENTRY_INFO
  dwStructSize.l
  lpszSourceUrlName.s
  lpszLocalFileName.s
  CacheEntryType.l
  dwUseCount.l
  dwHitRate.l
  dwSizeLow.l
  dwSizeHigh.l
  LastModifiedTime.FILETIME
  ExpireTime.FILETIME
  LastAccessTime.FILETIME
  LastSyncTime.FILETIME
  *lpHeaderInfo.l
  dwHeaderInfoSize.l
  lpszFileExtension.s
  StructureUnion
    dwReserved.l
    dwExemptDelta.l
  EndStructureUnion
EndStructure

;Vfw.h
Structure VIDEOHDR 
  lpData.l 
  dwBufferLength.l 
  dwBytesUsed.l 
  dwTimeCaptured.l 
  dwUser.l 
  dwFlags.l 
  dwReserved.l[4] 
EndStructure

;Winuser.h (include Windows.h)
Structure FLASHWINFO 
  cbSize.l
  hwnd.l
  dwFlags.l
  uCount.l
  dwTimeout.l
EndStructure

;Cpl.h
Structure NEWCPLINFO  
  dwSize.l  
  dwFlags.l  
  dwHelpContext.l  
  lData.l  
  hIcon.l  
  szName.b[32]  
  szInfo.b[64]  
  szHelpFile.b[128]  
EndStructure

;Iptypes.h (include Iphlpapi.h)
Structure IP_ADDR_STRING  
  Nxt.l  
  IP.b[16]  
  mask.b[16]  
  Context.l  
EndStructure

;Iptypes.h (include Iphlpapi.h)
Structure IP_ADAPTER_INFO  
  Nxt.l  
  ComboIndex.l  
  AdapterName.b[#MAX_ADAPTER_NAME_LENGTH + 4]  
  Description.b[#MAX_ADAPTER_DESCRIPTION_LENGTH + 4]  
  AddressLength.l  
  Adr.b[#MAX_ADAPTER_ADDRESS_LENGTH]  
  Index.l  
  Type.l  
  DhcpEnabled.l  
  CurrentIpAddress.l  
  IpAddressList.IP_ADDR_STRING  
  GatewayList.IP_ADDR_STRING  
  DhcpServer.IP_ADDR_STRING  
  HaveWins.w  
  PrimaryWinsServer.IP_ADDR_STRING  
  SecondaryWinsServer.IP_ADDR_STRING  
  LeaseObtained.l  
  LeaseExpires.l  
EndStructure

;Iptypes.h (include Iphlpapi.h)
Structure FIXED_INFO  
  HostName.b[#MAX_HOSTNAME_LEN + 4]  
  DomainName.b[#MAX_DOMAIN_NAME_LEN + 4]  
  CurrentDnsServer.l  
  DnsServerList.IP_ADDR_STRING  
  NodeType.l  
  ScopeId.b[#MAX_SCOPE_ID_LEN + 4]  
  EnableRouting.l  
  EnableProxy.l  
  EnableDns.l  
EndStructure

;Ifmib.h on Windows Server 2008 and Windows Vista (include Iphlpapi.h)
;Iprtrmib.h on Windows Server 2003, Windows XP, And Windows 2000 (include Iphlpapi.h)
Structure MIB_IFROW  
  wszName.b[#MAX_INTERFACE_NAME_LEN]  
  dwIndex.l
  dwType.l
  dwMtu.l
  dwSpeed.l
  dwPhysAddrLen.l
  bPhysAddr.b[#MAXLEN_PHYSADDR]
  dwAdminStatus.l
  dwOperStatus.l
  dwLastChange.l
  dwInOctets.l
  dwInUcastPkts.l
  dwInNUcastPkts.l
  dwInDiscards.l
  dwInErrors.l
  dwInUnknownProtos.l
  dwOutOctets.l
  dwOutUcastPkts.l
  dwOutNUcastPkts.l
  dwOutDiscards.l
  dwOutErrors.l
  dwOutQLen.l
  dwDescrLen.l
  bDescr.b[#MAXLEN_IFDESCR]
EndStructure  

;Mmsystem.h (include Windows.h)
Structure MIXERCONTROL  
  cbStruct.l  
  dwControlID.l  
  dwControlType.l  
  fdwControl.l  
  cMultipleItems.l  
  szShortName.b[#MIXER_SHORT_NAME_CHARS]  
  szName.b[#MIXER_LONG_NAME_CHARS];  
  lMinimum.l  
  lMaximum.l  
  dwMinimum.l  
  dwMaximum.l  
  Reserved.l[6]
  cSteps.l  
  cbCustomData.l
  dwReserved.l[6]
EndStructure
Header-Angaben wurden ebenfalls hinzugefügt.
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

Structures:

Code: Alles auswählen

;Commctrl.h
Structure NMLVSCROLL
  hdr.NMHDR
  dx.l
  dy.l
EndStructure

;Commctrl.h
Structure NMBCHOTITEM
  hdr.NMHDR
  flags.l
EndStructure 

;Commctrl.h
Structure IMAGELISTDRAWPARAMS
  cbSize.l
  himl.l
  i.l
  hdcDst.l
  x.l
  y.l
  cx.l
  cy.l
  xBitmap.l
  yBitmap.l
  rgbBk.l
  rgbFg.l
  fStyle.l
  dwRop.l
  fState.l
  frame.l
  crEffect.l
EndStructure

;Commctrl.h
Structure MCHITTESTINFO
  cbSize.l
  pt.POINT
  uHIt.l
  st.SYSTEMTIME
EndStructure

;Prsht.h
Structure PSHNOTIFY
  hdr.NMHDR
  lParam.l
EndStructure 

;Winuser.h (include Windows.h)
Structure SCROLLBARINFO
  cbSize.l
  rcScrollBar.RECT
  dxyLineButton.l
  xyThumbTop.l
  xyThumbBottom.l
  reserved.l
  ;rgstate.l[#CCHILDREN_SCROLLBAR+1]
EndStructure

;Commctrl.h
Structure TBMETRICS
  cbSize.l
  dwMask.l
  cxPad.l
  cyPad.l
  cxBarPad.l
  cyBarPad.l
  cxButtonSpacing.l
  cyButtonSpacing.l
EndStructure

;Commctrl.h
Structure TVHITTESTINFO
  pt.POINT
  Flags.l
  hItem.l
EndStructure
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Re: WinAPI Include-Sammlung

Beitrag von ts-soft »

:allright:
Praktische Sache!

Ich würde mir aber Wünschen, das die Strukturen auch 64-Bit tauglich sind. Händel sind immer Integer und nicht Long,
genau wie Pointer. Manchmal erkennt man das schon am Namen.

Gruß
Thomas
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
Benutzeravatar
edel
Beiträge: 3667
Registriert: 28.07.2005 12:39
Computerausstattung: GameBoy
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von edel »

Theme

Code: Alles auswählen

Enumeration ; PROPERTYORIGIN
  #PO_STATE
  #PO_PART
  #PO_CLASS
  #PO_GLOBAL
  #PO_NOTFOUND
EndEnumeration

Enumeration ; THEMESIZE
  #TS_MIN
  #TS_TRUE
  #TS_DRAW
EndEnumeration

Structure DTBGOPTS
  dwSize.l
  dwFlags.l
  rcClip.rect  
EndStructure

#OTD_FORCE_RECT_SIZING  = $00000001
#OTD_NONCLIENT  = $00000002
#OTD_VALIDBITS  = (#OTD_FORCE_RECT_SIZING|#OTD_NONCLIENT)

#DTBG_CLIPRECT  = $00000001
#DTBG_DRAWSOLID  = $00000002
#DTBG_OMITBORDER  = $00000004
#DTBG_OMITCONTENT  = $00000008
#DTBG_COMPUTINGREGION  = $00000010
#DTBG_MIRRORDC  = $00000020
#DTBG_NOMIRROR  = $00000040
#DTBG_VALIDBITS  = (#DTBG_CLIPRECT|#DTBG_DRAWSOLID|#DTBG_OMITBORDER|#DTBG_OMITCONTENT|#DTBG_COMPUTINGREGION|#DTBG_MIRRORDC|#DTBG_NOMIRROR)

#DTT_GRAYED  = $1

#HTTB_BACKGROUNDSEG  = $0000
#HTTB_FIXEDBORDER  = $0002
#HTTB_CAPTION  = $0004
#HTTB_RESIZINGBORDER_LEFT  = $0010
#HTTB_RESIZINGBORDER_TOP  = $0020
#HTTB_RESIZINGBORDER_RIGHT  = $0040
#HTTB_RESIZINGBORDER_BOTTOM  = $0080
#HTTB_RESIZINGBORDER  = (#HTTB_RESIZINGBORDER_LEFT|#HTTB_RESIZINGBORDER_TOP|#HTTB_RESIZINGBORDER_RIGHT|#HTTB_RESIZINGBORDER_BOTTOM)
#HTTB_SIZINGTEMPLATE  = $0100
#HTTB_SYSTEMSIZINGMARGINS  = $0200


#ETDT_DISABLE  = $00000001
#ETDT_ENABLE  = $00000002
#ETDT_USETABTEXTURE  = $00000004
#ETDT_ENABLETAB  = (#ETDT_ENABLE|#ETDT_USETABTEXTURE)
#ETDT_USEAEROWIZARDTABTEXTURE = $00000008
#ETDT_ENABLEAEROWIZARDTAB  = (#ETDT_ENABLE|#ETDT_USEAEROWIZARDTABTEXTURE)
#ETDT_VALIDBITS  = (#ETDT_DISABLE|#ETDT_ENABLE|#ETDT_USETABTEXTURE|#ETDT_USEAEROWIZARDTABTEXTURE)

#STAP_ALLOW_NONCLIENT = (1<<0)
#STAP_ALLOW_CONTROLS  = (1<<1)
#STAP_ALLOW_WEBCONTENT  = (1<<2)
#STAP_VALIDBITS  = (#STAP_ALLOW_NONCLIENT|#STAP_ALLOW_CONTROLS|#STAP_ALLOW_WEBCONTENT)

#SZ_THDOCPROP_DISPLAYNAME  = "DisplayName"
#SZ_THDOCPROP_CANONICALNAME = "ThemeName"
#SZ_THDOCPROP_TOOLTIP  = "ToolTip"
#SZ_THDOCPROP_AUTHOR  = "author"
#WTNCA_NODRAWCAPTION  = $00000001
#WTNCA_NODRAWICON  = $00000002
#WTNCA_NOSYSMENU  = $00000004
#WTNCA_NOMIRRORHELP  = $00000008
#WTNCA_VALIDBITS  = (#WTNCA_NODRAWCAPTION|#WTNCA_NODRAWICON|#WTNCA_NOSYSMENU|#WTNCA_NOMIRRORHELP)


#DTPB_WINDOWDC  = $00000001
#DTPB_USECTLCOLORSTATIC  = $00000002
#DTPB_USEERASEBKGND  = $00000004

#GBF_DIRECT  = $00000001
#GBF_COPY  = $00000002
#GBF_VALIDBITS  = (#GBF_DIRECT|#GBF_COPY)

#BPBF_TOPDOWNDIB = 2
#BPBF_COMPOSITED  = #BPBF_TOPDOWNDIB
#BPPF_ERASE  = $0001
#BPPF_NOCLIP  = $0002
#BPPF_NONCLIENT  = $0004

#MAX_INTLIST_COUNT  = 402

Structure INTLIST
  iValueCount.l
  iValues.l[#MAX_INTLIST_COUNT]
EndStructure

Structure MARGINS
  cxLeftWidth.l
  cxRightWidth.l
  cyTopHeight.l
  cyBottomHeight.l
EndStructure

Import "UxTheme.lib"    
  CloseThemeData(hTheme)
  DrawThemeBackground(hTheme, hDC, iPartId, iStateId,  pRect,  *pClipRect)
  DrawThemeBackgroundEx(hTheme, hDC, iPartId, iStateId,  pRect,  *pOptions.DTBGOPTS)
  DrawThemeEdge(hTheme, hDC, iPartId, iStateId, *pDestRect.RECT, uEdge, uFlags,  *pContentRect.RECT)  
  DrawThemeIcon(hTheme, hDC, iPartId, iStateId,  *pRect.RECT, himl, iImageIndex)
  DrawThemeParentBackground(hWnd, hDC,  *prc.RECT)  
  DrawThemeText(hTheme, hDC, iPartId, iStateId,  Text.s, iCharCount, dwTextFlags, dwTextFlags2, *pRect.RECT)
  EnableThemeDialogTexture(hWnd, dwFlags)
  EnableTheming(fEnable)
  GetCurrentThemeName(*pszThemeFileName, dwMaxNameChars, *pszColorBuff, cchMaxColorChars, *pszSizeBuff, cchMaxSizeChars)
  GetThemeAppProperties()
  GetThemeBackgroundContentRect(hTheme, hDC, iPartId, iStateId, *pBoundingRect.RECT,  *pContentRect.RECT)    
  GetThemeBackgroundExtent(hTheme, hDC, iPartId, iStateId, *pContentRect.RECT, *pExtentRect.RECT)
  GetThemeBackgroundRegion(hTheme, hDC, iPartId, iStateId, *pRect.RECT, pRegion)  
  GetThemeBool(hTheme, iPartId, iStateId, iPropId, *pfVal)
  GetThemeColor(hTheme, iPartId, iStateId, iPropId, *pColor)
  GetThemeDocumentationProperty(pszThemeName.s, pszPropertyName.s, *pszValueBuff, cchMaxValChars)    
  GetThemeEnumValue(hTheme, iPartId, iStateId, iPropId, *piVal)
  GetThemeFilename(hTheme, iPartId, iStateId, iPropId, *pszThemeFilename, cchMaxBuffChars)  
  GetThemeFont(hTheme, hDC, iPartId, iStateId, iPropId, *pFont.LOGFONT)  
  GetThemeInt(hTheme, iPartId, iStateId, iPropId, *piVal)
  GetThemeIntList(hTheme, iPartId, iStateId, iPropId, *pIntList.INTLIST)
  GetThemeMargins(hTheme, hDC, iPartId, iStateId, iPropId, *prc.RECT,  *pMargins.MARGINS)  
  GetThemeMetric(hTheme, iPartId, iStateId, iPropId, *piVal)
  GetThemePartSize(hTheme, iPartId, iStateId, *prc.RECT, eSize, *psz.SIZE) 
  GetThemePosition(hTheme, iPartId, iStateId, iPropId, *pPoint.POINT)
  GetThemePropertyOrigin(hTheme, iPartId, iStateId, iPropId, *pOrigin)
  GetThemeRect(hTheme, iPartId, iStateId, iPropId, *pRect.RECT)
  GetThemeString(hTheme, iPartId, iStateId, iPropId, *pszBuff, cchMaxBuffChars)
  GetThemeSysBool(hTheme, iBoolID)
  GetThemeSysColor(hTheme, iColorID)
  GetThemeSysColorBrush(hTheme, iColorID)
  GetThemeSysFont(hTheme, int, *plf.LOGFONT)  
  GetThemeSysInt(hTheme, iIntID, *piValue)
  GetThemeSysSize(hTheme, iSizeID)
  GetThemeSysString(hTheme, iStringID, *pszStringBuff, cchMaxStringChars)  
  GetThemeTextExtent(hTheme, hDC, iPartId, iStateId, pszText.s, iCharCount, dwTextFlags, *pBoundingRect.RECT, *pExtentRect.RECT)
  GetThemeTextMetrics(hTheme, hDC, iPartId, iStateId, *ptm.TEXTMETRIC)
  GetWindowTheme(hWnd)
  HitTestThemeBackground(hTheme, hDC, iPartId, iStateId, dwOptions, *pRect.RECT, hrgn, *ptTest.POINT, *pwHitTestCode)
  IsAppThemed()
  IsThemeActive()
  IsThemeBackgroundPartiallyTransparent(hTheme, iPartId, iStateId)
  IsThemeDialogTextureEnabled(hWnd)
  IsThemePartDefined(hTheme, iPartId, iStateId)
  OpenThemeData(hWnd, pszClassList.s)
  SetThemeAppProperties(dwFlags)
  SetWindowTheme(hWnd, pszSubAppName.s, pszSubIdList.s)
EndImport
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

Constants:

Code: Alles auswählen

#SCS_32BIT_BINARY = 0
#SCS_64BIT_BINARY = 6
#SCS_DOS_BINARY = 1
#SCS_OS216_BINARY = 5
#SCS_PIF_BINARY = 3
#SCS_POSIX_BINARY = 4
#SCS_WOW_BINARY = 2
#OWNER_SECURITY_INFORMATION = 1
Structures:

Code: Alles auswählen

;Ntsecapi.h
Structure UNICODE_STRING
  Length.w
  MaximumLength.w
  Buffer.s
EndStructure
(Sorry, diesmal war es nicht so viel.)
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

Constants:

Code: Alles auswählen

#SPDRP_ADDRESS = $1C
#SPDRP_BUSNUMBER = $15
#SPDRP_BUSTYPEGUID = $13
#SPDRP_CAPABILITIES = $F
#SPDRP_CHARACTERISTICS = $1B
#SPDRP_CLASS = $7
#SPDRP_CLASSGUID = $8
#SPDRP_COMPATIBLEIDS = $2
#SPDRP_CONFIGFLAGS = $A
#SPDRP_DEVICEDESC = $0
#SPDRP_DEVTYPE = $19
#SPDRP_DRIVER = $9
#SPDRP_ENUMERATOR_NAME = $16
#SPDRP_EXCLUSIVE = $1A
#SPDRP_FRIENDLYNAME = $C
#SPDRP_HARDWAREID = $1
#SPDRP_LEGACYBUSTYPE = $14
#SPDRP_LOCATION_INFORMATION = $D
#SPDRP_LOWERFILTERS = $12
#SPDRP_MAXIMUM_PROPERTY = $1C
#SPDRP_MFG = $B
#SPDRP_PHYSICAL_DEVICE_OBJECT_NAME = $E
#SPDRP_SECURITY = $17
#SPDRP_SECURITY_SDS = $18
#SPDRP_SERVICE = $4
#SPDRP_UI_NUMBER = $10
#SPDRP_UI_NUMBER_DESC_FORMAT = $1E
#SPDRP_UNUSED0 = $3
#SPDRP_UNUSED1 = $5
#SPDRP_UNUSED2 = $6
#D3DTOP_DISABLE = 1
#D3DTOP_SELECTARG1 = 2
#D3DTOP_SELECTARG2 = 3
#D3DTOP_MODULATE = 4
#D3DTOP_MODULATE2X = 5
#D3DTOP_MODULATE4X = 6
#D3DTOP_ADD = 7
#D3DTOP_ADDSIGNED = 8
#D3DTOP_ADDSIGNED2X = 9
#D3DTOP_SUBTRACT = 10
#D3DTOP_ADDSMOOTH = 11
#D3DTOP_BLENDDIFFUSEALPHA = 12
#D3DTOP_BLENDTEXTUREALPHA = 13
#D3DTOP_BLENDFACTORALPHA = 14
#D3DTOP_BLENDTEXTUREALPHAPM = 15
#D3DTOP_BLENDCURRENTALPHA = 16
#D3DTOP_PREMODULATE = 17
#D3DTOP_MODULATEALPHA_ADDCOLOR = 18
#D3DTOP_MODULATECOLOR_ADDALPHA = 19
#D3DTOP_MODULATEINVALPHA_ADDCOLOR = 20
#D3DTOP_MODULATEINVCOLOR_ADDALPHA = 21
#D3DTOP_BUMPENVMAP = 22
#D3DTOP_BUMPENVMAPLUMINANCE = 23
#D3DTOP_DOTPRODUCT3 = 24
#D3DTOP_MULTIPLYADD = 25
#D3DTOP_LERP = 26
#D3DTOP_FORCE_DWORD = $7fffffff
#RAS_ATADDRESSLEN = 32
#RAS_EAP_FLAG_FIRST_LINK = $10
#RAS_EAP_FLAG_LOGON = $4
#RAS_EAP_FLAG_NON_INTERACTIVE = $2
#RAS_EAP_FLAG_PREVIEW = $8
#RAS_EAP_FLAG_ROUTER = $1
#RAS_EAP_REGISTRY_LOCATION = "System\\CurrentControlSet\\Services\\Rasman\\PPP\\EAP"
#RAS_EAP_VALUENAME_CONFIG_CLSID = "ConfigCLSID"
#RAS_EAP_VALUENAME_CONFIGUI = "ConfigUIPath"
#RAS_EAP_VALUENAME_DEFAULT_DATA = "ConfigData"
#RAS_EAP_VALUENAME_ENCRYPTION = "MPPEEncryptionSupported"
#RAS_EAP_VALUENAME_FRIENDLY_NAME = "FriendlyName"
#RAS_EAP_VALUENAME_IDENTITY = "IdentityPath"
#RAS_EAP_VALUENAME_INTERACTIVEUI = "InteractiveUIPath"
#RAS_EAP_VALUENAME_INVOKE_NAMEDLG = "InvokeUsernameDialog"
#RAS_EAP_VALUENAME_INVOKE_PWDDLG = "InvokePasswordDialog"
#RAS_EAP_VALUENAME_PATH = "Path"
#RAS_EAP_VALUENAME_REQUIRE_CONFIGUI = "RequireConfigUI"
#RAS_EAP_VALUENAME_STANDALONE_SUPPORTED = "StandaloneSupported"
#RAS_FLAGS_MESSENGER_PRESENT = $2
#RAS_FLAGS_PPP_CONNECTION = $1
#RAS_FLAGS_RAS_CONNECTION = $4
#RAS_IPADDRESSLEN = 15
#RAS_IPSEC_ESP_3_DES = $200
#RAS_IPSEC_ESP_DES = $80
#RAS_IPSEC_ESP_DES_40 = $100
#RAS_IPXADDRESSLEN = 22
#RAS_MaxAreaCode = 10
#RAS_MaxCallbackNumber = 48
#RAS_MaxDeviceName = 128
#RAS_MaxDeviceType = 16
#RAS_MaxEntryName = 256
#RAS_MaxFacilities = 200
#RAS_MaxIpAddress = 15
#RAS_MaxIpxAddress = 21
#RAS_MaxPadType = 32
#RAS_MaxPhoneNumber = 128
#RAS_MaxReplyMessage = 1024
#RAS_MaxUserData = 200
#RAS_MaxX25Address = 200
#RAS_MODEM_HARDWARE_FAILURE = 3
#RAS_MODEM_INCORRECT_RESPONSE = 4
#RAS_MODEM_NOT_RESPONDING = 2
#RAS_MODEM_OPERATIONAL = 1
#RAS_MODEM_UNKNOWN = 5
#RAS_PORT_AUTHENTICATED = 6
#RAS_PORT_AUTHENTICATING = 5
#RAS_PORT_CALLING_BACK = 3
#RAS_PORT_DISCONNECTED = 2
#RAS_PORT_INITIALIZING = 7
#RAS_PORT_LISTENING = 4
#RAS_PORT_NON_OPERATIONAL = 1
#PWLEN = 256
#CNLEN = 15
#DNLEN = #CNLEN
Structures:

Code: Alles auswählen

;Setupapi.h (include Setupapi.h)
Structure SP_DEVINFO_DATA
  cbSize.l
  ClassGuid.GUID
  DevInst.l
  Reserved.l
EndStructure

;Setupapi.h (include Setupapi.h)
Structure SP_DEVICE_INTERFACE_DETAIL_DATA
  cbSize.l
  DevicePath.s[256]
EndStructure

;Winioctl.h
Structure PREVENT_MEDIA_REMOVAL
  PreventMediaRemoval.b
EndStructure

;Setupapi.h
Structure FILE_IN_CABINET_INFO
  NameInCabinet.l
  FileSize.l
  Win32Error.l
  DosDate.w
  DosTime.w
  DosAttribs.w
  FullTargetName.s{260}
EndStructure

;Strmif.h (include Dshow.h)
Structure DDCOLORKEY
  dw1.l
  dw2.l
EndStructure

;Ddraw.h
Structure DDSCAPS2
  dwCaps.l
  dwCaps2.l
  dwCaps3.l
  dwCaps4.l
EndStructure 

;	Ddraw.h (include Ddraw.h)
Structure DDPIXELFORMAT
  dwSize.l
  dwFlags.l
  dwFourCC.l
  
  StructureUnion
    dwRGBBitCount.l
    dwYUVBitCount.l
    dwZBufferBitDepth.l
    dwAlphaBitDepth.l
    dwLuminanceBitCount.l
    dwBumpBitCount.l
  EndStructureUnion
  
  StructureUnion
    dwRBitMask.l
    dwYBitMask.l
    dwStencilBitDepth.l
    dwLuminanceBitMask.l
    dwBumpDuBitMask.l
  EndStructureUnion
  
  StructureUnion
    dwGBitMask.l
    dwUBitMask.l
    dwZBitMask.l
    dwBumpDvBitMask.l
  EndStructureUnion
  
  StructureUnion
    dwBBitMask.l
    dwVBitMask.l
    dwStencilBitMask.l
    dwBumpLuminanceBitMask.l
  EndStructureUnion
  
  StructureUnion
    dwRGBAlphaBitMask.l
    dwYUVAlphaBitMask.l
    dwLuminanceAlphaBitMask.l
    dwRGBZBitMask.l
    dwYUVZBitMask.l
  EndStructureUnion
EndStructure 

;Ddraw.h
Structure DDSURFACEDESC2
  dwSize.l
  dwFlags.l
  dwHeight.l
  dwWidth.l
  
  StructureUnion
    lPitch.l
    dwLinearSize.l
  EndStructureUnion
  
  dwBackBufferCount.l
  
  StructureUnion
    dwMipMapCount.l
    dwRefreshRate.l
    dwSrcVBHandle.l
  EndStructureUnion
  
  dwAlphaBitDepth.l
  dwReserved.l
  lpSurface.l
  
  StructureUnion
    ddckCKDestOverlay.DDCOLORKEY
    dwEmptyFaceColor.l
  EndStructureUnion
  
  ddckCKDestBlt.DDCOLORKEY
  ddckCKSrcOverlay.DDCOLORKEY
  ddckCKSrcBlt.DDCOLORKEY
  
  StructureUnion
    ddpfPixelFormat.DDPIXELFORMAT
    dwFVF.l
  EndStructureUnion
  
  ddsCaps.DDSCAPS2
  dwTextureStage.l
EndStructure

;Ddraw.h
Structure DDBLTFX
  dwSize.l
  dwDDFX.l
  dwROP.l
  dwDDROP.l
  dwRotationAngle.l
  dwZBufferOpCode.l
  dwZBufferLow.l
  dwZBufferHigh.l
  dwZBufferBaseDest.l
  dwZDestConstBitDepth.l
  
  StructureUnion
    dwZDestConst.l
    lpDDSZBufferDest.l
  EndStructureUnion
  
  dwZSrcConstBitDepth.l
  
  StructureUnion
    dwZSrcConst.l
    lpDDSZBufferSrc.l
  EndStructureUnion
  
  dwAlphaEdgeBlendBitDepth.l
  dwAlphaEdgeBlend.l
  dwReserved.l
  dwAlphaDestConstBitDepth.l
  
  StructureUnion
    dwAlphaDestConst.l
    lpDDSAlphaDest.l
  EndStructureUnion
  
  dwAlphaSrcConstBitDepth.l
  
  StructureUnion
    dwAlphaSrcConst.l
    lpDDSAlphaSrc.l
  EndStructureUnion
  
  StructureUnion
    dwFillColor.l
    dwFillDepth.l
    dwFillPixel.l
    lpDDSPattern.l
  EndStructureUnion
  
  ddckDestColorkey.DDCOLORKEY
  ddckSrcColorkey.DDCOLORKEY
EndStructure 

;Ras.h
Structure RASCONNSTATUS
  dwSize.l
  rasconnstate.l
  dwError.l
  szDeviceType.b[#RAS_MaxDeviceType + 1]
  szDeviceName.b[#RAS_MaxDeviceName + 1]
  szPhoneNumber.b[#RAS_MaxPhoneNumber + 1]
EndStructure 

;Ras.h
Structure RASDIALPARAMS
  dwSize.l
  szEntryName.b[#RAS_MaxEntryName + 1]
  szPhoneNumber.b[#RAS_MaxPhoneNumber + 1]
  szCallbackNumber.b[#RAS_MaxCallbackNumber + 1]
  szUserName.b[#UNLEN + 1]
  szPassword.b[#PWLEN + 1]
  szDomain.b[#DNLEN + 1]
EndStructure
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

Constants:

Code: Alles auswählen

#BSF_ALLOWSFW = $00000080
#BSF_FLUSHDISK = $00000004
#BSF_FORCEIFHUNG = $00000020
#BSF_IGNORECURRENTTASK = $00000002
#BSF_NOHANG = $00000008
#BSF_NOTIMEOUTIFNOTHUNG = $00000040
#BSF_POSTMESSAGE = $00000010
#BSF_QUERY = $00000001
#BSF_SENDNOTIFYMESSAGE = $00000100
#BSM_ALLCOMPONENTS = $00000000
#BSM_ALLDESKTOPS = $00000010
#BSM_APPLICATIONS = $00000008
#BSF_LUID = $00000400
#BSF_RETURNHDESK = $00000200
#BLUETOOTH_MAX_NAME_SIZE = 248
#IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR = 60
#IMAGE_SIZEOF_AUX_SYMBOL = 18
#IMAGE_SIZEOF_BASE_RELOCATION = 8
#IMAGE_SIZEOF_FILE_HEADER = 20
#IMAGE_SIZEOF_LINENUMBER = 6
#IMAGE_SIZEOF_NT_OPTIONAL32_HEADER = 224
#IMAGE_SIZEOF_NT_OPTIONAL_HEADER = #IMAGE_SIZEOF_NT_OPTIONAL32_HEADER
#IMAGE_SIZEOF_NT_OPTIONAL64_HEADER = 240
#IMAGE_SIZEOF_RELOCATION = 10
#IMAGE_SIZEOF_ROM_OPTIONAL_HEADER = 56
#IMAGE_SIZEOF_SECTION_HEADER = 40
#IMAGE_SIZEOF_SHORT_NAME = 8
#IMAGE_SIZEOF_STD_OPTIONAL_HEADER = 28
#IMAGE_SIZEOF_SYMBOL = 18
#MOUSE_ATTRIBUTES_CHANGED = $04
#MOUSE_MOVE_RELATIVE = 0
#MOUSE_MOVE_ABSOLUTE = 1
#MOUSE_VIRTUAL_DESKTOP = $02
#RI_MOUSE_LEFT_BUTTON_DOWN = $0001
#RI_MOUSE_LEFT_BUTTON_UP = $0002
#RI_MOUSE_MIDDLE_BUTTON_DOWN = $0010
#RI_MOUSE_MIDDLE_BUTTON_UP = $0020
#RI_MOUSE_RIGHT_BUTTON_DOWN = $0004
#RI_MOUSE_RIGHT_BUTTON_UP = $0008
#RI_MOUSE_BUTTON_1_DOWN = $0001
#RI_MOUSE_BUTTON_1_UP = $0002
#RI_MOUSE_BUTTON_2_DOWN = $0004
#RI_MOUSE_BUTTON_2_UP = $0008
#RI_MOUSE_BUTTON_3_DOWN = $0010
#RI_MOUSE_BUTTON_3_UP = $0020
#RI_MOUSE_BUTTON_4_DOWN = $0040
#RI_MOUSE_BUTTON_4_UP = $0080
#RI_MOUSE_BUTTON_5_DOWN = $100
#RI_MOUSE_BUTTON_5_UP = $0200
#RI_MOUSE_WHEEL = $0400
#PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST = $200
#PRINTER_ATTRIBUTE_ENABLE_DEVQ = $80
#PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS = $100
#PRINTER_ATTRIBUTE_PUBLISHED = $2000
#PRINTER_ATTRIBUTE_RAW_ONLY = $1000
#PRINTER_CHANGE_FAILED_CONNECTION_PRINTER = $8
#PRINTER_CHANGE_SET_PRINTER_DRIVER = $20000000
#PRINTER_CLASS_NAME = "PrintQueue"
#PRINTER_ENUM_HIDE = $1000000
#PRINTER_NOTIFY_FIELD_ATTRIBUTES = $D
#PRINTER_NOTIFY_FIELD_AVERAGE_PPM = $15
#PRINTER_NOTIFY_FIELD_BYTES_PRINTED = $19
#PRINTER_NOTIFY_FIELD_CJOBS = $14
#PRINTER_NOTIFY_FIELD_COMMENT = $5
#PRINTER_NOTIFY_FIELD_DATATYPE = $B
#PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY = $F
#PRINTER_NOTIFY_FIELD_DEVMODE = $7
#PRINTER_NOTIFY_FIELD_DRIVER_NAME = $4
#PRINTER_NOTIFY_FIELD_LOCATION = $6
#PRINTER_NOTIFY_FIELD_OBJECT_GUID = $1A
#PRINTER_NOTIFY_FIELD_PAGES_PRINTED = $17
#PRINTER_NOTIFY_FIELD_PARAMETERS = $A
#PRINTER_NOTIFY_FIELD_PORT_NAME = $3
#PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR = $9
#PRINTER_NOTIFY_FIELD_PRINTER_NAME = $1
#PRINTER_NOTIFY_FIELD_PRIORITY = $E
#PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR = $C
#PRINTER_NOTIFY_FIELD_SEPFILE = $8
#PRINTER_NOTIFY_FIELD_SERVER_NAME = $0
#PRINTER_NOTIFY_FIELD_SHARE_NAME = $2
#PRINTER_NOTIFY_FIELD_START_TIME = $10
#PRINTER_NOTIFY_FIELD_STATUS = $12
#PRINTER_NOTIFY_FIELD_STATUS_STRING = $13
#PRINTER_NOTIFY_FIELD_TOTAL_BYTES = $18
#PRINTER_NOTIFY_FIELD_TOTAL_PAGES = $16
#PRINTER_NOTIFY_FIELD_UNTIL_TIME = $11
#PRINTER_NOTIFY_INFO_DISCARDED = $1
#PRINTER_NOTIFY_OPTIONS_REFRESH = $1
#PRINTER_NOTIFY_TYPE = $0
#PRINTER_SCHEMA_NAME = "PrintQueue"
#PRINTER_STATUS_POWER_SAVE = $1000000
#PRINTER_STATUS_SERVER_UNKNOWN = $800000
#JOB_ADD_CURRENT_DATE = $8
#JOB_CONTROL_LAST_PAGE_EJECTED = 7
#JOB_CONTROL_SENT_TO_PRINTER = 6
#JOB_EXEC_ERROR = $2
#JOB_FILTER = 4
#JOB_NONINTERACTIVE = $10
#JOB_NOTIFY_FIELD_BYTES_PRINTED = $17
#JOB_NOTIFY_FIELD_DATATYPE = $5
#JOB_NOTIFY_FIELD_DEVMODE = $9
#JOB_NOTIFY_FIELD_DOCUMENT = $D
#JOB_NOTIFY_FIELD_DRIVER_NAME = $8
#JOB_NOTIFY_FIELD_MACHINE_NAME = $1
#JOB_NOTIFY_FIELD_NOTIFY_NAME = $4
#JOB_NOTIFY_FIELD_PAGES_PRINTED = $15
#JOB_NOTIFY_FIELD_PARAMETERS = $7
#JOB_NOTIFY_FIELD_PORT_NAME = $2
#JOB_NOTIFY_FIELD_POSITION = $F
#JOB_NOTIFY_FIELD_PRINT_PROCESSOR = $6
#JOB_NOTIFY_FIELD_PRINTER_NAME = $0
#JOB_NOTIFY_FIELD_PRIORITY = $E
#JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR = $C
#JOB_NOTIFY_FIELD_START_TIME = $11
#JOB_NOTIFY_FIELD_STATUS = $A
#JOB_NOTIFY_FIELD_STATUS_STRING = $B
#JOB_NOTIFY_FIELD_SUBMITTED = $10
#JOB_NOTIFY_FIELD_TIME = $13
#JOB_NOTIFY_FIELD_TOTAL_BYTES = $16
#JOB_NOTIFY_FIELD_TOTAL_PAGES = $14
#JOB_NOTIFY_FIELD_UNTIL_TIME = $12
#JOB_NOTIFY_FIELD_USER_NAME = $3
#JOB_NOTIFY_TYPE = $1
#JOB_OBJECT_ASSIGN_PROCESS = $1
#JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS = $ff
#JOB_OBJECT_EXTENDED_LIMIT_VALID_FLAGS = $1fff
#JOB_OBJECT_LIMIT_ACTIVE_PROCESS = $8
#JOB_OBJECT_LIMIT_AFFINITY = $10
#JOB_OBJECT_LIMIT_BREAKAWAY_OK = $800
#JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = $400
#JOB_OBJECT_LIMIT_JOB_MEMORY = $200
#JOB_OBJECT_LIMIT_JOB_TIME = $4
#JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = $40
#JOB_OBJECT_LIMIT_PRIORITY_CLASS = $20
#JOB_OBJECT_LIMIT_PROCESS_MEMORY = $100
#JOB_OBJECT_LIMIT_PROCESS_TIME = $2
#JOB_OBJECT_LIMIT_RESERVED1 = $2000
#JOB_OBJECT_LIMIT_RESERVED2 = $4000
#JOB_OBJECT_LIMIT_RESERVED3 = $8000
#JOB_OBJECT_LIMIT_RESERVED4 = $10000
#JOB_OBJECT_LIMIT_RESERVED5 = $20000
#JOB_OBJECT_LIMIT_RESERVED6 = $40000
#JOB_OBJECT_LIMIT_SCHEDULING_CLASS = $80
#JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = $1000
#JOB_OBJECT_LIMIT_VALID_FLAGS = $7FFFF
#JOB_OBJECT_LIMIT_WORKINGSET = $1
#JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS = 8
#JOB_OBJECT_MSG_ACTIVE_PROCESS_LIMIT = 3
#JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO = 4
#JOB_OBJECT_MSG_END_OF_JOB_TIME = 1
#JOB_OBJECT_MSG_END_OF_PROCESS_TIME = 2
#JOB_OBJECT_MSG_EXIT_PROCESS = 7
#JOB_OBJECT_MSG_JOB_MEMORY_LIMIT = 10
#JOB_OBJECT_MSG_NEW_PROCESS = 6
#JOB_OBJECT_MSG_PROCESS_MEMORY_LIMIT = 9
#JOB_OBJECT_POST_AT_END_OF_JOB = 1
#JOB_OBJECT_QUERY = $4
#JOB_OBJECT_RESERVED_LIMIT_VALID_FLAGS = $7FFFF
#JOB_OBJECT_SECURITY_FILTER_TOKENS = $8
#JOB_OBJECT_SECURITY_NO_ADMIN = $1
#JOB_OBJECT_SECURITY_ONLY_TOKEN = $4
#JOB_OBJECT_SECURITY_RESTRICTED_TOKEN = $2
#JOB_OBJECT_SECURITY_VALID_FLAGS = $f
#JOB_OBJECT_SET_ATTRIBUTES = $2
#JOB_OBJECT_SET_SECURITY_ATTRIBUTES = $10
#JOB_OBJECT_TERMINATE = $8
#JOB_OBJECT_TERMINATE_AT_END_OF_JOB = 0
#JOB_OBJECT_UI_VALID_FLAGS = $FF
#JOB_OBJECT_UILIMIT_ALL = $FF
#JOB_OBJECT_UILIMIT_DESKTOP = $40
#JOB_OBJECT_UILIMIT_DISPLAYSETTINGS = $10
#JOB_OBJECT_UILIMIT_EXITWINDOWS = $80
#JOB_OBJECT_UILIMIT_GLOBALATOMS = $20
#JOB_OBJECT_UILIMIT_HANDLES = $1
#JOB_OBJECT_UILIMIT_NONE = $0
#JOB_OBJECT_UILIMIT_READCLIPBOARD = $2
#JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = $8
#JOB_OBJECT_UILIMIT_WRITECLIPBOARD = $4
#JOB_RUN_PERIODICALLY = $1
#JOB_RUNS_TODAY = $4
#JOB_STATUS_BLOCKED_DEVQ = $200
#JOB_STATUS_DELETED = $100
#JOB_STATUS_RESTART = $800
Structures:

Code: Alles auswählen

;Ws2def.h (include Winsock2.h);
;Winsock2.h on Windows Server 2003, Windows XP, And Windows 2000 
Structure SOCKET_ADDRESS
  *lpSockaddr
  iSockaddrLength.l
EndStructure

;Iptypes.h (include Iphlpapi.h)
Structure IP_ADAPTER_PREFIX
  Length.l
  Flags.l
  *Next.IP_ADAPTER_PREFIX
  Address.SOCKET_ADDRESS
  PrefixLength.l
EndStructure

;Inaddr.h;
;Winsock2.h on Windows Server 2003, Windows XP, And Windows 2000 
Structure in_addr
  s_addr.l
EndStructure

;D3D9Types.h
Structure D3DPRESENT_PARAMETERS
  BackBufferWidth.l
  BackBufferHeight.l
  BackBufferFormat.l
  BackBufferCount.l
  MultiSampleType.l
  MultiSampleQuality.l
  SwapEffect.l
  hDeviceWindow.l
  Windowed.l
  EnableAutoDepthStencil.l
  AutoDepthStencilFormat.l
  flags.l
  FullScreen_RefreshRateInHz.l
  PresentationInterval.l
EndStructure

;	BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)
Structure BLUETOOTH_ADDRESS
  BTH_ADDR.l
  rgBytes.b[6]
EndStructure

;BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)
Structure BLUETOOTH_DEVICE_SEARCH_PARAMS
  dwSize.l
  fReturnAuthenticated.l
  fReturnRemembered.l
  fReturnUnknown.l
  fReturnConnected.l
  fIssueInquiry.l
  cTimeoutMultiplier.l
  hRadio.i
EndStructure

;BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)
Structure BLUETOOTH_DEVICE_INFO
   dwSize.l
  Address.BLUETOOTH_ADDRESS
  ulClassofDevice.l
  fConnected.l
  fRemembered.l
  fAuthenticated.l
  stLastSeen.SYSTEMTIME
  stLastUsed.SYSTEMTIME
  szName.w[#BLUETOOTH_MAX_NAME_SIZE]
EndStructure

;BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)
Structure BLUETOOTH_FIND_RADIO_PARAMS
  dwSize.l
EndStructure

;BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)
Structure BLUETOOTH_RADIO_INFO
  dwSize.l
  address.BLUETOOTH_ADDRESS
  szName.w[#BLUETOOTH_MAX_NAME_SIZE]
  ulClassofDevice.l
  lmpSubversion.w
  manufacturer.w
EndStructure

;Ws2tcpip.h;
;Wspiapi.h on Windows 2000 
Structure ADDRINFO
  ai_flags.l
  ai_family.l
  ai_socktype.l
  ai_protocol.l
  ai_addrlen.l
  ai_canonname.l
  ptr_ai_addr.l
  ai_next.l
EndStructure

;Strmif.h (include Dshow.h)
Structure AM_MEDIA_TYPE
  majortype.GUID
  subtype.GUID
  bFixedSizeSamples.b
  bTemporalCompression.b
  lSampleSize.l
  formattype.GUID
  pUnk.l
  cbFormat.l
  pbFormat.l
EndStructure  

;Winnt.h (include Windows.h)
Structure IMAGE_SECTION_HEADER
  SecName.b[#IMAGE_SIZEOF_SHORT_NAME]
  StructureUnion
    PhysicalAddr.l
    VirtualSize.l
  EndStructureUnion
  VirtualAddress.l
  SizeOfRawData.l
  PointerToRawData.l
  PointerToRelocations.l
  PointerToLinenumbers.l
  NumberOfRelocations.w
  NumberOfLinenumbers.w
  Characteristics.l
EndStructure

;Winuser.h (include Windows.h)
Structure RAWMOUSE
  usFlags.w
  StructureUnion
    usButtonFlags.l
    usButtonData.l
  EndStructureUnion
  ulRawButtons.l
  lLastX.l
  lLastY.l
  ulExtraInformation.l
EndStructure

;	Lmaccess.h (include Lm.h) 
Structure USER_INFO_1
  usri1_name.l
  usri1_password.l
  usri1_password_age.l
  usri1_priv.l
  usri1_home_dir.l
  usri1_comment.l
  usri1_flags.l
  usri1_script_path.l
EndStructure

;Winspool.h (include Windows.h)
Structure PRINTER_NOTIFY_INFO_DATA
  type.w
  field.w
  reserved.l
  id.l
  adwData.l[2]
EndStructure

;	Winspool.h (include Windows.h)
Structure PRINTER_NOTIFY_OPTIONS_TYPE
  type.w
  reserved0.w
  reserved1.l
  reserved2.l
  count.l
  pfields.l
EndStructure

;Winspool.h (include Windows.h)
Structure PRINTER_NOTIFY_OPTIONS
  version.l
  flags.l
  count.l
  ptypes.l
EndStructure

;Winspool.h (include Windows.h)
Structure PRINTER_NOTIFY_INFO
  version.l
  flags.l
  count.l
  adata.PRINTER_NOTIFY_INFO_DATA
EndStructure

;Wlanapi.h 
Structure  WLAN_INTERFACE_INFO
  InterfaceGuid.guid
  InterfaceDescription.b[512]
  IsState.l
EndStructure

;Wlanapi.h
Structure WLAN_INTERFACE_INFO_LIST
  dwNumberOfItems.l
  dwIndex.l
  InterfaceInfo.WLAN_INTERFACE_INFO
EndStructure

;Winuser.h (include Windows.h)
Structure RAWINPUTDEVICELIST
  hDevice.l
  dwType.l
EndStructure

;Winuser.h (include Windows.h)
Structure RAWINPUTDEVICE
  usUsagePage.w
  usUsage.w
  dwFlags.l
  hwndTarget.l
EndStructure

;Winuser.h (include Windows.h) 
Structure RID_DEVICE_INFO_MOUSE
  dwId.l
  dwNumberOfButtons.l
  dwSampleRate.l
  fHasHorizontalWheel.b
EndStructure

;Winuser.h (include Windows.h)
Structure RID_DEVICE_INFO_KEYBOARD
  dwType.l
  dwSubType.l
  dwKeyboardMode.l
  dwNumberOfFunctionKeys.l
  dwNumberOfIndicators.l
  dwNumberOfKeysTotal.l
EndStructure

;Winuser.h (include Windows.h)
Structure RID_DEVICE_INFO_HID
  dwVendorId.l
  dwProductId.l
  dwVersionNumber.l
  usUsagePage.w
  usUsage.w
EndStructure

;Winuser.h (include Windows.h)
Structure RID_DEVICE_INFO
  cbSize.l
  dwType.l
  StructureUnion
    mouse.RID_DEVICE_INFO_MOUSE
    keyboard.RID_DEVICE_INFO_KEYBOARD
    hid.RID_DEVICE_INFO_HID
  EndStructureUnion
EndStructure

;Winuser.h (include Windows.h)
Structure RAWINPUTHEADER
  dwType.l
  dwSize.l
  hDevice.l
  wParam.l
EndStructure

;Winuser.h (include Windows.h)
Structure RAWKEYBOARD
  MakeCode.w
  Flags.w
  Reserved.w
  VKey.w
  Message.l
  ExtraInformation.l
EndStructure

;Winuser.h (include Windows.h)
Structure RAWHID
  dwSizeHid.l
  dwCount.l
  bRawData.b[1]
EndStructure

;Winuser.h (include Windows.h)
Structure RAWINPUT
  header.RAWINPUTHEADER
  StructureUnion
    mouse.RAWMOUSE
    keyboard.RAWKEYBOARD
    hid.RAWHID
  EndStructureUnion
EndStructure

;	Lmshare.h (include Lm.h)
Structure SHARE_INFO_502
  shi502_netname.l
  shi502_type.l
  shi502_remark.l
  shi502_permissions.l
  shi502_max_uses.l
  shi502_current_uses.l
  shi502_path.l
  shi502_passwd.l
  shi502_reserved.l
  *shi502_security_descriptor.SECURITY_DESCRIPTOR
EndStructure

;Dbt.h
Structure DEV_BROADCAST_DEVICEINTERFACE
  dbcc_size.l
  dbcc_devicetype.l
  dbcc_reserved.l
  dbcc_classguid.guid
  dbcc_name.l
EndStructure
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

Constants:

Code: Alles auswählen

#DOT11_SSID_MAX_LENGTH  = 32
#DOT11_RATE_SET_MAX_LENGTH = 126
#PARTITION_BASIC_DATA_GUID = "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"
#PARTITION_ENTRY_UNUSED_GUID = "00000000-0000-0000-0000-000000000000"
#PARTITION_SYSTEM_GUID = "c12a7328-f81f-11d2-ba4b-00a0c93ec93b"
#PARTITION_MSFT_RESERVED_GUID = "e3c9e316-0b5c-4db8-817d-f92df00215ae"
#PARTITION_LDM_METADATA_GUID = "5808c8aa-7e8f-42e0-85d2-e1e90434cfb3"
#PARTITION_LDM_DATA_GUID = "af9b60a0-1431-4f62-bc68-3311714a69ad"
#PARTITION_MSFT_RECOVERY_GUID = "de94bba4-06d1-4d40-a16a-bfd50179d6ac"
#GPT_ATTRIBUTE_PLATFORM_REQUIRED = $0000000000000001
#GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = $8000000000000000
#GPT_BASIC_DATA_ATTRIBUTE_HIDDEN = $4000000000000000
#GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY = $2000000000000000
#GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY = $1000000000000000
#CCM_GETVERSION = #CCM_FIRST + $8
#CCM_LAST = #CCM_FIRST + $200
#CCM_SETNOTIFYWINDOW = #CCM_FIRST + $9
#CCM_SETVERSION = #CCM_FIRST + $7
#CCM_SETWINDOWTHEME = #CCM_FIRST + $B
#CCS_VERT = $80
#RB_GETBANDMARGINS = #WM_USER + 40
#RB_PUSHCHEVRON = #WM_USER + 43
#RB_SETWINDOWTHEME = #CCM_SETWINDOWTHEME
#RBBS_HIDETITLE = $400
#RBBS_TOPALIGN = $800
#RBBS_USECHEVRON = $200
#RBHT_CHEVRON = $8
#RBN_CHEVRONPUSHED = #RBN_FIRST - 10
#RBN_MINMAX = #RBN_FIRST - 21
#RBSTR_CHANGERECT = $2
#RBSTR_PREFERNOLINEBREAK = $1
#RBV_LITERAL_FORMAT = 1
#RBV_REGISTER_FORMAT = 0
#SERVICE_TRIGGER_DATA_TYPE_BINARY = 1
#SERVICE_TRIGGER_DATA_TYPE_STRING = 2
#ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID = $001
#ACTCTX_FLAG_LANGID_VALID = $002
#ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID = $004
#ACTCTX_FLAG_RESOURCE_NAME_VALID = $008
#ACTCTX_FLAG_SET_PROCESS_DEFAULT = $010
#ACTCTX_FLAG_APPLICATION_NAME_VALID = $020
#ACTCTX_FLAG_HMODULE_VALID = $080
#PROCESSOR_ARCHITECTURE_ALPHA=2
#PROCESSOR_ARCHITECTURE_ALPHA64=7
#PROCESSOR_ARCHITECTURE_ARM=5
#PROCESSOR_ARCHITECTURE_IA64=6
#PROCESSOR_ARCHITECTURE_INTEL=0
#PROCESSOR_ARCHITECTURE_MIPS=1
#PROCESSOR_ARCHITECTURE_MSIL=8
#PROCESSOR_ARCHITECTURE_PPC=3
#PROCESSOR_ARCHITECTURE_SHX=4
#PROCESSOR_ARCHITECTURE_UNKNOWN=$FFFF
#PROCESSOR_ARM_7TDMI=70001
#PROCESSOR_ARM720=1824
#PROCESSOR_ARM820=2080
#PROCESSOR_ARM920=2336
#PROCESSOR_HITACHI_SH3=10003
#PROCESSOR_HITACHI_SH3E=10004
#PROCESSOR_HITACHI_SH4=10005
#PROCESSOR_INTEL_IA64=2200
#PROCESSOR_INTEL_PENTIUM2=686
#PROCESSOR_INTEL_PENTIUM3=786
#PROCESSOR_MOTOROLA_821=821
#PROCESSOR_OPTIL=$494F
#PROCESSOR_PPC_601=601
#PROCESSOR_PPC_603=603
#PROCESSOR_PPC_604=604
#PROCESSOR_PPC_620=620
#PROCESSOR_SHx_SH3=103
#PROCESSOR_SHx_SH4=104
#PROCESSOR_STRONGARM=2577
#ACMSTREAMHEADER_STATUSF_DONE=$10000
#ACMSTREAMHEADER_STATUSF_INQUEUE=$100000
#ACMSTREAMHEADER_STATUSF_PREPARED=$20000
#MPEGLAYER3_FLAG_PADDING_ISO=$0
#MPEGLAYER3_FLAG_PADDING_OFF=$2
#MPEGLAYER3_FLAG_PADDING_ON=$1
#MPEGLAYER3_ID_CONSTANTFRAMESIZE=2
#MPEGLAYER3_ID_MPEG=1
#MPEGLAYER3_ID_UNKNOWN=0
#MPEGLAYER3_WFX_EXTRA_BYTES=12
Structures:

Code: Alles auswählen

;Gdiplusinit.h (include Gdiplus.h)
Structure GdiplusStartupInput
  GdiPlusVersion.l
  *DebugEventCallback.Debug_Event
  SuppressBackgroundThread.l
  SuppressExternalCodecs.l
EndStructure

;Wlantypes.h (include Windot11.h)
Structure DOT11_SSID
  uSSIDLength.l
  ucSSID.b[#DOT11_SSID_MAX_LENGTH]
EndStructure

;Wlanapi.h
Structure WLAN_RATE_SET
  uRateSetLength.l
  usRateSet.l[#DOT11_RATE_SET_MAX_LENGTH]
EndStructure

;Wlanapi.h
Structure WLAN_BSS_ENTRY
  dot11Ssid.DOT11_SSID
  uPhyId.l
  dot11Bssid.b[6]
  dot11BssType.l
  dot11BssPhyType.l
  lRssi.l
  uLinkQuality.l
  bInRegDomain.l
  usBeaconPeriod.l
  ullTimestamp.q
  ullHostTimestamp.q
  usCapabilityInformation.l
  ulChCenterFrequency.l
  wlanRateSet.WLAN_RATE_SET
  ulIeOffset.l
  ulIeSize.l
EndStructure

;WinIoCtl.h
Structure PARTITION_INFORMATION_GPT
  Partitiontype.GUID
  PartitionId.GUID
  Attributes.q
  Name.b[36]
EndStructure

Structure VS_VERSIONINFO
  wLength.w
  wValueLength.w
  wType.w
  szKey.w[16]
  Padding1.w
  Value.VS_FIXEDFILEINFO
  Padding2.w
  Children.w
EndStructure

Structure VarFileInfo
  wLength.w
  wValueLength.w
  wType.w
  szKey.w[15]
  Padding.w
  Children.w
EndStructure

;Psapi.h
Structure MODULEINFO
  lpBaseOfDll.i
  SizeOfImage.i
  EntryPoint.i
EndStructure

;Msacm.h
Structure ACMSTREAMHEADER
  cbStruct.l
  fdwStatus.l
  dwUser.l
  pbSrc.l
  cbSrcLength.l
  cbSrcLengthUsed.l
  dwSrcUser.l
  pbDst.l
  cbDstLength.l
  cbDstLengthUsed.l
  dwDstUser.l
  dwReservedDriver.l[10]
EndStructure

;Mmreg.h
Structure MPEGLAYER3WAVEFORMAT
  wfx.WAVEFORMATEX
  wID.w
  fdwFlags.l
  nBlockSize.w
  nFramesPerBlock.w
  nCodecDelay.w
EndStructure
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
Danilo
-= Anfänger =-
Beiträge: 2284
Registriert: 29.08.2004 03:07

Re: WinAPI Include-Sammlung

Beitrag von Danilo »

Konvertiert ihr das alles per Hand?

Wer einen C/C++ Compiler zur Hand hat, sollte mal schauen ob er "preprocessen" kann.
Mit Microsoft VC++ kann man das an der Console machen:
Beispiel Eingabedatei 'windows.c':

Code: Alles auswählen

#include <windows.h>
An der Console dann:

Code: Alles auswählen

WoAuchImmer\VS2010\VC\bin> cl /P windows.c
Dann kommt im gleichen Verzeichniss eine 'windows.i' heraus.
Diese in windows.h umbenennen und dann durch den
"PureBasic\SDK\Header Converter\Header Converter.exe" jagen.

Heraus kommt eine windows.pb (bei mir über 20.000 Zeilen), die schonmal
viele Konstanten und Strukturen enthält, aber noch einer Kontrolle bedarf.

Sollte so auch mit anderen Headern funktionieren. Zwar macht dieser
Header Converter viel Mist, aber bissl erleichtert es vielleicht doch die
Arbeit, falls jmd alles von Hand macht...?
Hab schon probiert den Header Converter aufs Include-Verzeichniss vom
PSDK 7.0a zu setzen, aber da bleibt er hier einfach hängen.
Mit einzelnen "preprocessed" Dateien sollte es aber einigermaßen gehen.
cya,
...Danilo
"Ein Genie besteht zu 10% aus Inspiration und zu 90% aus Transpiration" - Max Planck
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

Re: WinAPI Include-Sammlung

Beitrag von RSBasic »

@Danilo
Ja zum Teil. Falls ich in Foren bereits eine fertig geschriebene API-Struktur finde, dann brauch ich diese ja nicht erneut zu schreiben. Diese übernehme ich dann einfach und fasse hier zusammen.

Danke für den Tipp mit dem Header Converter. Die Anwendung werd ich später mal testen. ;)
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Antworten