forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsystem_apis.cpp
More file actions
38 lines (27 loc) · 1.3 KB
/
system_apis.cpp
File metadata and controls
38 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "system_apis.h"
#include <windows.h>
namespace url_launcher_plugin {
SystemApis::SystemApis() {}
SystemApis::~SystemApis() {}
SystemApisImpl::SystemApisImpl() {}
SystemApisImpl::~SystemApisImpl() {}
LSTATUS SystemApisImpl::RegCloseKey(HKEY key) { return ::RegCloseKey(key); }
LSTATUS SystemApisImpl::RegOpenKeyExW(HKEY key, LPCWSTR sub_key, DWORD options,
REGSAM desired, PHKEY result) {
return ::RegOpenKeyExW(key, sub_key, options, desired, result);
}
LSTATUS SystemApisImpl::RegQueryValueExW(HKEY key, LPCWSTR value_name,
LPDWORD type, LPBYTE data,
LPDWORD data_size) {
return ::RegQueryValueExW(key, value_name, nullptr, type, data, data_size);
}
HINSTANCE SystemApisImpl::ShellExecuteW(HWND hwnd, LPCWSTR operation,
LPCWSTR file, LPCWSTR parameters,
LPCWSTR directory, int show_flags) {
return ::ShellExecuteW(hwnd, operation, file, parameters, directory,
show_flags);
}
} // namespace url_launcher_plugin