aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WindowsEnv/Registry.hs2
-rw-r--r--src/WindowsEnv/Utils.hs2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/WindowsEnv/Registry.hs b/src/WindowsEnv/Registry.hs
index 6eb52ca..4004734 100644
--- a/src/WindowsEnv/Registry.hs
+++ b/src/WindowsEnv/Registry.hs
@@ -152,6 +152,8 @@ decodeString (_, bytes) = T.unpack dropLastZero
#include "ccall.h"
+-- These aren't provided by Win32 (as of version 2.4.0.0).
+
foreign import WINDOWS_ENV_CCALL unsafe "Windows.h RegQueryValueExW"
c_RegQueryValueEx :: WinAPI.PKEY -> WinAPI.LPCTSTR -> WinAPI.LPDWORD -> WinAPI.LPDWORD -> WinAPI.LPBYTE -> WinAPI.LPDWORD -> IO WinAPI.ErrCode
diff --git a/src/WindowsEnv/Utils.hs b/src/WindowsEnv/Utils.hs
index 4432a95..2dffaef 100644
--- a/src/WindowsEnv/Utils.hs
+++ b/src/WindowsEnv/Utils.hs
@@ -18,6 +18,8 @@ import qualified System.Win32.Types as WinAPI
#include "ccall.h"
+-- SendNotifyMessage isn't provided by Win32 (as of version 2.4.0.0).
+
foreign import WINDOWS_ENV_CCALL "Windows.h SendNotifyMessageW"
c_SendNotifyMessage :: WinAPI.HWND -> WinAPI.WindowMessage -> WinAPI.WPARAM -> WinAPI.LPARAM -> IO WinAPI.LRESULT