L_InetGetCallback
#include "l_bitmap.h"
#include "ltnet.h"
L_LTNET_API L_INT L_InetGetCallback(hComputer, ppfnCallback, ppUserData)
L_COMP hComputer; |
/* computer to get the callback data from */ |
INETCALLBACK * ppfnCallback; |
/* address of variable */ |
L_VOID * * ppUserData; |
/* address of variable */ |
Gets a pointer to the current callback associated with the specified computer.
Parameter |
Description |
hComputer |
Computer handle for which to retrieve the callback data. |
ppfnCallback |
Address of a variable to be updated with a pointer to the INETCALLBACK function associated with hComputer. |
ppUserData |
Address of the variable to be updated with the user defined data associated with the callback function. |
Returns
SUCCESS |
This function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This function, together with L_InetSetCallback, can be used to change user defined data associated with a computer handle.
Required DLLs and Libraries
LTNET For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
L_InetServerInit, L_InetAcceptConnect, L_InetConnect, L_InetSetCallback |
Topics: |
|
|
Example
L_INT InetGetCallbackExample(L_COMP hComputer,L_VOID * pData) { L_INT nRet; INETCALLBACK pfnCallback; L_VOID * pUserData; nRet = L_InetGetCallback (hComputer, &pfnCallback, &pUserData); if(nRet != SUCCESS) return nRet; if(pData != pUserData) { nRet = L_InetSetCallback(hComputer, pfnCallback, pData); if(nRet != SUCCESS) return nRet; } return SUCCESS; }