Source code of Windows XP (NT5)
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.

54 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. AhCall.h
  5. Abstract:
  6. Definitions for use by all modules
  7. Notes:
  8. None
  9. History:
  10. 12/09/1999 robkenny Created
  11. 01/10/2000 linstev Format to new style
  12. --*/
  13. #ifndef _SHIMLIB_H_
  14. #define _SHIMLIB_H_
  15. #include <WinDef.h>
  16. BOOL IsOnCDRomW( LPCWSTR wszFileName );
  17. BOOL IsOnCDRomA( LPCSTR szFileName );
  18. BOOL IsOnCDRom( HANDLE hFile );
  19. VOID MassagePathW( LPCWSTR pwszOldPath, LPWSTR pwszNewPath );
  20. VOID MassagePathA( LPCSTR pszOldPath, LPSTR pszNewPath );
  21. char * StringDuplicateA( const char * strToCopy );
  22. wchar_t * StringDuplicateW( const wchar_t * wstrToCopy );
  23. VOID SkipBlanksA(const char *& str);
  24. VOID SkipBlanksW(const WCHAR *& str);
  25. char * __cdecl stristr(const char* string, const char * strCharSet);
  26. WCHAR * __cdecl wcsistr(const WCHAR* string, const WCHAR * strCharSet);
  27. int SafeStringCopyA(char * lpDest, DWORD nDestSize, const char * lpSrc, DWORD nSrcLen);
  28. int SafeStringCopyW(WCHAR * lpDest, DWORD nDestSize, const WCHAR * lpSrc, DWORD nSrcLen);
  29. BOOL StringSubstituteA(const char * lpOrig, const char * lpMatch, const char * lpSubstitute, DWORD dwCorrectedSize, char * lpCorrected, DWORD * nCorrectedLen, DWORD * nCorrectedTotalSize);
  30. BOOL StringSubstituteW(const WCHAR * lpOrig, const WCHAR * lpMatch, const WCHAR * lpSubstitute, WCHAR * lpCorrected, DWORD dwCorrectedSize, DWORD * nCorrectedLen, DWORD * nCorrectedTotalSize);
  31. BOOL StringISubstituteA(const char * lpOrig, const char * lpMatch, const char * lpSubstitute, DWORD dwCorrectedSize, char * lpCorrected, DWORD * nCorrectedLen, DWORD * nCorrectedTotalSize);
  32. BOOL StringISubstituteW(const WCHAR * lpOrig, const WCHAR * lpMatch, const WCHAR * lpSubstitute, WCHAR * lpCorrected, DWORD dwCorrectedSize, DWORD * nCorrectedLen, DWORD * nCorrectedTotalSize);
  33. #endif // _SHIMLIB_H_