' Wrappers from Samsung Mobile SDK Wrapper Example converted to VB.NET 2005 by Jinan (http://jinanrealm.com) ' Imports System Imports System.Collections.Generic Imports System.Text Imports System.Runtime.InteropServices Namespace SamsungMobileSdk Public Class Accelerometer Public Structure Vector Public x As Single Public y As Single Public z As Single End Structure Public Structure Capabilities Public callbackPeriod As UInteger ' in milliseconds End Structure Public Delegate Sub EventHandler(ByVal v As Vector) _ Public Shared Function GetVector(ByRef accel As Vector) As SmiResultCode End Function _ Public Shared Function GetCapabilities(ByRef cap As Capabilities) As SmiResultCode End Function _ Public Shared Function RegisterHandler(ByVal period As UInteger, ByVal handler As EventHandler) As SmiResultCode End Function _ Public Shared Function UnregisterHandler() As SmiResultCode End Function End Class End Namespace