Functions to set notifications that are triggered when a server is added to the server list.
Set a callback function which is called when a server is added to the server list.
- Parameters
-
[in] | pCallback | A pointer to the callback function. Use NULL to disable. |
[in] | pData | Optional user data. |
- Status values
-
- Since
- 0.9
void NetSrvSetEventAdded |
( |
int |
fdEvent | ) |
|
Set an event file descriptor which is set when a server is added to the server list.
- Parameters
-
[in] | fdEvent | An event file descriptor. Use <0 to disable. |
- Note
- This function is only available on GNU/Linux.
- Status values
-
- Since
- 0.9
void NetSrvSetEventAdded |
( |
HANDLE |
hEvent | ) |
|
Set an event object handle which is set when a server is added to the server list.
- Parameters
-
[in] | hEvent | A handle to the event object. Use NULL to disable. |
- Note
- This function is only available on Windows.
- Status values
-
- Since
- 0.9
void NetSrvSetMessageAdded |
( |
HWND |
hWnd | ) |
|
Set a window handle to which a WM_LIBTIEPIE_NETSRV_ADDED message is sent when a server is added to the server list.
The parameters of the message contain the following:
wParam
contains the server handle.
lParam
is reserved.
- Parameters
-
[in] | hWnd | A handle to the window whose window procedure is to receive the message. Use NULL to disable. |
- Note
- This function is only available on Windows.
- Status values
-
- Since
- 0.9