Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi WlanRegisterNotification Problem (https://www.delphipraxis.net/102839-wlanregisternotification-problem.html)

nitschchedu 7. Nov 2007 10:38

Re: WlanRegisterNotification Problem
 
Ok jetzt gehts :-D :-D :-D :-D Danke!

Pichel 21. Sep 2009 18:05

Re: WlanRegisterNotification Problem
 
Sorry, aber ich muß diesen alten Thread mal aufgreifen.

Bisher funktionierte es bei mir exakt wie hier gelöst unter XP/SP2 und auch unter Vista.

Allerdings bleibt es nun unter XP/SP3 genau bei

WaitForSingleObject(hScanCompleteEvent, INFINITE);

hängen.

Delphi-Quellcode:
procedure myWLanNotifyProc(pNotifyData: Pndu_WLAN_NOTIFICATION_DATA;
   pContext: PVOID); stdcall;
begin
  if pNotifyData.NotificationSource = NDU_WLAN_NOTIFICATION_SOURCE_ACM then
  begin
    if Tndu_WLAN_NOTIFICATION_ACM(pNotifyData.NotificationCode) = wlan_notification_acm_scan_complete then
    begin
      SetEvent(PHandle(pContext)^);
    end;
  end;
end;
Die WlanApi.dll version ist: v5.1.2600.5512

Da ich mein Delphi nicht auf einem SP3 Rechner installiert habe fällt das Debuggen sehr umständlich aus, vielleicht hat ja jemand eine lösende Idee.


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:29 Uhr.
Seite 2 von 2     12   

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