Jump to content

Recommended Posts

Posted

How do i call a function called "cdrom close " in autoit from this dll ... :whistle:

Attribute VB_Name = "frmNirCmdTest"

Attribute VB_GlobalNameSpace = False

Attribute VB_Creatable = False

Attribute VB_PredeclaredId = True

Attribute VB_Exposed = False

Private Declare Function DoNirCmd Lib "nircmd.dll" (ByVal lpszCommand As String) As Integer

Private Sub CmdCloseCDRom_Click()

DoNirCmd "cdrom close"

End Sub

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...