🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.sys.palmtops.pilot
Article #190

Re: Memory card device ID...

#190
From: Logan Shaw
Date: Fri, 18 Jun 2004 15:13
29 lines
2123 bytes
PJ wrote:
> I've searched the archives...can't find any info.  Perhaps this is easier
> than I think it is...
> 
> What API calls will allow me to get the Device ID of an inserted memory
> card?  The Card Info application does this so it should be possible...

Should work like this:

	UInt16 slotRefNum;
	UInt32 slotIterator = expIteratorStart;

	/* loop over all slots */
	while (slotIterator != expIteratorStop)
	{
	    if (ExpSLotEnumerate (&slotRefNum, &slotIterator) != errNone)
	    {
	        ExpCardInfoType cardinfo;

	        if (ExpCardInfo (slotRefNum, &cardinfo) != errNone)
	        {
		    /* cardinfo.deviceUniqueIDStr is the info you want */
	        }
	    }
	}

More info in the Expansion Manager chapter in the API Reference stuff.

  - Logan
Technical Details
Message-ID: <QEDAc.1997$M96.1693@fe2.texas.rr.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!HSNX.atgi.net!cyclone-sf.pbi.net!216.196.106.144!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone.austin.rr.com!fe2.texas.rr.com.POSTED!not-for-mail
References: <hHAAc.40915$mz.3778@nwrdny02.gnilink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11219a,8d3e15be7b7a11d7
X-Google-Thread: 10baa0,8d3e15be7b7a11d7
X-Google-Thread: 112073,8d3e15be7b7a11d7
X-Google-Attributes: gid11219a,gid10baa0,gid112073,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!HSNX.atgi.net!cyclone-sf.pbi.net!216.196.106.144!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone.austin.rr.com!fe2.texas.rr.com.POSTED!not-for-mail
From: Logan Shaw <lshaw-usenet@austin.rr.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040616
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.comp.sys.palmtops.pilot,codewarrior.palm,comp.sys.palmtops.pilot
Subject: Re: Memory card device ID...
References: <hHAAc.40915$mz.3778@nwrdny02.gnilink.net>
In-Reply-To: <hHAAc.40915$mz.3778@nwrdny02.gnilink.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 29
Message-ID: <QEDAc.1997$M96.1693@fe2.texas.rr.com>
Date: Fri, 18 Jun 2004 15:13:52 GMT
NNTP-Posting-Host: 66.68.171.211
X-Complaints-To: abuse@rr.com
X-Trace: fe2.texas.rr.com 1087571632 66.68.171.211 (Fri, 18 Jun 2004 10:13:52 CDT)
NNTP-Posting-Date: Fri, 18 Jun 2004 10:13:52 CDT
Organization: Road Runner High Speed Online http://www.rr.com