AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi How to enumerate all trayicons in the taskbar
Thema durchsuchen
Ansicht
Themen-Optionen

How to enumerate all trayicons in the taskbar

Ein Thema von Razor · begonnen am 3. Feb 2009 · letzter Beitrag vom 26. Feb 2011
Antwort Antwort
DerCarsten

Registriert seit: 26. Feb 2011
1 Beiträge
 
#1

AW: How to enumerate all trayicons in the taskbar

  Alt 26. Feb 2011, 18:47
Hi,

auch wenn es schon eine Weile her ist. Der Grund, warum es nicht auf 64bit funktioniert ist:

Code:
typedef struct _TBBUTTON {
    int        iBitmap;
    int        idCommand;
    BYTE    fsState;
    BYTE    fsStyle;
#ifdef _WIN64
    BYTE    bReserved[6]    // padding for alignment
#elif defined(_WIN32)
    BYTE    bReserved[2]    // padding for alignment
#endif
    DWORD_PTR  dwData;
    INT_PTR         iString;
} TBBUTTON, NEAR *PTBBUTTON *LPTBBUTTON;
Ist zwar C++ Code, es sollte aber dennoch gut ersichtlich sein, daß die Struktur unter 64bit geringfügig anders ist. Die Struktur Deines Codes ist statisch und berücksichtigt das nicht.


Oops, English required...

The structure on 64bit systems is slightly different (bigger). The structure you're using is static and does not consider the 64bit variant.

Regards,

Carsten

Geändert von DerCarsten (26. Feb 2011 um 18:50 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:58 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz