We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.
The Function declaration for use in vb6:
Public Type ctcAssignData deviceType As Integer APIversion As String * 1 APIextensions As String * 1 deviceDN As String * 24 End Type
Declare Function ctcAssign Lib "ctcapi32.dll" (channel As Long, struct As ctcAssignData, ByVal server As String, ByVal logid As String, ByVal network As String) As Long
Private Sub Command1_Click() Dim channel As Long Dim struct As ctcAssignData Dim CallID As Long Dim status As Long struct.deviceDN = "322" struct.deviceType = 200 struct.APIversion =&H40 struct.APIextensions = 2 status = ctcAssign(channel, struct, "servername", "server_logical_name", "ncacn_ip_tcp") End Sub