winapi_ui_automation/um/
sporder.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//! Service Provider Order
7use ctypes::c_int;
8use shared::guiddef::LPGUID;
9use shared::minwindef::{DWORD, LPDWORD};
10extern "system" {
11    pub fn WSCWriteProviderOrder(
12        lpwdCatalogEntryId: LPDWORD,
13        dwNumberOfEntries: DWORD,
14    ) -> c_int;
15}
16FN!{stdcall LPWSCWRITEPROVIDERORDER(
17    lpwdCatalogEntryId: LPDWORD,
18    dwNumberOfEntries: DWORD,
19) -> c_int}
20#[cfg(target_pointer_width = "64")]
21extern "system" {
22    pub fn WSCWriteProviderOrder32(
23        lpwdCatalogEntryId: LPDWORD,
24        dwNumberOfEntries: DWORD,
25    ) -> c_int;
26    pub fn WSCWriteNameSpaceOrder(
27        lpProviderId: LPGUID,
28        dwNumberOfEntries: DWORD,
29    ) -> c_int;
30}
31FN!{stdcall LPWSCWRITENAMESPACEORDER(
32    lpProviderId: LPGUID,
33    dwNumberOfEntries: DWORD,
34) -> c_int}
35#[cfg(target_pointer_width = "64")]
36extern "system" {
37    pub fn WSCWriteNameSpaceOrder32(
38        lpProviderId: LPGUID,
39        dwNumberOfEntries: DWORD,
40    ) -> c_int;
41}