Copyright | (c) Alastair Reid 1997-2003 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Stability | provisional |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
A collection of FFI declarations for accessing the Win32 registry.
Synopsis
- type RegValueType = DWORD
- type RegTypeRestriction = DWORD
- type RegRestoreFlags = DWORD
- data RegInfoKey = RegInfoKey {}
- type RegNotifyOptions = DWORD
- type REGSAM = Word32
- type RegCreateOptions = DWORD
- c_RegUnLoadKey :: PKEY -> LPCTSTR -> IO ErrCode
- c_RegSetValueEx :: PKEY -> LPCTSTR -> DWORD -> RegValueType -> LPTSTR -> Int -> IO ErrCode
- c_RegSetValue :: PKEY -> LPCTSTR -> DWORD -> LPCTSTR -> Int -> IO ErrCode
- c_RegGetValue :: PKEY -> LPCTSTR -> LPCTSTR -> DWORD -> LPDWORD -> LPVOID -> LPDWORD -> IO ErrCode
- c_RegSaveKey :: PKEY -> LPCTSTR -> LPSECURITY_ATTRIBUTES -> IO ErrCode
- c_RegRestoreKey :: PKEY -> LPCTSTR -> RegRestoreFlags -> IO ErrCode
- c_RegReplaceKey :: PKEY -> LPCTSTR -> LPCTSTR -> LPCTSTR -> IO ErrCode
- c_RegQueryValueEx :: PKEY -> LPCTSTR -> Ptr DWORD -> Ptr DWORD -> LPBYTE -> Ptr DWORD -> IO ErrCode
- c_RegQueryValue :: PKEY -> LPCTSTR -> LPTSTR -> Ptr LONG -> IO ErrCode
- c_RegQueryInfoKey :: PKEY -> LPTSTR -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr FILETIME -> IO ErrCode
- c_RegOpenKeyEx :: PKEY -> LPCTSTR -> DWORD -> REGSAM -> Ptr PKEY -> IO ErrCode
- c_RegOpenKey :: PKEY -> LPCTSTR -> Ptr PKEY -> IO ErrCode
- c_RegNotifyChangeKeyValue :: PKEY -> Bool -> RegNotifyOptions -> HANDLE -> Bool -> IO ErrCode
- c_RegLoadKey :: PKEY -> LPCTSTR -> LPCTSTR -> IO ErrCode
- c_RegFlushKey :: PKEY -> IO ErrCode
- c_RegEnumValue :: PKEY -> DWORD -> LPTSTR -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> LPBYTE -> Ptr DWORD -> IO ErrCode
- c_RegEnumKey :: PKEY -> DWORD -> LPTSTR -> DWORD -> IO ErrCode
- c_RegDeleteValue :: PKEY -> LPCTSTR -> IO ErrCode
- c_RegDeleteKey :: PKEY -> LPCTSTR -> IO ErrCode
- c_RegCreateKeyEx :: PKEY -> LPCTSTR -> DWORD -> LPCTSTR -> RegCreateOptions -> REGSAM -> LPSECURITY_ATTRIBUTES -> Ptr PKEY -> Ptr DWORD -> IO ErrCode
- c_RegCreateKey :: PKEY -> LPCTSTR -> Ptr PKEY -> IO ErrCode
- c_RegConnectRegistry :: LPCTSTR -> PKEY -> Ptr PKEY -> IO ErrCode
- c_RegCloseKey :: PKEY -> IO ErrCode
- hKEY_CLASSES_ROOT :: HKEY
- hKEY_CURRENT_CONFIG :: HKEY
- hKEY_CURRENT_USER :: HKEY
- hKEY_LOCAL_MACHINE :: HKEY
- hKEY_USERS :: HKEY
- regCloseKey :: HKEY -> IO ()
- regConnectRegistry :: Maybe String -> HKEY -> IO HKEY
- regCreateKey :: HKEY -> String -> IO HKEY
- rEG_OPTION_NON_VOLATILE :: RegCreateOptions
- rEG_OPTION_VOLATILE :: RegCreateOptions
- kEY_ALL_ACCESS :: REGSAM
- kEY_CREATE_LINK :: REGSAM
- kEY_CREATE_SUB_KEY :: REGSAM
- kEY_ENUMERATE_SUB_KEYS :: REGSAM
- kEY_EXECUTE :: REGSAM
- kEY_NOTIFY :: REGSAM
- kEY_QUERY_VALUE :: REGSAM
- kEY_READ :: REGSAM
- kEY_SET_VALUE :: REGSAM
- kEY_WRITE :: REGSAM
- regCreateKeyEx :: HKEY -> String -> Maybe String -> RegCreateOptions -> REGSAM -> Maybe LPSECURITY_ATTRIBUTES -> IO (HKEY, Bool)
- regDeleteKey :: HKEY -> String -> IO ()
- regDeleteValue :: HKEY -> String -> IO ()
- mallocWideChars :: Int -> IO (Ptr a)
- regEnumKeys :: HKEY -> IO [String]
- regEnumKeyVals :: HKEY -> IO [(String, String, RegValueType)]
- regEnumKey :: HKEY -> DWORD -> LPTSTR -> DWORD -> IO (String, Int)
- regEnumValue :: HKEY -> DWORD -> LPTSTR -> DWORD -> LPBYTE -> DWORD -> IO (RegValueType, String, Int)
- eRROR_NO_MORE_ITEMS :: ErrCode
- regFlushKey :: HKEY -> IO ()
- regLoadKey :: HKEY -> String -> String -> IO ()
- rEG_NOTIFY_CHANGE_NAME :: RegNotifyOptions
- rEG_NOTIFY_CHANGE_ATTRIBUTES :: RegNotifyOptions
- rEG_NOTIFY_CHANGE_LAST_SET :: RegNotifyOptions
- rEG_NOTIFY_CHANGE_SECURITY :: RegNotifyOptions
- regNotifyChangeKeyValue :: HKEY -> Bool -> RegNotifyOptions -> HANDLE -> Bool -> IO ()
- regOpenKey :: HKEY -> String -> IO HKEY
- regOpenKeyEx :: HKEY -> String -> REGSAM -> IO HKEY
- regQueryInfoKey :: HKEY -> IO RegInfoKey
- regQueryValueKey :: HKEY -> Maybe String -> IO String
- regQueryValue :: HKEY -> Maybe String -> IO String
- regQueryDefaultValue :: HKEY -> String -> IO String
- regQueryValueEx :: HKEY -> String -> LPBYTE -> Int -> IO RegValueType
- regReplaceKey :: HKEY -> Maybe String -> String -> String -> IO ()
- rEG_WHOLE_HIVE_VOLATILE :: RegRestoreFlags
- rEG_REFRESH_HIVE :: RegRestoreFlags
- rEG_NO_LAZY_FLUSH :: RegRestoreFlags
- regRestoreKey :: HKEY -> String -> RegRestoreFlags -> IO ()
- regSaveKey :: HKEY -> String -> Maybe LPSECURITY_ATTRIBUTES -> IO ()
- regGetValue :: HKEY -> Maybe String -> Maybe String -> RegTypeRestriction -> Maybe LPDWORD -> Maybe LPVOID -> Maybe LPDWORD -> IO ()
- rRF_RT_ANY :: RegTypeRestriction
- rRF_RT_DWORD :: RegTypeRestriction
- rRF_RT_QWORD :: RegTypeRestriction
- rRF_RT_REG_BINARY :: RegTypeRestriction
- rRF_RT_REG_DWORD :: RegTypeRestriction
- rRF_RT_REG_EXPAND_SZ :: RegTypeRestriction
- rRF_RT_REG_MULTI_SZ :: RegTypeRestriction
- rRF_RT_REG_NONE :: RegTypeRestriction
- rRF_RT_REG_QWORD :: RegTypeRestriction
- rRF_RT_REG_SZ :: RegTypeRestriction
- rRF_NOEXPAND :: RegTypeRestriction
- rRF_ZEROONFAILURE :: RegTypeRestriction
- rRF_SUBKEY_WOW6464KEY :: RegTypeRestriction
- rRF_SUBKEY_WOW6432KEY :: RegTypeRestriction
- regSetValue :: HKEY -> String -> String -> IO ()
- rEG_BINARY :: RegValueType
- rEG_DWORD :: RegValueType
- rEG_DWORD_LITTLE_ENDIAN :: RegValueType
- rEG_DWORD_BIG_ENDIAN :: RegValueType
- rEG_EXPAND_SZ :: RegValueType
- rEG_LINK :: RegValueType
- rEG_MULTI_SZ :: RegValueType
- rEG_NONE :: RegValueType
- rEG_RESOURCE_LIST :: RegValueType
- rEG_SZ :: RegValueType
- regSetStringValue :: HKEY -> String -> String -> IO ()
- regSetValueEx :: HKEY -> String -> RegValueType -> LPTSTR -> Int -> IO ()
- regUnLoadKey :: HKEY -> String -> IO ()
Documentation
type RegValueType = DWORD Source #
type RegTypeRestriction = DWORD Source #
type RegRestoreFlags = DWORD Source #
data RegInfoKey Source #
RegInfoKey | |
|
type RegNotifyOptions = DWORD Source #
type RegCreateOptions = DWORD Source #
c_RegGetValue :: PKEY -> LPCTSTR -> LPCTSTR -> DWORD -> LPDWORD -> LPVOID -> LPDWORD -> IO ErrCode Source #
c_RegSaveKey :: PKEY -> LPCTSTR -> LPSECURITY_ATTRIBUTES -> IO ErrCode Source #
c_RegRestoreKey :: PKEY -> LPCTSTR -> RegRestoreFlags -> IO ErrCode Source #
c_RegQueryValueEx :: PKEY -> LPCTSTR -> Ptr DWORD -> Ptr DWORD -> LPBYTE -> Ptr DWORD -> IO ErrCode Source #
c_RegQueryInfoKey :: PKEY -> LPTSTR -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> Ptr FILETIME -> IO ErrCode Source #
c_RegNotifyChangeKeyValue :: PKEY -> Bool -> RegNotifyOptions -> HANDLE -> Bool -> IO ErrCode Source #
c_RegEnumValue :: PKEY -> DWORD -> LPTSTR -> Ptr DWORD -> Ptr DWORD -> Ptr DWORD -> LPBYTE -> Ptr DWORD -> IO ErrCode Source #
c_RegCreateKeyEx :: PKEY -> LPCTSTR -> DWORD -> LPCTSTR -> RegCreateOptions -> REGSAM -> LPSECURITY_ATTRIBUTES -> Ptr PKEY -> Ptr DWORD -> IO ErrCode Source #
hKEY_USERS :: HKEY Source #
regCloseKey :: HKEY -> IO () Source #
kEY_EXECUTE :: REGSAM Source #
kEY_NOTIFY :: REGSAM Source #
regCreateKeyEx :: HKEY -> String -> Maybe String -> RegCreateOptions -> REGSAM -> Maybe LPSECURITY_ATTRIBUTES -> IO (HKEY, Bool) Source #
regEnumKeyVals :: HKEY -> IO [(String, String, RegValueType)] Source #
regEnumValue :: HKEY -> DWORD -> LPTSTR -> DWORD -> LPBYTE -> DWORD -> IO (RegValueType, String, Int) Source #
regFlushKey :: HKEY -> IO () Source #
regNotifyChangeKeyValue :: HKEY -> Bool -> RegNotifyOptions -> HANDLE -> Bool -> IO () Source #
regQueryInfoKey :: HKEY -> IO RegInfoKey Source #
regQueryValueKey :: HKEY -> Maybe String -> IO String Source #
Deprecated: Use regQueryValue instead.
regQueryValueEx :: HKEY -> String -> LPBYTE -> Int -> IO RegValueType Source #
regRestoreKey :: HKEY -> String -> RegRestoreFlags -> IO () Source #
regSaveKey :: HKEY -> String -> Maybe LPSECURITY_ATTRIBUTES -> IO () Source #
regGetValue :: HKEY -> Maybe String -> Maybe String -> RegTypeRestriction -> Maybe LPDWORD -> Maybe LPVOID -> Maybe LPDWORD -> IO () Source #
regSetValueEx :: HKEY -> String -> RegValueType -> LPTSTR -> Int -> IO () Source #