AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
system.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
8 #ifndef AJA_SYSTEM_H
9 #define AJA_SYSTEM_H
10 
11 #include "ajabase/common/public.h"
12 
13 #if defined(AJA_WINDOWS)
14  #pragma warning (disable:4996)
15  #if !defined(_WIN32_WINNT)
16  #define _WIN32_WINNT 0x0600
17  #endif
18  #include <WinSock2.h> // NOTE: This must be included BEFORE <Windows.h> to avoid "macro redefinition" errors.
19  #include <Windows.h> // http://www.zachburlingame.com/2011/05/resolving-redefinition-errors-betwen-ws2def-h-and-winsock-h/
20  #include <stdio.h>
21  #include <tchar.h>
22  #include <winioctl.h>
23  #include <SetupAPI.h>
24  #include <initguid.h>
25 
26  namespace aja
27  {
28  AJA_EXPORT bool write_registry_string(HKEY hkey, std::string key_path, std::string key, std::string value);
29 
30  AJA_EXPORT bool write_registry_dword(HKEY hkey, std::string key_path, std::string key, DWORD value);
31 
32  AJA_EXPORT std::string read_registry_string(HKEY hkey, std::string key_path, std::string key);
33 
34  AJA_EXPORT DWORD read_registry_dword(HKEY hkey, std::string key_path, std::string key);
35 
36  } //end aja namespace
37 
38 #endif
39 
40 #if defined(AJA_MAC)
41  #include <Carbon/Carbon.h>
42  #include <CoreServices/CoreServices.h>
43 #endif
44 
45 #if defined(AJA_LINUX)
46 
47 #endif
48 
49 // Common to all
50 namespace aja
51 {
52  AJA_EXPORT int reveal_file_in_file_manager(const std::string& filePath);
53 }
54 
55 #endif
aja::reveal_file_in_file_manager
AJA_EXPORT int reveal_file_in_file_manager(const std::string &filePath)
AJA_EXPORT
#define AJA_EXPORT
Definition: export.h:34
public.h
Master header for the ajabase library.
aja
Definition: common.cpp:57