GdiplusStartup_整数型 (token, 1, 0)
nSize = 取字节集长度 (参_图片)
hMem = GlobalAlloc ( #GMEM_MOVEABLE, nSize)
lpStr = GlobalLock (hMem)
CreateStreamOnHGlobal (hMem, 假, ipStr)
RtlMoveMemory_字节集 (lpStr, 参_图片, nSize)
GlobalUnlock (hMem)
GdipLoadImageFromStream (ipStr, bitmap)
GdipGetImageThumbnail (bitmap, 参_宽度, 参_高度, bpStr, 0, 0)
GdipDisposeImage (bitmap)
GlobalFree (hMem)
hMem = GlobalAlloc (位或 ( #GMEM_ZEROINIT, #GMEM_MOVEABLE ), 0)
CreateStreamOnHGlobal (hMem, 假, ipStr)
xpStr = 取空白字节集 (16)
CLSIDFromString_字节集传址2 ({ 123, 0, 53, 0, 53, 0, 55, 0, 67, 0, 70, 0, 52, 0, 48, 0, 54, 0, 45, 0, 49, 0, 65, 0, 48, 0, 52, 0, 45, 0, 49, 0, 49, 0, 68, 0, 51, 0, 45, 0, 57, 0, 65, 0, 55, 0, 51, 0, 45, 0, 48, 0, 48, 0, 48, 0, 48, 0, 70, 0, 56, 0, 49, 0, 69, 0, 70, 0, 51, 0, 50, 0, 69, 0, 125, 0, 0, 0 }, xpStr)
GdipSaveImageToStream_字节集 (bpStr, ipStr, xpStr, 0)
lpStr = GlobalLock (hMem)
nSize = GlobalSize (hMem)
xpStr = 指针到字节集 (lpStr, nSize)
GlobalUnlock (hMem)
GlobalFree (hMem)
GdipDisposeImage (bpStr)
GdiplusShutdown (token)
返回 (xpStr)