NativeMethods.GlobalLock Method

Locks a global memory object and returns a pointer to the first byte of the object's memory block.

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Shared Function GlobalLock ( _
    handle As HandleRef _
) As IntPtr
'Usage
Dim handle As HandleRef
Dim returnValue As IntPtr

returnValue = NativeMethods.GlobalLock(handle)
public static IntPtr GlobalLock(
    HandleRef handle
)
public:
static IntPtr GlobalLock(
    HandleRef handle
)
public static function GlobalLock(
    handle : HandleRef
) : IntPtr
static member GlobalLock : 
        handle:HandleRef -> IntPtr 

Parameters

Return Value

Type: System.IntPtr
Returns a pointer to the first byte of the memory block if the method succeeds; null otherwise.

.NET Framework Security

See Also

Reference

NativeMethods Class

NativeMethods Members

Microsoft.VisualStudio Namespace