01. Client Configuration for Scheduled Tasks Tscheduletask
Auxiliary structure content: tschedulerecord<scheduletask.pas>
Tschedulerecord.scheduleid--Unique identifier
Tschedulerecord.schedulename--Task description
Tschedulerecord.schedulefilename--File path (can be exe,bat or DLL)
Tschedulerecord.scheduleparameters--Additional parameters
Tschedulerecord.schedulepassword--Authorized access password
Tschedulerecord.scheduleexecmode--1: When the service is started, 2: When the service is stopped, 3: It is scheduled to run every day, 4: by time period
Tschedulerecord.schedulereturnmode--1: return immediately; 2: Continuous execution
Tschedulerecord.schedulestartuptime--point-in-time hh:mm:ss per day of scheduled operation
Tschedulerecord.scheduleexecinterval-frequency of execution by time period < minutes >
A. Registering a scheduled task Tscheduletask.addschedule (Tschedulerecord)
B. Modifying a scheduled task Tscheduletask.updateschedule (unique ID, Tschedulerecord)
C. unregistering a scheduled task Tscheduletask.removeschedule (unique identification)
D. Taking the scheduled Task table Tscheduletask.fetchschedulelist (CDS)
E. Fetch task Properties Tscheduletask.getscheduleproperty (unique identifier, tqbparcel)
02. Machine Code and registration code tsoftwarrant
* * Machine code is divided into four sections, different sections with-separated, each segment value length can be 4,5,6 three kinds of options
A. Fetch machine code: Need to configure the required format string in advance each section length and custom initialization encryption key value Varykey;
Tsoftwarrant.getmachinecode;
B. Take registration code: Need to configure the required format string in advance each segment length and custom initialization encryption key value Varykey;
You also need to encrypt the string encryptkey and register the user information Binddomain
Tsoftwarrant.getregistecode;
C. Registration: Need to configure a good registration code Userregcode;
Start registration again: tsoftwarrant.startauthorize;
Registration result Processing: onauthorized---Registration success events
Onunauthorized-> Registration Failure Event
03.Web Session Processing Twebmanager
A. Take the middle tier to open Web services
Twebmanager.getwebstatus (Boolean): Boolean; The passed-in parameter is true: open; False: Not turned on
B.web opening and closing of the service
Twebmanager.setwebservice (Boolean): Boolean; Passed parameter is true: on; False: Off
C. Fetching a list of web sessions
Twebmanager.fetchwebsessionlist (CDS)
Websessionid
AppName
ClientName
Clientaddress
Bindingintprop
Bindingstrprop
Bindingroleid
D. Forcing a list of web sessions to be closed
Twebmanager.removewebsession (sessionid:ansistring)
SessionID read from CDs [Websessionid]
Scheduled tasks, machine codes and registration codes, Web services