Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "NetApiBufferFree" in [All]

netapi32

.
  • siteNames: An array of null-terminated string pointers that contain the site names for the addresses. Each element in this array corresponds to the same element in the socketAddresses array. An element is NULL if the corresponding address does not map to any known site or if the address entry is not of the proper form. The caller must free this array when it is no longer required by calling NetApiBufferFree.
.

        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);

.

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);

.

[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)

.
Documentation
[NetApiBufferFree] on MSDN
.

    /// <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);

.

Remember to free buffer, see NetApiBufferFree

.

              NetApiBufferFree(buf);

.

     NetApiBufferFree(bufPtf)

.

You must free the memory allocated to the bufptr with the NetApiBufferFree function

.

    NetApiBufferFree(pBuffer);

.

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);

.

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);

.

[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);                

.

      NetApiBufferFree(ptr);

.

    NetApiBufferFree(pDCI);

.

    NetApiBufferFree(pSI);

.

    ''' 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)

.

            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.

.

  Declare Unicode Function NetApiBufferFree Lib "netapi32.dll" _

.

        Result = CInt(NetApiBufferFree(pBuffer))

.

        static extern int NetApiBufferFree(IntPtr Buffer);

.

                NetApiBufferFree(ptr);

.

use NetApiBufferFree to release the buffer even if NetUseEnum returned an error!

.

            NetApiBufferFree(lBuffer);

.

        NetApiBufferFree(bufPtr)

.

        NetApiBufferFree(bufPtr);

.

        public static extern int NetApiBufferFree(IntPtr Buffer);

.

                NetApiBufferFree(bufPtr);

.

                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);

.

NetApiBufferFree(bufPtr);

.

    NetApiBufferFree(bufPtr);

.

    static extern int NetApiBufferFree(

.

            NetApiBufferFree(bufptr);

.

            NetApiBufferFree(lpBuffer)

.

        NetApiBufferFree(buffer);

.

                NetApiBufferFree(bufPtr);

advapi32

33: 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);


 
Access PInvoke.net directly from VS: