GetPermissionInfo Method
Gets information about a specific permission.
Syntax
ANSI (Cross Platform) int GetPermissionInfo(const char* lpszResourceId, const char* lpszPermissionId); Unicode (Windows) INT GetPermissionInfo(LPCWSTR lpszResourceId, LPCWSTR lpszPermissionId);
- (void)getPermissionInfo:(NSString*)resourceId :(NSString*)permissionId;
#define MID_GOOGLEDRIVE_GETPERMISSIONINFO 15 IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_GoogleDrive_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method retrieves information about the permission specified by PermissionId on the file, folder, or shared drive specified by ResourceId.
Calling this method will fire the PermissionList event, and will populate the Permission* properties (clearing any previously-held items in the process).
Shared Drive Members
Refer to UpdatePermissions for more information about how permissions work in general, how permissions relate to shared drive members, and how to manipulate multiple members at once.Error Handling (C++)
This method returns a 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. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)