/// <summary> /// Get row count of a specified folder's contents table. /// </summary> /// <param name="flags">The TableFlags parameter contains a bitmask of flags that control how information is returned in the table on folder.</param> /// <param name="inputHandle">The folder object handle.</param> /// <returns>Row count of the specified folder's contents table.</returns> protected uint GetContentsTable(FolderTableFlags flags, uint inputHandle) { RopGetContentsTableRequest request = new RopGetContentsTableRequest { RopId = (byte)RopId.RopGetContentsTable, LogonId = Constants.CommonLogonId, InputHandleIndex = Constants.CommonInputHandleIndex, OutputHandleIndex = Constants.CommonOutputHandleIndex, TableFlags = (byte)flags }; RopGetContentsTableResponse response = this.Adapter.GetContentsTable(request, inputHandle, ref this.responseHandles); return(response.RowCount); }
/// <summary> /// Get row count of a specified folder's contents table. /// </summary> /// <param name="flags">The TableFlags parameter contains a bitmask of flags that control how information is returned in the table on folder.</param> /// <param name="inputHandle">The folder object handle.</param> /// <returns>Row count of the specified folder's contents table.</returns> protected uint GetContentsTable(FolderTableFlags flags, uint inputHandle) { RopGetContentsTableRequest request = new RopGetContentsTableRequest { RopId = (byte)RopId.RopGetContentsTable, LogonId = Constants.CommonLogonId, InputHandleIndex = Constants.CommonInputHandleIndex, OutputHandleIndex = Constants.CommonOutputHandleIndex, TableFlags = (byte)flags }; RopGetContentsTableResponse response = this.Adapter.GetContentsTable(request, inputHandle, ref this.responseHandles); return response.RowCount; }