EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Windows API calls fail when using a handle from created by OpenFile

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#15638
Posted: 01/28/2011 17:12:01
by Joseph Liechty (Basic support level)
Joined: 08/09/2010
Posts: 19

I used OpenFile to get a handle and saved it in the UserContext. Then I tried to use GetFileInformationByHandle and GetFileSizeEx. Both Failed with the error: (50)The request is not supported.

How can I get this information for the files that trigger the call back?
#15639
Posted: 01/28/2011 17:39:04
by Vladimir Cherniga (EldoS Corp.)

Did you try to use GetFileInformationByHandle and GetFileSizeEx from OpenFile callback or from another place ?
#15640
Posted: 01/28/2011 17:47:39
by Joseph Liechty (Basic support level)
Joined: 08/09/2010
Posts: 19

In a different call back, usually CloseFileC. Also called in PostWriteFileC and PostReadFileC.
#15641
Posted: 01/28/2011 18:48:40
by Vladimir Cherniga (EldoS Corp.)

We will check the issue in a short. The usage of this handle is very limited. Did you try to use the GetFileSize() api ?
#15648
Posted: 01/31/2011 14:01:03
by Joseph Liechty (Basic support level)
Joined: 08/09/2010
Posts: 19

I get the same error with GetFileSize().
#15649
Posted: 01/31/2011 14:28:21
by Vladimir Cherniga (EldoS Corp.)

Usage of file handle returned from OpenFile api is not supported from OnClose callback in the current version. We will check the other cases asap.
#15672
Posted: 02/02/2011 07:02:33
by Vladimir Cherniga (EldoS Corp.)

Please test the attached driver version using GetFileInformationByHandle and GetFileSizeEx with PostWriteFileC and PostReadFileC. I have tested it with a modified Encrypt sample. It should work (except for OnCloseFile callback).


[ Download ]
#15674
Posted: 02/02/2011 12:23:11
by Joseph Liechty (Basic support level)
Joined: 08/09/2010
Posts: 19

The API calls do work from the PostWrite and PostRead callbacks.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 2919 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!