Example of Clipboard Management Services Calls

An example of some of these functions used in an application program is listed below.

m_rep_index("TEST", &Index, &Len); /* get index and length for rep "TEST" */
m_cb_read(Index, 0, FullRead, Len);    /* read complete rep into FullRead (offset = 0) */
m_cb_read(Index, 0, PartRead, 20);     /* read first 20 bytes into PartRead */ 
m_cb_read(Index, 20, NextPartRead, 30);/* read next 30 bytes into NextPartRead */
m_cb_read(Index, 50, RestRead, Len - 50); /* read remaining bytes into RestRead */