}
-extern void *lacInit(HWND hEditCtl);
-extern void lacTerm(void *pAutoComplete);
-extern void lacAddPrincipal(char *principal);
+extern void *Leash_pec_create(HWND hEditCtl);
+extern void Leash_pec_destroy(void *pAutoComplete);
+extern void Leasch_pec_add_principal(char *principal);
extern void Leash_pec_clear_history(void *pec);
/* Callback function for the Authentication Dialog box that initializes and
hEditCtrl = GetDlgItem(hDialog, IDC_EDIT_PRINCIPAL);
if (hEditCtrl)
- pAutoComplete = lacInit(hEditCtrl);
+ pAutoComplete = Leash_pec_create(hEditCtrl);
hSliderLifetime = GetDlgItem(hDialog, IDC_STATIC_LIFETIME_VALUE);
hSliderRenew = GetDlgItem(hDialog, IDC_STATIC_RENEW_TILL_VALUE);
memset(password,0,sizeof(password));
RemoveProp(hDialog, "HANDLES_HELP");
if (pAutoComplete) {
- lacTerm(pAutoComplete);
+ Leash_pec_destroy(pAutoComplete);
pAutoComplete = NULL;
}
EndDialog(hDialog, (int)lParam);
lpdi->out.realm[LEASH_REALM_SZ-1] = 0;
}
*/
- lacAddPrincipal(principal);
+ Leash_pec_add_principal(principal);
CloseMe(TRUE); /* success */
return FALSE;
-extern "C" void lacAddPrincipal(char *principal)
+extern "C" void Leash_pec_add_principal(char *principal)
{
// write princ to registry
HKEY hKey;
}
-extern "C" void *lacInit(HWND hEdit)
+extern "C" void *Leash_pec_create(HWND hEdit)
{
return new PrincipalEditControl(
hEdit,
Leash_get_default_uppercaserealm() ? true : false);
}
-extern "C" void lacTerm(void *pHook)
+extern "C" void Leash_pec_destroy(void *pec)
{
- if (pHook != NULL)
- delete ((PrincipalEditControl *)pHook);
+ if (pec != NULL)
+ delete ((PrincipalEditControl *)pec);
}