VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4] ]
Subject: Flash Serial Number


Author:
Amir
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 08:54:06 01/13/03 Mon

Hi.
I am using Your Core586, with Windows C.E. application running on it.
I want to know the serial number of the NAND Flash on the core.
I've tried the following :


PSTORAGE_IDENTIFICATION pStoreInfo;
DWORD dwOutBytes;

int sizeToAlloc = sizeof(STORAGE_IDENTIFICATION)+64;
pStoreInfo=(STORAGE_IDENTIFICATION *) SystemAlloc.Alloc(sizeToAlloc);

HANDLE hVolume=CreateFile(TEXT("\\NAND Flash\\Vol:"),GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);

bool retc = DeviceIoControl(hVolume,IOCTL_DISK_GET_STORAGEID,NULL, 0,(LPVOID)pStoreInfo,sizeToAlloc,&dwOutBytes,0);

For some reason it does not work. I get a valid handle for the NAND Flash but the DeviceIoControl() failes.

It returns an error code 87 - "The parameter is incorrect. "

Do you have any idea of how to solve this problem or do you have another way of finding out the NAND Flash serial?

Tnx.

Amir Even Or

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: Flash Serial Numberjoao08:52:34 04/12/03 Sat
Re: Flash Serial Numberedgar costa01:50:58 04/24/03 Thu
Re: Flash Serial NumberBob22:21:11 04/26/03 Sat
Re: Flash Serial NumberGökhan06:39:50 07/21/03 Mon
Re: Flash Serial Numberpocholo10:03:05 09/10/03 Wed
Re: Flash Serial Numbertarık13:24:25 10/16/04 Sat


[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.