win32 sdk中lpv是什么前缀?

int SetDIBitsToDevice(
  _In_       HDC        hdc,
  _In_       int        XDest,
  _In_       int        YDest,
  _In_       DWORD      dwWidth,
  _In_       DWORD      dwHeight,
  _In_       int        XSrc,
  _In_       int        YSrc,
  _In_       UINT       uStartScan,
  _In_       UINT       cScanLines,
  _In_ const VOID       *lpvBits,   //就是这个
  _In_ const BITMAPINFO *lpbmi,
  _In_       UINT       fuColorUse
);

lpvBits [in] A pointer to the color data stored as an array of bytes. For more information, see the following Remarks section.

我想问lpv的v是什么意思?

阅读 4.4k
1 个回答

v表示void,pv就是pointer to void,也就是void*。类比下面那个lpb(pointer to bitmap)就知道了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进