using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
namespace PACNET
{
/// microSD Management API
public partial class Memory
{
//6.1. PAC_API bool pac_SDExists()
///
/// This function is used to check that the Micro SD whether has been standby ready or not.
///
/// Return true if success, otherwise false.
[DllImport("PACSDK.dll", EntryPoint = "pac_SDExists")]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool SDExists();
//6.2. PAC_API bool pac_SDMount(LPTSTR szPartitionName)
///
/// This function is used to mount Micro SD if the Micro SD has been inserting to the device
/// without mounting.
///
/// [in] Name of the partition. Example Part00.
/// Return true if success, otherwise false.
[DllImport("PACSDK.dll", EntryPoint = "pac_SDMount")]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool SDMount(string szPartitionName);
//6.3. PAC_API bool pac_SDOnside()
///
/// This function is used to check the Micro SD whether on-side or not.
///
/// Return true if success, otherwise false.
[DllImport("PACSDK.dll", EntryPoint = "pac_SDOnside")]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool SDOnside();
//6.4. PAC_API bool pac_SDUnmount()
///
/// This function is used to dismount Micro SD if the Micro SD has been mounted.
///
/// Return true if success, otherwise false.
[DllImport("PACSDK.dll", EntryPoint = "pac_SDUnmount")]
[return: MarshalAs(UnmanagedType.I1)]
public static extern bool SDUnmount();
}
}