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.

48 lines
2.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. //---------------------------------------------------------------------------
  4. //---------------------------------------------------------------------------
  5. // Returns TRUE if the string is unique.
  6. typedef BOOL (CALLBACK *PFNISUNIQUE)(LPCTSTR lpsz, UINT nUser);
  7. extern HWND g_hwndProgress;
  8. //---------------------------------------------------------------------------
  9. #define LOGGING
  10. #ifdef LOGGING
  11. void __cdecl _Log(LPCTSTR pszMsg, ...);
  12. #define Log _Log
  13. #else
  14. #define Log 1 ? (void)0 : (void)
  15. #endif
  16. //---------------------------------------------------------------------------
  17. #define Reg_SetStruct(hkey, pszSubKey, pszValue, pData, cbData) Reg_Set(hkey, pszSubKey, pszValue, REG_BINARY, pData, cbData)
  18. #define Reg_SetString(hkey, pszSubKey, pszValue, pszString) Reg_Set(hkey, pszSubKey, pszValue, REG_SZ, (LPTSTR)pszString,(lstrlen(pszString)+1)* SIZEOF(TCHAR))
  19. #define Reg_GetString(hkey, pszSubKey, pszValue, pszString, cbString) Reg_Get(hkey, pszSubKey, pszValue, pszString, cbString)
  20. #define Reg_GetStruct(hkey, pszSubKey, pszValue, pData, cbData) Reg_Get(hkey, pszSubKey, pszValue, pData, cbData)
  21. //---------------------------------------------------------------------------
  22. void Group_SetProgress(int i);
  23. void Group_SetProgressNameAndRange(LPCTSTR lpszGroup, int iMax);
  24. void Group_CreateProgressDlg(void);
  25. void Group_DestroyProgressDlg(void);
  26. void ConvertHashesToNulls(LPTSTR p);
  27. int MyMessageBox(HWND hwnd, UINT idTitle, UINT idMessage, LPCTSTR lpsz, UINT nStyle);
  28. #ifdef UNICODE
  29. LPTSTR fgets(LPTSTR sz, DWORD cb, HANDLE fh);
  30. #else
  31. LPTSTR fgets(LPTSTR sz, WORD cb, int fh);
  32. #endif
  33. void ShellRegisterApp(LPCTSTR lpszExt, LPCTSTR lpszTypeKey, LPCTSTR lpszTypeValue, LPCTSTR lpszCommand, BOOL fOveride);
  34. // BOOL NEAR PASCAL WritePrivateProfileInt(LPCSTR lpszSection, LPCSTR lpszValue, int i, LPCSTR lpszIniFile);
  35. void Group_SetProgressDesc(UINT nID);
  36. HRESULT ICoCreateInstance(REFCLSID rclsid, REFIID riid, LPVOID * ppv);
  37. BOOL WINAPI YetAnotherMakeUniqueName(LPTSTR pszNewName, UINT cbNewName, LPCTSTR pszOldName, PFNISUNIQUE pfnIsUnique, UINT n, BOOL fLFN);
  38. BOOL WINAPI MakeUniqueName(LPTSTR pszNewName, UINT cbNewName, LPCTSTR pszOldName, UINT nStart, PFNISUNIQUE pfnIsUnique, UINT nUser, BOOL fLFN);
  39. BOOL WINAPI Reg_SetDWord(HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue, DWORD dw);
  40. BOOL WINAPI Reg_GetDWord(HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue, LPDWORD pdw);
  41. BOOL WINAPI Reg_Set(HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue, DWORD dwType, LPVOID pData, DWORD cbData);
  42. BOOL WINAPI Reg_Get(HKEY hkey, LPCTSTR pszSubKey, LPCTSTR pszValue, LPVOID pData, DWORD cbData);