IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

CopyResource Method

Copies a file.

Syntax

ANSI (Cross Platform)
char* CopyResource(const char* lpszResourceId, const char* lpszNewName, const char* lpszParentIds);

Unicode (Windows)
LPWSTR CopyResource(LPCWSTR lpszResourceId, LPCWSTR lpszNewName, LPCWSTR lpszParentIds);
- (NSString*)copyResource:(NSString*)resourceId :(NSString*)newName :(NSString*)parentIds;
#define MID_GOOGLEDRIVE_COPYRESOURCE 6

IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_GoogleDrive_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method copies the file identified by ResourceId and returns the Id of the newly created copy.

The NewName parameter defines the name of the copied file.

The ParentIds parameter should be a comma-separated list of existing folder Ids to use as parents for the copied file. If left blank, the copied file will inherit the same parents of the original.

Error Handling (C++)

This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]