{"id":232,"date":"2008-08-03T09:07:43","date_gmt":"2008-08-03T08:07:43","guid":{"rendered":"http:\/\/www.evertdekker.com\/wp\/?p=232"},"modified":"2015-08-10T19:29:12","modified_gmt":"2015-08-10T18:29:12","slug":"volume-controle","status":"publish","type":"post","link":"https:\/\/evertdekker.com\/wp\/?p=232","title":{"rendered":"Volume controle"},"content":{"rendered":"<p>Controle the device volume from within your VB20xx application.<br \/>\nTested with Friendlyarm Mini2440 running on win CE6.0 and Visual Basic 2008.<\/p>\n<pre class=\"brush: vbnet; gutter: true\"> Public Class Form1\r\n\r\n    Public Declare Function waveOutSetVolume Lib &quot;coredll.dll&quot; (ByVal hwo As IntPtr, ByVal dwVolume As Long) As Integer\r\n    Public Declare Function waveOutGetVolume Lib &quot;coredll.dll&quot; (ByVal hwo As IntPtr, ByRef pdwVolume As Long) As Integer\r\n\r\n\r\n    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\n        waveOutSetVolume(0, 40000) &#039;Sets the volume to 40000\r\n    End Sub\r\n\r\n    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click\r\n        Dim i As Long\r\n        waveOutGetVolume(0, i)\r\n        Debug.WriteLine(&quot;Current volume setting: &quot; &amp; i)\r\n    End Sub\r\nEnd Class<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Controle the device volume from within your VB20xx application. Tested with Friendlyarm Mini2440 running on win CE6.0 and Visual Basic 2008. Public Class Form1 Public Declare Function waveOutSetVolume Lib &quot;coredll.dll&quot; (ByVal hwo As IntPtr, ByVal dwVolume As Long) As Integer Public Declare Function waveOutGetVolume Lib &quot;coredll.dll&quot; (ByVal hwo As IntPtr, ByRef pdwVolume As Long) As [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-mini2440"],"_links":{"self":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232"}],"version-history":[{"count":1,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}