C# 클래스 SurfaceBluetooth.BluetoothMonitor

Provides continual Bluetooth discovery and events
상속: IDisposable
파일 보기 프로젝트 열기: smalice/SurfaceWPFApp 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
StartDiscovery ( ) : void

Starts the background discovery thread. Set the DiscoveryTime and IdleTime first to define the continuous discovery pattern.

StopDiscovery ( ) : void

Sets a flag to abort discovery on next cycle.

비공개 메소드들

메소드 설명
AuthenticationHandler ( object o, InTheHand.Net.Bluetooth.BluetoothWin32AuthenticationEventArgs e ) : void
BluetoothMonitor ( ) : System
DiscoverThread ( ) : void
HwndBluetoothHook ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

Hook into the native message loop for the application to process WM_DEVICECHANGE messages.

InitializeEvents ( ) : void
OnDeviceArrived ( object o ) : void
OnDeviceLeft ( object o ) : void
RegisterDeviceNotification ( IntPtr hRecipient, DEV_BROADCAST_HANDLE &NotificationFilter, int Flags ) : IntPtr
UnregisterDeviceNotification ( IntPtr Handle ) : bool

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

StartDiscovery() 공개 메소드

Starts the background discovery thread. Set the DiscoveryTime and IdleTime first to define the continuous discovery pattern.
public StartDiscovery ( ) : void
리턴 void

StopDiscovery() 공개 메소드

Sets a flag to abort discovery on next cycle.
public StopDiscovery ( ) : void
리턴 void