diff options
Diffstat (limited to 'third_party/rust/ntapi/src/ntsmss.rs')
-rw-r--r-- | third_party/rust/ntapi/src/ntsmss.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/ntapi/src/ntsmss.rs b/third_party/rust/ntapi/src/ntsmss.rs new file mode 100644 index 0000000000..b22991fb71 --- /dev/null +++ b/third_party/rust/ntapi/src/ntsmss.rs @@ -0,0 +1,15 @@ +use crate::ntlpcapi::PPORT_MESSAGE; +use winapi::shared::minwindef::DWORD; +use winapi::shared::ntdef::{HANDLE, NTSTATUS, PHANDLE, PUNICODE_STRING}; +EXTERN!{extern "system" { + fn RtlConnectToSm( + ApiPortName: PUNICODE_STRING, + ApiPortHandle: HANDLE, + ProcessImageType: DWORD, + SmssConnection: PHANDLE, + ) -> NTSTATUS; + fn RtlSendMsgToSm( + ApiPortHandle: HANDLE, + MessageData: PPORT_MESSAGE, + ) -> NTSTATUS; +}} |