Desktop Functions: Smart Device Functions:
|
Search Results for "NetApiBufferFree" in [All]netapi32
NetApiBufferFree(pSites); Domains is an out parameter that receives a pointer to an array of DS_DOMAIN_TRUSTS structures. Each structure in this array contains trust data about a domain. The caller must free this memory when it is no longer required by calling NetApiBufferFree.
NetApiBufferFree(buf);
[DllImport("Netapi32.dll",EntryPoint="NetApiBufferFree")]
private static extern uint NetApiBufferFree(IntPtr buffer); 3: DsGetDcName Pointer to a PDOMAIN_CONTROLLER_INFO value that receives a pointer to a DOMAIN_CONTROLLER_INFO structure that contains data about the domain controller selected. This structure is allocated by DsGetDcName. The caller must free the structure using the NetApiBufferFree function when it is no longer required.
static extern int NetApiBufferFree(IntPtr Buffer);
NetApiBufferFree(pDCI); 4: DsGetDcNext [out, optional] Pointer to a string pointer that receives the DNS name of the domain controller. This parameter receives NULL if no host name is known. The caller must free this memory when it is no longer required by calling NetApiBufferFree.
NativeMethods.NetApiBufferFree(pDnsHostName);
NetApiBufferFree(pDnsHostName);
NetApiBufferFree(pSiteNames);
NetApiBufferFree(pBuffer);
NetApiBufferFree(pBuffer)
static extern int NetApiBufferFree(IntPtr Buffer);
Declare Unicode Function NetApiBufferFree Lib "netapi32.dll" _ There is no indication that the NetApiBufferFree function sets the last error code, so SetLastError attribute should not be set (this removes extra calls in the interop layer to store the last error code). Also, the CharSet property on the attribute need not be applied either, as there is only one version of this function.
' Edited down code to only show usage of NetApiBufferFree()
Call NetApiBufferFree(BufPtr) 8: NetDfsEnum
/// <param name="Buffer">[out] Pointer to the address of a buffer that receives the requested information structures. The format of this data depends on the value of the Level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. </param> Remember to free buffer, see NetApiBufferFree
NetApiBufferFree(buffer);
NetApiBufferFree(buffer); 10: NetDfsGetInfo
11: NetFileEnum You must free the memory allocated to the bufptr with the NetApiBufferFree function
NetApiBufferFree(pBuffer); 12: NetGetDCName
static extern NetApiStatus NetApiBufferFree(IntPtr Buffer);
Private Shared Function NetApiBufferFree(ByVal buffer As IntPtr) As NetApiStatus
NetApiBufferFree(domainInfo);
NetApiBufferFree(domainInfo) The buffer pointed to by lpNameBuffer (or domain in the C# signature) must be freed using the NetApiBufferFree function.
static extern int NetApiBufferFree(IntPtr Buffer);
if (pDomain != IntPtr.Zero) NetApiBufferFree(pDomain);
Private Declare Function NetApiBufferFree Lib "Netapi32.dll" _
If Not bufPtr = IntPtr.Zero Then NetApiBufferFree(bufPtr) 3. the code is missing the deallocation of the data using NetApiBufferFree.
internal extern static int NetApiBufferFree(IntPtr buffer);
NetApiBufferFree(buffer);
NetApiBufferFree(bufPtr);
NetApiBufferFree(UsrBuf);
[DllImport("netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] private static extern int NetApiBufferFree (System.IntPtr pBuffer);
NetApiBufferFree(x);
NetApiBufferFree (x);
NetApiBufferFree (x); 17: NetRemoteTOD Make sure to call NetApiBufferFree on the IntPtr returned in the Buffer parameter.
[DllImport( "netapi32.dll")] private static extern void NetApiBufferFree(IntPtr bufptr);
NetApiBufferFree(pintBuffer); 18: netserverenum
[DllImport("netapi32.dll",EntryPoint="NetApiBufferFree")]
public static extern int NetApiBufferFree(IntPtr buffer);
private static extern int NetApiBufferFree(IntPtr pBuf);
NetApiBufferFree(bufptr);
NetApiBufferFree(bufptr);
[DllImport("netapi32.dll",EntryPoint="NetApiBufferFree")]
NetApiBufferFree(IntPtr buffer);
NetApiBufferFree(buf); 19: NetServerGetInfo
NetApiBufferFree(ptr);
NetApiBufferFree(pDCI);
NetApiBufferFree(pSI); 20: NetSessionEnum
''' This buffer is allocated by the system and must be freed using the NetApiBufferFree function. Note that you must free the buffer even if the function fails with ERROR_MORE_DATA.
NetApiBufferFree(bufptr) 21: NetShareEnum
NetApiBufferFree(pBuffer)
Call NetApiBufferFree(BufPtr)
NetApiBufferFree(bufPtr);
static extern int NetApiBufferFree(IntPtr Buffer);
NetApiBufferFree(bufPtr);
Declare Unicode Function NetApiBufferFree Lib "netapi32.dll" _
NetApiBufferFree(pBuffer) See also NetApiBufferFree API. 22: NetShareGetInfo
Declare Unicode Function NetApiBufferFree Lib "netapi32.dll" _
Result = CInt(NetApiBufferFree(pBuffer))
static extern int NetApiBufferFree(IntPtr Buffer);
NetApiBufferFree(ptr); 23: NetUseEnum use NetApiBufferFree to release the buffer even if NetUseEnum returned an error!
NetApiBufferFree(lBuffer); 24: NetUserEnum
NetApiBufferFree(bufPtr)
NetApiBufferFree(bufPtr); 25: NetUserGetGroups
public static extern int NetApiBufferFree(IntPtr Buffer);
NetApiBufferFree(bufPtr); 26: NetUserGetInfo
NetApiBufferFree( bufPtr );
Declare Unicode Function NetApiBufferFree Lib "netapi32.dll" _
Call NetApiBufferFree(bufPtr)
public static extern int NetApiBufferFree(IntPtr Buffer);
NetApiBufferFree(bufPtr);
public static extern int NetApiBufferFree(IntPtr Buffer);
api.NetApiBufferFree(bufPtr);
public static extern Int64 NetApiBufferFree(IntPtr Buffer);
api.NetApiBufferFree(bufPtr); 28: NetUserModalsGet NetApiBufferFree(bufPtr); 29: NetUserModalsGet
NetApiBufferFree(bufPtr); 30: NetWkstaUserEnum
static extern int NetApiBufferFree(
NetApiBufferFree(bufptr);
NetApiBufferFree(lpBuffer)
NetApiBufferFree(buffer); 32: USER_INFO_1
NetApiBufferFree(bufPtr); advapi3233: GetAce
static extern int NetApiBufferFree(
err = NetApiBufferFree(bufptr); dhcpsapi
Private Declare Function NetAPIBufferFree Lib "Netapi32" Alias "NetApiBufferFree" (ByVal lpBuffer As Integer) As Integer
NetAPIBufferFree(bufptr)
public extern static int NetApiBufferFree(IntPtr lpBuffer);
public extern static int NetApiBufferFree(IntPtr lpBuffer);
NetApiBufferFree((IntPtr)bufptr); |