summaryrefslogtreecommitdiffstats
path: root/third_party/rust/winapi-0.2.8/src/lsalookup.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--third_party/rust/winapi-0.2.8/src/lsalookup.rs69
1 files changed, 69 insertions, 0 deletions
diff --git a/third_party/rust/winapi-0.2.8/src/lsalookup.rs b/third_party/rust/winapi-0.2.8/src/lsalookup.rs
new file mode 100644
index 0000000000..039d72a3a0
--- /dev/null
+++ b/third_party/rust/winapi-0.2.8/src/lsalookup.rs
@@ -0,0 +1,69 @@
+// Copyright © 2015, skdltmxn
+// Licensed under the MIT License <LICENSE.md>
+//! LSA Policy Lookup API
+STRUCT!{struct LSA_UNICODE_STRING {
+ Length: ::USHORT,
+ MaximumLength: ::USHORT,
+ Buffer: ::PWSTR,
+}}
+pub type PLSA_UNICODE_STRING = *mut LSA_UNICODE_STRING;
+STRUCT!{struct LSA_STRING {
+ Length: ::USHORT,
+ MaximumLength: ::USHORT,
+ Buffer: ::PCHAR,
+}}
+pub type PLSA_STRING = *mut LSA_STRING;
+STRUCT!{struct LSA_OBJECT_ATTRIBUTES {
+ Length: ::ULONG,
+ RootDirectory: ::HANDLE,
+ ObjectName: PLSA_UNICODE_STRING,
+ Attributes: ::ULONG,
+ SecurityDescriptor: ::PVOID,
+ SecurityQualityOfService: ::PVOID,
+}}
+pub type PLSA_OBJECT_ATTRIBUTES = *mut LSA_OBJECT_ATTRIBUTES;
+STRUCT!{struct LSA_TRUST_INFORMATION {
+ Name: LSA_UNICODE_STRING,
+ Sid: ::PSID,
+}}
+pub type PLSA_TRUST_INFORMATION = *mut LSA_TRUST_INFORMATION;
+STRUCT!{struct LSA_REFERENCED_DOMAIN_LIST {
+ Entries: ::ULONG,
+ Domains: PLSA_TRUST_INFORMATION,
+}}
+pub type PLSA_REFERENCED_DOMAIN_LIST = *mut LSA_REFERENCED_DOMAIN_LIST;
+STRUCT!{struct LSA_TRANSLATED_SID2 {
+ Use: ::SID_NAME_USE,
+ Sid: ::PSID,
+ DomainIndex: ::LONG,
+ Flags: ::ULONG,
+}}
+pub type PLSA_TRANSLATED_SID2 = *mut LSA_TRANSLATED_SID2;
+STRUCT!{struct LSA_TRANSLATED_NAME {
+ Use: ::SID_NAME_USE,
+ Name: LSA_UNICODE_STRING,
+ DomainIndex: ::LONG,
+}}
+pub type PLSA_TRANSLATED_NAME = *mut LSA_TRANSLATED_NAME;
+STRUCT!{struct POLICY_ACCOUNT_DOMAIN_INFO {
+ DomainName: LSA_UNICODE_STRING,
+ DomainSid: ::PSID,
+}}
+pub type PPOLICY_ACCOUNT_DOMAIN_INFO = *mut POLICY_ACCOUNT_DOMAIN_INFO;
+STRUCT!{struct POLICY_DNS_DOMAIN_INFO {
+ Name: LSA_UNICODE_STRING,
+ DnsDomainName: LSA_UNICODE_STRING,
+ DnsForestName: LSA_UNICODE_STRING,
+ DomainGuid: ::GUID,
+ Sid: ::PSID,
+}}
+pub type PPOLICY_DNS_DOMAIN_INFO = *mut POLICY_DNS_DOMAIN_INFO;
+pub const LOOKUP_VIEW_LOCAL_INFORMATION: ::ACCESS_MASK = 0x00000001;
+pub const LOOKUP_TRANSLATE_NAMES: ::ACCESS_MASK = 0x00000800;
+ENUM!{enum LSA_LOOKUP_DOMAIN_INFO_CLASS {
+ AccountDomainInformation = 5,
+ DnsDomainInformation = 12,
+}}
+pub type PLSA_LOOKUP_DOMAIN_INFO_CLASS = *mut LSA_LOOKUP_DOMAIN_INFO_CLASS;
+pub type LSA_LOOKUP_HANDLE = ::PVOID;
+pub type PLSA_LOOKUP_HANDLE = *mut ::PVOID;