winapi_ui_automation/um/
lmremutl.rs

1// Licensed under the Apache License, Version 2.0
2// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4// All files in the project carrying such notice may not be copied, modified, or distributed
5// except according to those terms.
6//! This file contains structures, function prototypes, and definitions for the NetRemote API
7use shared::lmcons::NET_API_STATUS;
8use shared::minwindef::{DWORD, LPBYTE, LPDWORD};
9use um::winnt::{CHAR, LONG, LPCWSTR, LPSTR};
10pub type DESC_CHAR = CHAR;
11pub type LPDESC = LPSTR;
12extern "system" {
13    pub fn NetRemoteTOD(
14        UncServerName: LPCWSTR,
15        BufferPtr: *mut LPBYTE,
16    ) -> NET_API_STATUS;
17    pub fn NetRemoteComputerSupports(
18        UncServerName: LPCWSTR,
19        OptionsWanted: DWORD,
20        OptionsSupported: LPDWORD,
21    ) -> NET_API_STATUS;
22}
23extern "C" {
24    pub fn RxRemoteApi(
25        ApiNumber: DWORD,
26        UncServerName: LPCWSTR,
27        ParmDescString: LPDESC,
28        DataDesc16: LPDESC,
29        DataDesc32: LPDESC,
30        DataDescSmb: LPDESC,
31        AuxDesc16: LPDESC,
32        AuxDesc32: LPDESC,
33        AuxDescSmb: LPDESC,
34        Flags: DWORD,
35    ) -> NET_API_STATUS;
36}
37STRUCT!{struct TIME_OF_DAY_INFO {
38    tod_elapsedt: DWORD,
39    tod_msecs: DWORD,
40    tod_hours: DWORD,
41    tod_mins: DWORD,
42    tod_secs: DWORD,
43    tod_hunds: DWORD,
44    tod_timezone: LONG,
45    tod_tinterval: DWORD,
46    tod_day: DWORD,
47    tod_month: DWORD,
48    tod_year: DWORD,
49    tod_weekday: DWORD,
50}}
51pub type PTIME_OF_DAY_INFO = *mut TIME_OF_DAY_INFO;
52pub type LPTIME_OF_DAY_INFO = *mut TIME_OF_DAY_INFO;
53pub const SUPPORTS_REMOTE_ADMIN_PROTOCOL: DWORD = 0x00000002;
54pub const SUPPORTS_RPC: DWORD = 0x00000004;
55pub const SUPPORTS_SAM_PROTOCOL: DWORD = 0x00000008;
56pub const SUPPORTS_UNICODE: DWORD = 0x00000010;
57pub const SUPPORTS_LOCAL: DWORD = 0x00000020;
58pub const SUPPORTS_ANY: DWORD = 0xFFFFFFFF;
59pub const NO_PERMISSION_REQUIRED: DWORD = 0x00000001;
60pub const ALLOCATE_RESPONSE: DWORD = 0x00000002;
61pub const USE_SPECIFIC_TRANSPORT: DWORD = 0x80000000;