Re: can I protect my NK.BIN
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Tue, 18 Oct 2005 09:16:30 -0700
Setting the system attribute provides just about *zero* protection. Even on
the desktop, that does pretty much nothing. We've given you the best way to
protect those files from deletion...
I still don't see how you can have the bootloader on the hard disk. What
loads it and executes it?
Paul T.
"pradip shinde" <pradip@xxxxxxxxxxxxxxx> wrote in message
news:eMD8C660FHA.3896@xxxxxxxxxxxxxxxxxxxxxxx
> Thanx for reply
>
> Here is the platform I'm working with. They have 2 ide devices. One(ide1)
> is a
> DOM or flash based storage with an ide interface mounted as a "Hard Disk"
> and other(ide2) is normal 40 GB HDD for store the data as a "Hard Disk2"
>
> My system is boot with dom, bootloader binary file (bootload.bin) and
> nk.bin is in the "Hard Disk" (DOM)
> I want to protect this partition, user can easily delete these 2 files
> from hard disk (DOM).
> I try to SetFileAttributes function as
>
>
> LPCTSTR pszNK = TEXT("\\Hard Disk\\NK.BIN");
> LPCTSTR pszBL1 = TEXT("\\Hard Disk\\BOOTLOAD.BIN");
>
> dwAttrib &= (~(FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_SYSTEM));
> SetFileAttributes(pszNK, dwAttrib);
> SetFileAttributes(pszBL1, dwAttrib);
>
> it is not working
>
> Other Data likes desktop data and my Document data stored in the "Hard
> Disk2" (HDD)
>
> --
> Regards,
>
> Pradip Shinde
> Software Engineer
> Sundyne Technologies Pvt. Ltd.
> Cell No. +91-9820890338
> Direct No.: +91-22-30423942
> Office Tel No. :+91-22- 24943940 / 24952629 /
> 30422629 / 30423940 / 30423941 / 30423943
> E-Mail:pradip@xxxxxxxxxxxxxxx
> http://www.sundynetech.com
>
> "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
> wrote in message news:eNtdjQz0FHA.1252@xxxxxxxxxxxxxxxxxxxxxxx
>> Well, you might store the nk.bin file, assuming it's being loaded by the
>> bootloader from the hard disk, in a partition of the disk which is not
>> mounted by Windows CE. That is, the bootloader would know about it, and
>> use it, but Windows CE would not be set up to show the partition
>> containing nk.bin.
>>
>> I don't understand what you're asking about the bootloader. Isn't the
>> bootloader in ROM?
>>
>> Paul T.
>>
>> "pradip shinde" <pradip@xxxxxxxxxxxxxxx> wrote in message
>> news:eWZoGJw0FHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hello,
>>>
>>> can I protect my NK.BIN? I used the hive-based registry(with fatfs) and
>>> store
>>> the changes to the system hive registry on the DOM as system.hv.
>>>
>>> User can easily delete the nk.bin and bootloader file from Hard Disk
>>> Folder, how can I protect it?.
>>>
>>> user can't delete the file NK.BIN from HardDisk
>>> Folder (like system.hv or all dll files)
>>>
>>> can i make it as system file?
>>>
>>>
>>> Regards,
>>>
>>> Pradip Shinde
>>>
>>>
>>
>>
>
>
.
- References:
- can I protect my NK.BIN
- From: pradip shinde
- Re: can I protect my NK.BIN
- From: Paul G. Tobey [eMVP]
- Re: can I protect my NK.BIN
- From: pradip shinde
- can I protect my NK.BIN
- Prev by Date: Re: My miniport driver - Adapter IP Address is 0.0.0.0
- Next by Date: Re: Using remote tools in eVC++ 4.0!
- Previous by thread: Re: can I protect my NK.BIN
- Next by thread: confused About writing and ISR in ethernet debug library. PLZ HELP!!!!!!!!!!!!!!
- Index(es):
Relevant Pages
|