Mais c pas la mienne de fct callback. En fait je peux juste remplir le corps de la fct.
Je te montre :
typedef struct _BrowseDlgConfig {
// Configuration flags
DWORD bIncludeInstanceIndex:1,
bSingleCounterPerAdd:1,
bSingleCounterPerDialog:1,
bLocalCountersOnly:1,
bWildCardInstances:1,
bHideDetailBox:1,
bInitializePath:1,
bDisableMachineSelection:1,
bIncludeCostlyObjects:1,
bShowObjectBrowser:1,
bReserved:23;
HWND hWndOwner;
LPTSTR szDataSource;
LPTSTR szReturnPathBuffer;
DWORD cchReturnPathLength;
CounterPathCallBack pCallBack;
DWORD_PTR dwCallBackArg;
PDH_STATUS CallBackStatus;
DWORD dwDefaultDetailLevel;
LPTSTR szDialogBoxCaption;
} PDH_BROWSE_DLG_CONFIG, *PPDH_BROWSE_DLG_CONFIG;
bref au champ pCallBack il y a comme description :
pCallBack
Pointer to the callback function used to update application buffers and controls when a multiple-selection dialog box is configured. For more information, see CounterPathCallback.
je te montre la fct CounterPathCallback :
PDH_STATUS __stdcall CounterPathCallBack(
DWORD_PTR dwArg
);
Donc ma fct callback ne peut pas prendre d'autres prototypes !
Que faire ... ?