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 8914635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:46:18+00:00 2026-06-15T04:46:18+00:00

I am doing a random file access to write log records in it. Later,

  • 0

I am doing a random file access to write log records in it. Later, I do access the log based on the log number. Using the log number I do calculate the offset of the record and directly access that. The function SetFilePointerEx is used to set the current location in the file and from there I can directly read the record.

The function expects the LARGE_INTEGER as parameter. How do I use LARGE_INTEGER for the SetFilePointerEx function? The req. notes says that the program will be targeted to 64 bit OS.

  • 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-06-15T04:46:22+00:00Added an answer on June 15, 2026 at 4:46 am

    Assuming LARGE_INTEGER li;, just set li.QuadPart to the LONGLONG value you need for your file offset and use li for the offset argument in the call. Or did I miss something obvious.?

    LARGE_INTEGER li, lo={0};
    li.QuadPart = yourOffsetValue;
    
    SetFilePointerEx(hFile, li, &lo, FILE_BEGIN);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently converting a Delphi method used for random binary file access into Java.
If I create a java Random Access File object against a file. What happens
I'm doing an animation in Processing. I'm using random points and I need to
While doing some random experimentation with a factorial program in C, Python and Scheme.
I was just doing some random testing on locking in multi-threading this morning and
I'm doing some random experimentation and want to print out the address the program
I need to random some elements from an array. I'm doing that by randomizing
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Doing my first SL4 MVVM RIA based application and i ran into the following
My question is pretty straightforward: You are an executable file that outputs Access granted

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.