winapi « windows « C File Q&A

Home
C File Q&A
1.array
2.binary
3.delete
4.Development
5.directory
6.fgets
7.fopen
8.fprintf
9.fscanf
10.fwrite
11.header
12.include
13.input
14.LINE
15.linux
16.open
17.output
18.pointer
19.read
20.size
21.string
22.struct
23.Text
24.windows
25.write
C File Q&A » windows » winapi 

1. How can I use C to change the last modified date of a file in Windows?    stackoverflow.com

Is there a C function call that can change the last modified date of a file or directory in Windows?

2. Truncate file    stackoverflow.com

I am using fopen fseeko64 ftello64 fclose etc. to operating on a file. How can I truncate a file? I know that there is no standard way to do this in C. ...

3. Read file access/modification timestamp    stackoverflow.com

What win32 API C functions can I use to read the modification/access/created dates of a file?

4. How to check whether windows file indexing is ON or OFF    stackoverflow.com

Is there an API in C that I can use to check whether file indexing is on or off? Code is appreciated.

5. What is the most efficient way to read a big text file backwards?    stackoverflow.com

What is the most efficient way to read a big text file backwards, line by line, using Windows API functions? For example, if a file is:

line 1
...
line 108777
line 108778
the output should ...

6. What libraries/how to play wav file on Windows32 in C?    stackoverflow.com

What libraries for C do I need to play a wav file on a Win32 system? And what is the code to use those libraries?

7. How do I open a file in its default program    stackoverflow.com

How do I programmatically open a file in its default program (I'm using Windows XP). For example, opening *.txt will open the file in notepad.

8. Is there a way to check if a (file) handle is valid?    stackoverflow.com

Is there any way to check if a handle, in my case returned by CreateFile, is valid? The problem I face is that a valid file handle returned by CreateFile (it is ...

9. How to list and manipulate windows files using C only?    stackoverflow.com

I am trying to build a program to rename a bunch of files to a specific format. Problem is, I can't figure out the best way to find, list or manipulate ...

10. How to read remote INI files    stackoverflow.com

I read INI file strings through GetPrivateProfileString API. However, the INIs in local windows directory could be read like that. How can I read and edit a INI file in a Remote ...

11. VirtualAlloc problem allocating memory for bulk file reading    stackoverflow.com

Im trying to read some data from a binary file into a buffer allocated with VirtualAlloc. The problem is that i get a "bad Pr" problem and can't perform an fread. Here ...

12. How to make a text file "Open With" my Win Api Text Editor?    stackoverflow.com

I have recently made a small text editor in C WinApi. Ive almost done everything but I cant figure out how to make text files open with my program. The WinMain ...

13. Which API is used for encryption of hibernation files on Windows?    stackoverflow.com

The following is quoted from the "Security improvements" section of this article. "In response to our public complaint regarding the missing API for encryption of Windows hibernation files, Microsoft ...

14. Wait for file to be unlocked - Windows    stackoverflow.com

I'm writing a TFTP server program for university, which needs exclusive access to the files it opens for reading. Thus it can be configured that if a file is locked by ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.