Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7550833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:19:06+00:00 2026-05-30T10:19:06+00:00

I am writing a program that is using a database library. The library provides

  • 0

I am writing a program that is using a database library. The library provides me access to the file handle it uses to access my table. I’ve found a windows API that allows me to retrieve information about the file by handle but I’ve yet to find any means of determining access mode / permissions of that file. At this point I’m sure I could likely live without knowing this information but being the stubborn cuss that I am I’m not ready to let this one go. Obviously Windows knows this info – so the question is how can coax the info out of it?

The API function that I’ve found is: GetFileInformationByHandleEx and it takes me close to the watering hole but doesn’t let me drink the water.

The reason that the file mode information is useful is that I need to modify the table header information. If the file is already in a proper mode then I won’t have to close the table open the file modify the file close the file then re-open the table.

And yes, before I’m told of all the options available to me to achieve my goal – I’m not interested in those. I’m only interesting in the original question – how do I determine the mode of an already opened file. I look forward to any responses and I thank you in advance.

Thanks,
Robert Milligan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:19:08+00:00Added an answer on May 30, 2026 at 10:19 am

    I don’t know if there is a corresponding Win32 API for this, but if you really need it you can call NtQueryObject(ObjectBasicInformation).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a program using jdbc that will be an interface to database(smth like
I'm writing a program that uses JDBC and connects to a database and does
I am writing a program that generates excel reports, currently using the Microsoft.Interop.Excel reference.
I'm writing a Cocoa OS X (Leopard 10.5+) end-user program that's using timestamps to
I am writing a python program that lauches a subprocess (using Popen). I am
I'm writing a program that uses SetWindowRgn to make transparent holes in a window
I am writing a program that reads data packets from a file, and assigns
I'm writing an application that is using a database (currently MySQL 4) to store
I'm writing a program in Ruby that downloads a file from an RSS feed
I'm writing a small program in C# that uses SQL to store values into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.