Autor Beitrag
mohfa
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: So 22.08.10 00:05 
Hi , Can someone helps me in Using this declared API in JEDI SetupApi.pas

ausblenden Delphi-Quelltext
1:
2:
function SetupScanFileQueueA(FileQueue: HSPFILEQ; Flags: DWORD; Window: HWND;
  CallbackRoutine: TSPFileCallbackA; CallbackContext: Pointer; var Result: DWORD): LongBool; stdcall;


Just how to use the CallbackRoutine: TSPFileCallbackA ' Callback '

Just to explain , please take a look at my Sample project to enumerate all Installed devices , so what i want to achieve is to get all Driver' files .

please read my comment under ListBox1 OnClick event .


thank you all
Einloggen, um Attachments anzusehen!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19335
Erhaltene Danke: 1751

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 22.08.10 02:37 
Nun, der Callback sieht für mich ganz normal aus.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  function MyCallback(Context: Pointer; Notification: UINT;
    Param1, Param2: UINT_PTR): UINT; stdcall;

// Und beim Aufruf als Parameter
@MyCallback