[CLIPBRD] Improvements for the Clipboard Viewer.
[reactos.git] / base / applications / clipbrd / cliputils.h
index 28d64b8..f126108 100644 (file)
@@ -1,11 +1,20 @@
 /*
- * COPYRIGHT:       See COPYING in the top level directory
- * PROJECT:         ReactOS Clipboard Viewer
- * FILE:            base/applications/clipbrd/cliputils.h
- * PURPOSE:         Clipboard helper functions.
- * PROGRAMMERS:     Ricardo Hanke
+ * PROJECT:     ReactOS Clipboard Viewer
+ * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
+ * PURPOSE:     Clipboard helper functions.
+ * COPYRIGHT:   Copyright 2015-2018 Ricardo Hanke
+ *              Copyright 2015-2018 Hermes Belusca-Maito
  */
 
+#pragma once
+
+LRESULT
+SendClipboardOwnerMessage(
+    IN BOOL bUnicode,
+    IN UINT uMsg,
+    IN WPARAM wParam,
+    IN LPARAM lParam);
+
 void
 RetrieveClipboardFormatName(HINSTANCE hInstance,
                             UINT uFormat,
@@ -16,3 +25,15 @@ RetrieveClipboardFormatName(HINSTANCE hInstance,
 void DeleteClipboardContent(void);
 UINT GetAutomaticClipboardFormat(void);
 BOOL IsClipboardFormatSupported(UINT uFormat);
+
+SIZE_T
+GetLineExtentW(
+    IN LPCWSTR lpText,
+    OUT LPCWSTR* lpNextLine);
+
+SIZE_T
+GetLineExtentA(
+    IN LPCSTR lpText,
+    OUT LPCSTR* lpNextLine);
+
+BOOL GetClipboardDataDimensions(UINT uFormat, PRECT pRc);