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
- handle
Type: System.Runtime.InteropServices.HandleRef
Handle to the global memory object
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.