Debian Codegraph @

third_party/rust/winapi/src/um/lmapibuf.rs

raw
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 information about NetApiBuffer APIs
7 use shared::lmcons::NET_API_STATUS;
8 use shared::minwindef::{DWORD, LPDWORD, LPVOID};
9 extern "system" {
10 pub fn NetApiBufferAllocate(
11 ByteCount: DWORD,
12 Buffer: *mut LPVOID,
13 ) -> NET_API_STATUS;
14 pub fn NetApiBufferFree(
15 Buffer: LPVOID,
16 ) -> NET_API_STATUS;
17 pub fn NetApiBufferReallocate(
18 OldBuffer: LPVOID,
19 NewByteCount: DWORD,
20 NewBuffer: *mut LPVOID,
21 ) -> NET_API_STATUS;
22 pub fn NetApiBufferSize(
23 Buffer: LPVOID,
24 ByteCount: LPDWORD,
25 ) -> NET_API_STATUS;
26 pub fn NetapipBufferAllocate(
27 ByteCount: DWORD,
28 Buffer: *mut LPVOID,
29 ) -> NET_API_STATUS;
30 }