BOOL DereferenceShortcut (char *pszShortcut);
long QueryRegistry (HKEY hMainKey, char *pszKey, char *pszSubKey,
char *pszBuffer, long *pdLength);
- int ListNICs (void (*callback) (const char *, int, void *), void *cls);
+ int ListNICs (void (*callback) (void *, const char *, int), void *cls);
BOOL AddPathAccessRights (char *lpszFileName, char *lpszAccountName,
DWORD dwAccessMask);
char *winErrorStr (const char *prefix, int dwErr);
/**\r
* Lists all network interfaces in a combo box\r
* Used by the basic GTK configurator\r
- * @param callback\r
+ *\r
+ * @param callback function to call for each NIC\r
+ * @param callback_cls closure for callback\r
*/\r
- int ListNICs(void (*callback) (const char *, int, void *), void * cls)\r
+ int ListNICs(void (*callback) (void *, const char *, int), void * callback_cls)\r
{\r
PMIB_IFTABLE pTable;\r
PMIB_IPADDRTABLE pAddrTable;\r
if (pszIfName)\r
free(pszIfName);\r
\r
- callback(szEntry, pAddrTable->table[dwIfIdx].dwIndex == dwExternalNIC, cls);\r
+ callback(callback_cls,\r
+ szEntry, \r
+ pAddrTable->table[dwIfIdx].dwIndex == dwExternalNIC);\r
}\r
}\r
GlobalFree(pAddrTable);\r
* @brief Grant permission to a file\r
* @param lpszFileName the name of the file or directory\r
* @param lpszAccountName the user account\r
- * @param the desired access (e.g. GENERIC_ALL)\r
+ * @param dwAccessMask the desired access (e.g. GENERIC_ALL)\r
* @return TRUE on success\r
* @remark based on http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q102102&\r
*/\r