aboutsummaryrefslogtreecommitdiffstats
path: root/api/registry.c
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-07-21 16:43:34 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:50:58 +0100
commita283add85bd245aa479a5cd9f0765193600a6602 (patch)
tree819256dc5e582c7b6ca85eeb481284f96251cdc0 /api/registry.c
parentapi: finish porting from wireguard-go (diff)
downloadwintun-a283add85bd245aa479a5cd9f0765193600a6602.tar.xz
wintun-a283add85bd245aa479a5cd9f0765193600a6602.zip
api: rename WINSTATUS to WINTUN_STATUS
...to reduce name collision probability. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/registry.c')
-rw-r--r--api/registry.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/api/registry.c b/api/registry.c
index 52a3d66..53af8bb 100644
--- a/api/registry.c
+++ b/api/registry.c
@@ -7,7 +7,7 @@
#include <string.h>
#include <wchar.h>
-static WINSTATUS
+static WINTUN_STATUS
OpenKeyWait(_In_ HKEY Key, _Inout_z_ LPWSTR Path, _In_ DWORD Access, _In_ ULONGLONG Deadline, _Out_ HKEY *KeyOut)
{
DWORD Result;
@@ -65,7 +65,7 @@ OpenKeyWait(_In_ HKEY Key, _Inout_z_ LPWSTR Path, _In_ DWORD Access, _In_ ULONGL
*
* @return ERROR_SUCCESS on success; WAIT_TIMEOUT on timeout; error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryOpenKeyWait(
_In_ HKEY Key,
_In_z_count_c_(MAX_PATH) LPCWSTR Path,
@@ -78,7 +78,7 @@ RegistryOpenKeyWait(
return OpenKeyWait(Key, Buf, Access, GetTickCount64() + Timeout, KeyOut);
}
-WINSTATUS
+WINTUN_STATUS
RegistryWaitForKey(_In_ HKEY Key, _In_z_count_c_(MAX_PATH) LPCWSTR Path, _In_ DWORD Timeout)
{
HKEY k;
@@ -104,7 +104,7 @@ RegistryWaitForKey(_In_ HKEY Key, _In_z_count_c_(MAX_PATH) LPCWSTR Path, _In_ DW
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryGetString(_Inout_ LPWSTR *Buf, _In_ DWORD Len, _In_ DWORD ValueType)
{
HANDLE Heap = GetProcessHeap();
@@ -168,7 +168,7 @@ RegistryGetString(_Inout_ LPWSTR *Buf, _In_ DWORD Len, _In_ DWORD ValueType)
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryGetMultiString(_Inout_ LPWSTR *Buf, _In_ DWORD Len, _In_ DWORD ValueType)
{
HANDLE Heap = GetProcessHeap();
@@ -241,7 +241,7 @@ RegistryGetMultiString(_Inout_ LPWSTR *Buf, _In_ DWORD Len, _In_ DWORD ValueType
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-static WINSTATUS
+static WINTUN_STATUS
RegistryQuery(
_In_ HKEY Key,
_In_opt_z_ LPCWSTR Name,
@@ -279,7 +279,7 @@ RegistryQuery(
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryQueryString(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _Out_ LPWSTR *Value)
{
DWORD ValueType, Size = 256 * sizeof(WCHAR);
@@ -318,7 +318,7 @@ RegistryQueryString(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _Out_ LPWSTR *Value)
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryQueryStringWait(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _In_ DWORD Timeout, _Out_ LPWSTR *Value)
{
DWORD Result;
@@ -356,7 +356,7 @@ RegistryQueryStringWait(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _In_ DWORD Timeo
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryQueryDWORD(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _Out_ DWORD *Value)
{
DWORD ValueType, Size = sizeof(DWORD);
@@ -384,7 +384,7 @@ RegistryQueryDWORD(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _Out_ DWORD *Value)
*
* @return ERROR_SUCCESS on success; Win32 error code otherwise
*/
-WINSTATUS
+WINTUN_STATUS
RegistryQueryDWORDWait(_In_ HKEY Key, _In_opt_z_ LPCWSTR Name, _In_ DWORD Timeout, _Out_ DWORD *Value)
{
DWORD Result;