Click or drag to resize

MemLong Function

Get a pointer to a long in a memory buffer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION MemLong(
	pMemory AS IntPtr,
	liValue AS LONG,
	dwCount AS DWORD
) AS IntPtr

Parameters

pMemory
Type: IntPtr
A pointer to a buffer.
liValue
Type: Int32
The long value to match.
dwCount
Type: UInt32
The number of bytes in the buffer to check.

Return Value

Type: IntPtr
A pointer to the first occurrence of liValue within the first dwCount bytes of pMemory. If liValue is not matched, MemLong() returns a IntPtr.Zero.
See Also