Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
677 B

#define SZ_SIZE MAX_PATH
BOOL
wcs2ansi(
const wchar_t *pwsz,
char *psz,
DWORD pszlen
);
BOOL
ansi2wcs(
const char *psz,
wchar_t *pwsz,
DWORD pwszlen
);
BOOL
tchar2ansi(
const TCHAR *tsz,
char *psz,
DWORD pszlen
);
BOOL
ansi2tchar(
const char *psz,
TCHAR *tsz,
DWORD tszlen
);
void EnsureTrailingBackslash(TCHAR *sz);
void RemoveTrailingBackslash(TCHAR *sz);
void getpath(TCHAR *fullpath, TCHAR *path, DWORD size);
#ifndef DIMA
#define DIMAT(Array, EltType) (sizeof(Array) / sizeof(EltType))
#define DIMA(Array) DIMAT(Array, (Array)[0])
#endif