Sign in to follow this  
Followers 0
ScriptUSER

How d0 i convert this to Autoit - Dll call

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Just use:

CDTray(<driveletter>,<open Or close>)

instead.

Look for it in the help

Edited by sandyd

----[ SandyD ]---

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0