aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/WindowsEnv/Utils.hs
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-06-17 06:19:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-06-17 06:19:46 +0300
commit7620e6adb81607c939802c81bf8c068faf0211f8 (patch)
treea7bc89495f1984939e22de3626584b3b25666dd9 /src/WindowsEnv/Utils.hs
parentadd --version flag to executables (diff)
downloadwindows-env-7620e6adb81607c939802c81bf8c068faf0211f8.tar.gz
windows-env-7620e6adb81607c939802c81bf8c068faf0211f8.zip
use windows_cconv.h from Win32
Diffstat (limited to '')
-rw-r--r--src/WindowsEnv/Utils.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WindowsEnv/Utils.hs b/src/WindowsEnv/Utils.hs
index 2dffaef..6371328 100644
--- a/src/WindowsEnv/Utils.hs
+++ b/src/WindowsEnv/Utils.hs
@@ -16,11 +16,11 @@ import qualified Graphics.Win32.GDI.Types as WinAPI
import qualified Graphics.Win32.Message as WinAPI
import qualified System.Win32.Types as WinAPI
-#include "ccall.h"
+#include "windows_cconv.h"
-- SendNotifyMessage isn't provided by Win32 (as of version 2.4.0.0).
-foreign import WINDOWS_ENV_CCALL "Windows.h SendNotifyMessageW"
+foreign import WINDOWS_CCONV "Windows.h SendNotifyMessageW"
c_SendNotifyMessage :: WinAPI.HWND -> WinAPI.WindowMessage -> WinAPI.WPARAM -> WinAPI.LPARAM -> IO WinAPI.LRESULT
notifyEnvironmentUpdate :: IO ()