This method is called from the generic server at the startup, when the first client connects. All items supported by the server need to be defined by calling the AddItem callback method for each item.
The Item IDs are fully qualified names ( e.g. Dev1.Chn5.Temp )
The generic server part creates an approriate hierachical address space. The sample code defines the application item handle as the the buffer array index. This handle is passed in the calls from the generic server to identify the item. It should allow quick access to the item definition / buffer. The handle may be implemented differently depending on the application.
The branch separator character used in the fully qualified item name must match the separator character defined in the GetServerParameters method.
Visual Basic (Declaration) | |
---|---|
Public Function CreateServerItems( _ ByVal cmdParams As String _ ) As Integer |
Parameters
- cmdParams
- String with the command line parameters as they were specified when the server was being registered. The XDARap XML DA server does not support this feature and calls always with an empty string.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family