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 "IlockBytes" in [All]

ole32

.
Summary
The CreateILockBytesOnHGlobal function creates a byte array object, using global memory as the physical device, which is intended to be the compound file foundation. This object supports a COM implementation of the ILockBytes interface.
.

    /// The CreateILockBytesOnHGlobal function creates a byte array object,

.

    /// ILockBytes interface.

.

    /// be allocated with a size of zero. If hGlobal is NULL, CreateILockBytesOnHGlobal

.

    /// <param name="ppLkbyt">The address of ILockBytes pointer variable that receives the

.

    public extern static int CreateILockBytesOnHGlobal(IntPtr hGlobal, [MarshalAs(UnmanagedType.Bool)] bool fDeleteOnRelease, out ILockBytes ppLkbyt);

.

    EntryPoint="CreateILockBytesOnHGlobal",

.

static extern int CreateILockBytesOnHGlobal(IntPtr /* HGLOBAL */ hGlobal, bool fDeleteOnRelease, [MarshalAs(UnmanagedType.Interface)]out object /* ILockBytes** */ ppLkbyt);

.

    Public Shared Function CreateILockBytesOnHGlobal(ByVal hGlobal As IntPtr, _

.

                              <Out()> ByRef ppLkbyt As IlockBytes) _

.

Dim lockbytes As IlockBytes = Nothing

.

hr = Win32.CreateILockBytesOnHGlobal(IntPtr.Zero, True, lockbytes)

.
Documentation
[CreateILockBytesOnHGlobal] on MSDN
.
Summary
.

    /// The GetHGlobalFromILockBytes function retrieves a global memory handle to a

.

    /// byte array object created using the CreateILockBytesOnHGlobal function.

.

    /// <param name="pLkbyt">Pointer to the ILockBytes interface on the byte-array

.

    /// object previously created by a call to the CreateILockBytesOnHGlobal function.</param>

.

    static extern int GetHGlobalFromILockBytes(ILockBytes pLkbyt, out IntPtr phglobal);

.

     EntryPoint="GetHGlobalFromILockBytes",

.

static extern int GetHGlobalFromILockBytes([MarshalAs(UnmanagedType.Interface)] object /* ILockBytes* */pLkbyt, out IntPtr /* HGLOBAL* */ phglobal);

.
Documentation
[GetHGlobalFromILockBytes] on MSDN
.
Summary
.

    /// The StgCreateDocfileOnILockBytes function creates and opens a new compound file

.

    /// <param name="plkbyt">A pointer to the ILockBytes interface on the underlying byte-array object on which to create a compound file.</param>

.

    public extern static int StgCreateDocfileOnILockBytes(ILockBytes plkbyt, StgmConstants grfMode, int reserved, out IStorage ppstgOpen);

.
Documentation
[StgCreateDocfileOnILockBytes] on MSDN
.
Summary
.

    /// The StgCreateDocfileOnILockBytes function creates and opens a new compound file

.

    /// <param name="plkbyt">A pointer to the ILockBytes interface on the underlying byte-array object on which to create a compound file.</param>

.

    public extern static int StgCreateDocfileOnILockBytes(ILockBytes plkbyt, int grfMode, int reserved, out IStorage ppstgOpen);

.
Documentation
[StgCreateDocfileOnILockBytes] on MSDN

Interfaces

.

public interface ILockBytes

.

public interface ILockBytes

.

Public Interface IlockBytes

.

// read a chunk from the ILockBytes object

.

    ((ILockBytes)comPtr).ReadAt(offset, pv, bufferSize, out cbRead);


 
Access PInvoke.net directly from VS: