Platform SDK: Exchange Server |
Input to CFGCODE is from a text file in the format of an .INI file. It contains a section header and a list of MAPI properties. The properties can be of the following MAPI property types:
The following is the text of the SAMPLE.INI input file. It is included with the Microsoft Exchange Server SDK and can be used to test the CFGCODE sample application. MAPI properties in this file are read from the [MySection] section:
; ; Sample INI file for CfgCode.Exe ; [MySection] 0fff0102=01 23 45 67 89 ab cd ef 0005000b=1 00090003=255 3001001e=Accounting 30080040=1996/02/26 13:28:47 [AnotherSection] 0fff0102=fe dc ba 98 76 54 32 10 0005000b=1 00090003=255 3001001e=Marketing 30080040=1996/02/26 13:28:50
In this example, the [MySection] section is read only if the /SECTION= flag is set to [MySection] on the CFGCODE command line. Because only one section can be read from the input file at a time, the [AnotherSection] section is ignored. If the /SECTION= flag is set to [AnotherSection], the [MySection] section will be ignored.
The following is another example of an input file. It shows the data used by SGWADMIN, which is the sample gateway's Administrator extension DLL. In this example, the first four digits of the property tags number them sequentially; the final four digits identify the MAPI property type as specified in MAPIDEFS.H. For example, PT_TSTRING is defined as 001e, which is used for all the string values in this file.
MAPI property tags are specified in eight-digit hex values. Because the values of MAPI property tags can be represented in the last four digits, you can choose arbitrary values for the first four digits.
[SGWData] ; Enable inbound processing 0001000b=1 ; Enable outbound processing 0002000b=1 ; Number of inbound processing threads 00030003=1 ; Number of outbound processing threads 00040003=1 ; Number of messages processed per inbound thread 00050003=1 ; Number of messages processed per outbound thread 00060003=1 ; Inbound submit interval 00070003=1000 ; Outbound submit interval 00080003=1000 ; Inbound polling interval 00090003=-1 ; Outbound polling interval 000a0003=-1 ; Address type 000b001e=EDK ; System Administrator Display Name 000c001e=System Administrator ; System Administrator Email Address 000d001e=sysadmin ; Inbound directory 000e001e=\in ; Outbound directory 000f001e=\out ; Inbound conversion 0010001e=SAMPLEGW.INBOUND ; Outbound conversion 0011001e=SAMPLEGW.OUTBOUND