This plug-in 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 Delegate Function DlgCreateDaItems() As Integer |
C# | |
---|---|
public delegate int DlgCreateDaItems() |
Return Value
Returns S_OK if the items were successfuly created.Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2