This method is called from the generic server at startup. It passes the callback methods supported by the generic server. These callback methods can be called anytime to exchange data with the generic server.
The DefineCallbacks method must not be overloaded or changed. The default implementation stores the delegates for later callbacks.
Visual Basic (Declaration) | |
---|---|
Public Sub DefineCallbacks( _ ByVal dlgAddItem As AddItem, _ ByVal dlgDeleteItem As DeleteItem, _ ByVal dlgShutDownRequest As ShutDownRequest, _ ByVal dlgSetItemValue As SetItemValue, _ ByVal dlgGetRefreshNeed As GetRefreshNeed, _ ByVal dlgSetServerState As SetServerState, _ ByVal dlgGetServerInfo As GetServerInfo, _ ByVal dlgGetItemInfo As GetItemInfo _ ) |
C# | |
---|---|
public void DefineCallbacks( AddItem dlgAddItem, DeleteItem dlgDeleteItem, ShutDownRequest dlgShutDownRequest, SetItemValue dlgSetItemValue, GetRefreshNeed dlgGetRefreshNeed, SetServerState dlgSetServerState, GetServerInfo dlgGetServerInfo, GetItemInfo dlgGetItemInfo ) |
Parameters
- dlgAddItem
- Add an item to the server's address space
- dlgDeleteItem
- Remove an item from the server's address space. NOT supported in this version.
- dlgShutDownRequest
- Initiates the server shutdown.
- dlgSetItemValue
- Writes a new item value into the server's cache
- dlgGetRefreshNeed
- Returns an array of handles of the items that need be refreshed.
- dlgSetServerState
- Returns information about the current server state.
- dlgGetServerInfo
- Returns information about the current server usage.
- dlgGetItemInfo
- Returns information about an item.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family