Desktop Functions: Smart Device Functions:
|
Search Results for "LocalFree" in [All]kernel32
lpMsgBuf= LocalFree( lpMsgBuf );
lpMsgBuf= LocalFree( lpMsgBuf );
Public Shared Function LocalFree(ByVal hMem As IntPtr) As IntPtr
FORMAT_MESSAGE_ALLOCATE_BUFFER = &H100 'The caller should use the LocalFree function to free the buffer when it is no longer needed
'The caller should use the LocalFree function to free the buffer when it is no longer needed
If LocalFree(lpMsgBuf) <> 0 Then 3: LocalAlloc Once allocated, use the LocalFree function to free memory allocated with this function. If you do not do this, you have created a memory leak. 4: LocalFree
shell32
LocalFree(ptrToSplitArgs);
static extern IntPtr LocalFree(IntPtr hMem); advapi32As explained [here], memory for the returned unmanaged string must be freed by calling LocalFree. Therefore, you must define the string as an IntPtr in managed code and call LocalFree yourself. Otherwise, the marshaler would call CoTaskMemFree which is not correct in this case.
LocalFree(ptrSid);
LocalFree(ptrSID) 7: GetLengthSid
LocalFree(pSid); The caller needs to call LocalFree() on the pointer to the security descriptor returned from this call.
LocalFree(psd);
internal static extern IntPtr LocalFree(
LocalFree(securityDescriptor);
static extern IntPtr LocalFree(IntPtr hMem);
LocalFree(pstr); 11: IsValidSid
static extern IntPtr LocalFree(IntPtr hMem);
LocalFree(ptrSid);
static extern IntPtr LocalFree(IntPtr hMem);
LocalFree(ptrSid);
LocalFree(ptrSidString) Structures13: DATA_BLOB Remember that DATA_BLOB.pbData for the output parameters of the CryptProtectData and CryptUnprotectData functions will point to a block of unmanaged memory that needs to be cleaned up using a call to LocalFree from kernel32. You will of course have to use pinvoke to call LocalFree. rapi14: CeRapiInvoke
LocalFree( pInput ); netapi3215: DsGetDcNext The caller must free this memory when it is no longer required by calling LocalFree. |