GetInstanceData

2.x

  int GetInstanceData(hinst, npbData, cbData)    
  HINSTANCE hinst; /* handle of previous instance */
  BYTE* npbData; /* address of current instance data buffer */
  int cbData; /* number of bytes to transfer */

The GetInstanceData function copies data from a previous instance of an application into the data area of the current instance.

Parameters

hinst

Identifies a previous instance of the application.

npbData

Points to a buffer in the current instance.

cbData

Specifies the number of bytes to be copied.

Return Value

The return value specifies the number of bytes copied if the function is successful. Otherwise, it is zero.