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.

63 lines
1.5 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // TITLE: REGEDITP.H
  4. //
  5. // AUTHOR: Zeyong Xu
  6. //
  7. // DATE: March 1999
  8. //
  9. //---------------------------------------------------------------------------
  10. #ifndef _INC_REGEDITP
  11. #define _INC_REGEDITP
  12. #define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0]))
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. LONG WINAPI RegImportRegFile(HWND hWnd,
  17. BOOL fSilentMode,
  18. LPTSTR lpFileName);
  19. LONG WINAPI RegExportRegFile(HWND hWnd,
  20. BOOL fSilentMode,
  21. BOOL fUseDownlevelFormat,
  22. LPTSTR lpFileName,
  23. LPTSTR lpRegistryFullKey);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. BOOL PASCAL MessagePump(HWND hDialogWnd);
  28. int PASCAL InternalMessageBox(HINSTANCE hInst,
  29. HWND hWnd,
  30. LPCTSTR pszFormat,
  31. LPCTSTR pszTitle,
  32. UINT fuStyle,
  33. ...);
  34. // The Windows 95 and Windows NT implementations of RegDeleteKey differ in
  35. // how they handle subkeys of the specified key to delete. Windows 95 will
  36. // delete them, but NT won't, so we hide the differences using this macro.
  37. #ifdef WINNT
  38. LONG RegDeleteKeyRecursive(HKEY hKey,
  39. LPCTSTR lpszSubKey);
  40. #else
  41. #define RegDeleteKeyRecursive(hkey, lpsz) RegDeleteKey(hkey, lpsz)
  42. #endif
  43. #endif // _INC_REGEDITP