wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Enumerations | Functions
ndis_events.c File Reference

ndis_events - Receive NdisMIndicateStatus() events using WMI More...

#include "includes.h"
#include <wbemidl.h>
#include "common.h"

Data Structures

struct  ndis_events_data
 

Macros

#define _WIN32_WINNT   0x0400
 
#define COBJMACROS
 
#define BstrAlloc(x)   (x) ? SysAllocString(x) : NULL
 
#define BstrFree(x)   if (x) SysFreeString(x)
 
#define MAX_QUERY_LEN   256
 

Enumerations

enum  event_types {
  EVENT_CONNECT, EVENT_DISCONNECT, EVENT_MEDIA_SPECIFIC, EVENT_ADAPTER_ARRIVAL,
  EVENT_ADAPTER_REMOVAL, EVENT_CONNECT, EVENT_DISCONNECT, EVENT_MEDIA_SPECIFIC,
  EVENT_ADAPTER_ARRIVAL, EVENT_ADAPTER_REMOVAL
}
 

Functions

HRESULT STDMETHODCALLTYPE call_IWbemServices_ExecQuery (IWbemServices *pSvc, LPCWSTR strQueryLanguage, LPCWSTR strQuery, long lFlags, IWbemContext *pCtx, IEnumWbemClassObject **ppEnum)
 
HRESULT STDMETHODCALLTYPE call_IWbemServices_ExecNotificationQueryAsync (IWbemServices *pSvc, LPCWSTR strQueryLanguage, LPCWSTR strQuery, long lFlags, IWbemContext *pCtx, IWbemObjectSink *pResponseHandler)
 
HRESULT STDMETHODCALLTYPE call_IWbemLocator_ConnectServer (IWbemLocator *pLoc, LPCWSTR strNetworkResource, LPCWSTR strUser, LPCWSTR strPassword, LPCWSTR strLocale, long lSecurityFlags, LPCWSTR strAuthority, IWbemContext *pCtx, IWbemServices **ppNamespace)
 
void ndis_events_deinit (struct ndis_events_data *events)
 
struct ndis_events_datandis_events_init (HANDLE *read_pipe, HANDLE *event_avail, const char *ifname, const char *desc)
 

Detailed Description

ndis_events - Receive NdisMIndicateStatus() events using WMI