MgErr DSSetHandleFromPtr(void *ph, const void *psrc, size_t n);
Copies the data referenced by the pointer psrc into the handle pointed to by ph.
| Name | Type | Description |
|---|---|---|
| ph | UHandle | Pointer to a handle that the data from psrc is copied into. The allocated handle can contain n bytes of data. |
| psrc | UHandle | Pointer to the data of interest. |
| n | size_t | Number of bytes of data in psrc. If n is zero bytes, the handle pointed to by ph is allocated zero bytes. |
MgErr, which can contain the following errors. If you receive errors from CIN functions, most error names correspond to LabVIEW error codes.
| Value | Corresponding Error Code or Description |
|---|---|
| noErr | No error. |
| mgArgErr | 1 |
| mFullErr | 2 |