
CSL CS101-2 EPC CLASS 1 GEN 2 RFID HANDHELD READER
USER'S MANUAL, VERSION 1.0
Copyright © Convergence Systems Limited, All Rights Reserved
151
Appendix:
Native Code Interoperability:
Reset Suspend/Pda
Overview:
C# to C++ Interoperability is done by using DllImport (see msdn)
This sample shows how to reset / suspend the pda
Interface Definition:
Dependencies:
Coredll.dll
Function Definitions:
GwesPowerOffSystem:
Prototype:
public extern static void GwesPowerOffSystem();
Description:
This suspends CS101’s pda.
ResetPocketPC:
Prototype:
public uint ResetPocketPC()
Description:
This resets CS101’s pda using standard KernelIoCtrl Procedure
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace CsDevReset
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();