Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. API Functions

API Functions

Scheduled Pinned Locked Moved Visual Basic
csharpjsontutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mkanchha
    wrote on last edited by
    #1

    Hi TO all, How to Call Windows API Functions in VB.NET Mohan Balal

    C N T 3 Replies Last reply
    0
    • M Mkanchha

      Hi TO all, How to Call Windows API Functions in VB.NET Mohan Balal

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      www.pinvoke.net[^]

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • M Mkanchha

        Hi TO all, How to Call Windows API Functions in VB.NET Mohan Balal

        N Offline
        N Offline
        Nouman Bhatti
        wrote on last edited by
        #3

        first u have to import system.runtime.interopservices then u have to declare the function which u want to use as Public Function GetWindowLongA(ByVal hWnd As Long, _ ByVal nIndex As Long) As Long End Function for reference http://www.freevbcode.com/ShowCode.Asp?ID=2707

        1 Reply Last reply
        0
        • M Mkanchha

          Hi TO all, How to Call Windows API Functions in VB.NET Mohan Balal

          T Offline
          T Offline
          Tirthadip
          wrote on last edited by
          #4

          Just an example??? here it is... Import namespace InteropServices Imports System.Runtime.InteropServices declare function like... Declare Auto Function sndPlaySound Lib "WINMM.DLL" (ByVal FileName As String, ByVal Options As Int32) As Int32

          Tirtha Miles to go before I sleep

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups