2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS User Manager Control Panel
4 * FILE: dll/cpl/usrmgr/misc.c
5 * PURPOSE: Miscellaneus functions
7 * PROGRAMMERS: Eric Kohl
14 DebugPrintf(LPTSTR szFormat
, ...)
20 va_start (arg_ptr
, szFormat
);
21 _vstprintf (szOut
, szFormat
, arg_ptr
);
24 MessageBox(NULL
, szOut
, _T("Debug"), MB_OK
);
28 CheckAccountName(HWND hwndDlg
,
32 TCHAR szAccountName
[256];
36 uLen
= _tcslen(lpAccountName
);
38 uLen
= GetDlgItemText(hwndDlg
, nIdDlgItem
, szAccountName
, 256);
40 /* Check the account name */
42 _tcspbrk((lpAccountName
) ? lpAccountName
: szAccountName
, TEXT("\"*+,/\\:;<=>?[]|")) != NULL
)
45 TEXT("The account name you entered is invalid! An account name must not contain the following charecters: *+,/:;<=>?[\\]|"),
47 MB_OK
| MB_ICONERROR
);