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" { NetApiBufferAllocate( ByteCount: DWORD, Buffer: *mut LPVOID, ) -> NET_API_STATUS10 pub fn NetApiBufferAllocate( 11 ByteCount: DWORD, 12 Buffer: *mut LPVOID, 13 ) -> NET_API_STATUS; NetApiBufferFree( Buffer: LPVOID, ) -> NET_API_STATUS14 pub fn NetApiBufferFree( 15 Buffer: LPVOID, 16 ) -> NET_API_STATUS; NetApiBufferReallocate( OldBuffer: LPVOID, NewByteCount: DWORD, NewBuffer: *mut LPVOID, ) -> NET_API_STATUS17 pub fn NetApiBufferReallocate( 18 OldBuffer: LPVOID, 19 NewByteCount: DWORD, 20 NewBuffer: *mut LPVOID, 21 ) -> NET_API_STATUS; NetApiBufferSize( Buffer: LPVOID, ByteCount: LPDWORD, ) -> NET_API_STATUS22 pub fn NetApiBufferSize( 23 Buffer: LPVOID, 24 ByteCount: LPDWORD, 25 ) -> NET_API_STATUS; NetapipBufferAllocate( ByteCount: DWORD, Buffer: *mut LPVOID, ) -> NET_API_STATUS26 pub fn NetapipBufferAllocate( 27 ByteCount: DWORD, 28 Buffer: *mut LPVOID, 29 ) -> NET_API_STATUS; 30 } 31