Quelltext /~heha/hs/cdcat1plugin.zip/src/cunicode.h

bool usys();

#define LONGPATH_MAX 1024
#define longnameprefixmax 6

#define elemof(s) (sizeof(s)/sizeof(*(s)))

char*unicopy(UINT,char*outname,int buflen,const WCHAR*inname);
inline char*unicopy(char*outname,int buflen,const WCHAR*inname)
	{return unicopy(CP_ACP,outname,buflen,inname);}
WCHAR*unicopy(UINT,WCHAR*outname,int buflen,const char*inname);
inline WCHAR*unicopy(WCHAR*outname,int buflen,const char*inname)
	{return unicopy(CP_ACP,outname,buflen,inname);}

void unicopy(WIN32_FIND_DATA&,const WIN32_FIND_DATAW&);
void unicopy(WIN32_FIND_DATAW&,const WIN32_FIND_DATA&);

int ProgressProcT(const WCHAR*nSource,const WCHAR*nTarget,int PercentDone);
void LogProcT(int MsgType,const WCHAR*LogString);
BOOL RequestProcT(int RequestType,const WCHAR*CustomTitle,const WCHAR*CustomText,
	WCHAR*ReturnedText,int buflen);

BOOL CopyFileT(const WCHAR*Existing,const WCHAR*New,BOOL bFailIfExists);
BOOL CreateDirectoryT(const WCHAR* lpPathName,SECURITY_ATTRIBUTES*sa);
BOOL RemoveDirectoryT(const WCHAR* lpPathName);
BOOL DeleteFileT(const WCHAR* lpFileName);
BOOL MoveFileT(const WCHAR*Existing,const WCHAR*New);
BOOL SetFileAttributesT(const WCHAR*Name,DWORD attr);
HANDLE CreateFileT(const WCHAR*Name,DWORD dwDesiredAccess,DWORD dwShareMode,
	LPSECURITY_ATTRIBUTES lpSecurityAttributes,DWORD dwCreationDisposition,
	DWORD dwFlagsAndAttributes,HANDLE hTemplateFile);
UINT ExtractIconExT(const WCHAR*File,int nIconIndex,HICON *phiconLarge,HICON *phiconSmall,UINT nIcons);
HANDLE FindFirstFileT(const WCHAR*search,WIN32_FIND_DATAW&W);
BOOL FindNextFileT(HANDLE hFind,WIN32_FIND_DATAW&W);
Vorgefundene Kodierung: UTF-80