Open Broadcaster Software
Free, open source software for live streaming and recording
win-registry.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Hugh Bailey <obs.jim@gmail.com>
3  * Copyright (c) 2017 Ryan Foster <RytoEX@gmail.com>
4  *
5  * Permission to use, copy, modify, and distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 #pragma once
19 
20 #include <windows.h>
21 #include "../c99defs.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 struct reg_dword {
28  LSTATUS status;
29  DWORD size;
30  DWORD return_value;
31 };
32 
33 EXPORT void get_reg_dword(HKEY hkey, LPCWSTR sub_key, LPCWSTR value_name,
34  struct reg_dword *info);
35 
36 #ifdef __cplusplus
37 }
38 #endif
LSTATUS status
Definition: win-registry.h:28
#define EXPORT
Definition: c99defs.h:49
Definition: win-registry.h:27
DWORD size
Definition: win-registry.h:29
DWORD return_value
Definition: win-registry.h:30
EXPORT void get_reg_dword(HKEY hkey, LPCWSTR sub_key, LPCWSTR value_name, struct reg_dword *info)