Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than ole32, prefix the name with the module name and a period.
GetHGlobalFromILockBytes (ole32)
.
C# Signature:
/// <summary>
/// The GetHGlobalFromILockBytes function retrieves a global memory handle to a
/// byte array object created using the CreateILockBytesOnHGlobal function.
/// </summary>
///
/// <param name="pLkbyt">Pointer to the ILockBytes interface on the byte-array
/// object previously created by a call to the CreateILockBytesOnHGlobal function.</param>
///
/// <param name="phglobal">Pointer to the current memory handle used by the
/// specified byte-array object.</param>
///
/// <returns></returns>
[DllImport("ole32.dll")]
static extern int GetHGlobalFromILockBytes(ILockBytes pLkbyt, out IntPtr phglobal);
or
[DllImport("ole32.dll",
EntryPoint="GetHGlobalFromILockBytes",
ExactSpelling=true, PreserveSig=true, CharSet=CharSet.Ansi,
CallingConvention=CallingConvention.StdCall)]
static extern int GetHGlobalFromILockBytes([MarshalAs(UnmanagedType.Interface)] object /* ILockBytes* */pLkbyt, out IntPtr /* HGLOBAL* */ phglobal);
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
The GetHGlobalFromILockBytes API
8/19/2008 3:43:13 AM - alex@rbcsi.com-216.254.120.171
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).