148 APPENDIX E: AUTOMATIC ATTRIBUTE ASSIGNMENTThe C examples are located in C:\Transcend TraffixManager\TraffixServer\examples\c and the Visual Basicexamples are in C:\Transcend TraffixManager\TraffixServer\examples\vb. You should copy one ofthese samples to your own directory before modifying it.Attribute lookup programs must be able to find the attripc.dll file whenthey are running. This file is located in the Traffix Manager installdirectory. In order that your program can find this file, you should copyyour program to the Traffix Manager install directory and run it fromthere, or you should add the Traffix Manager install directory to the PATHenvironment variable (it must be added as a system environment variable,not a user variable). Be careful not to overwrite any of the executablesalready in the Traffix Manager install directory.Once you have built your attribute lookup program and copied it ifnecessary, you should add it to the user-defined attribute programconfiguration file (see “Contents of the User-defined AttributesConfiguration File” on page 138).Library functions availableTable 21 shows a full list of the functions available to attribute lookupprograms in the attripc DLL library:country Visual Basic Simple example program which assigns anattribute country based on DNS name.template Visual Basic Empty attribute program which does nothing, butwhich contains all the necessary project files anddeclarations to build an attribute lookup program.Table 21 Functions available to lookup programs in the attripc DLL libraryFunction DescriptionGetNextLookup Takes no arguments. Returns an integer. This function waitsuntil Traffix Manager want to determine new attributes for adevice, or until Traffix Manager is closing down. If TraffixManager wants to determine attributes for a device, thisreturns 1. If Traffix Manager wants your program to exit, thisfunction returns 0.(continued)Table 20 Example Programs (continued)Name Language Description