Scheduled tasks, machine codes and registration codes, Web services

Source: Internet
Author: User
Tags unique id

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.