Connect or disconnect a LPT port
Connect or disconnect a LPT port
API Declarations
(ByVal hwnd As Long, ByVal dwType As Long) As Long
Private Declare Function WNetDisconnectDialog Lib "mpr.dll" (ByVal hwnd As Long, ByVal dwType As Long) As Long
Rate Connect or disconnect a LPT port
(2(2 Vote))
'Connect LPTx
xyz = WNetConnectionDialog(Me.hwnd, 2)
End Sub
Private Sub Command2_Click()
'Disconnect LPTx
xyz = WNetDisconnectDialog(Me.hwnd, 2)
End Sub
Connect or disconnect a LPT port Comments
No comments yet — be the first to post one!
Post a Comment