static void Login_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) { switch(id){ case IDOK: if(IsPasswordValid(hwnd)){ EndDialog(hwnd, IDOK); } break; case IDCANCEL: EndDialog(hwnd, IDCANCEL); break; case IDC_EDT_PWRD_MAIN: case IDC_EDT_PWRD_SECOND: case IDC_EDT_PWRD_NEW: if(codeNotify == EN_CHANGE) EnableOKButton(hwnd); break; } }
bool authorize(ISecUser & user, ISecResourceList * resources) { return IsPasswordValid(user); }