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
13 DebugPrintf(LPTSTR szFormat
, ...)
19 va_start (arg_ptr
, szFormat
);
20 _vstprintf (szOut
, szFormat
, arg_ptr
);
23 MessageBox(NULL
, szOut
, _T("Debug"), MB_OK
);
27 CheckAccountName(HWND hwndDlg
,
31 TCHAR szAccountName
[256];
35 uLen
= _tcslen(lpAccountName
);
37 uLen
= GetDlgItemText(hwndDlg
, nIdDlgItem
, szAccountName
, 256);
39 /* Check the account name */
41 _tcspbrk((lpAccountName
) ? lpAccountName
: szAccountName
, TEXT("\"*+,/\\:;<=>?[]|")) != NULL
)
44 TEXT("The account name you entered is invalid! An account name must not contain the following charecters: *+,/:;<=>?[\\]|"),
46 MB_OK
| MB_ICONERROR
);