Entwickler-Ecke

Windows API - TSetupScanFileQueueA


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


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


jaenicke - So 22.08.10 02:37

Nun, der Callback sieht für mich ganz normal aus.

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