diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-06-17 06:19:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-06-17 06:19:46 +0300 |
commit | 7620e6adb81607c939802c81bf8c068faf0211f8 (patch) | |
tree | a7bc89495f1984939e22de3626584b3b25666dd9 /src/WindowsEnv/Utils.hs | |
parent | add --version flag to executables (diff) | |
download | windows-env-7620e6adb81607c939802c81bf8c068faf0211f8.tar.gz windows-env-7620e6adb81607c939802c81bf8c068faf0211f8.zip |
use windows_cconv.h from Win32
Diffstat (limited to '')
-rw-r--r-- | src/WindowsEnv/Utils.hs | 4 |
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 () |