Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Opening access to the Microsoft Internet functions for the application
Printing text on the main VFP window
Using FtpCommand
Using InternetGoOnline function
Extracting the name and extension parts of a path string
How to find which fonts Windows uses for drawing captions, menus and message boxes
Semi-transparent Form
Storing the environment strings in cursor
Using an Event Object. Part B: running an application responding to events
Winsock: retrieving information about available transport protocols
Animating a transition of the VFP form (a wire-frame rectangle)
Drawing icons associated with the VFP main window
How to hide your program from the Close Program dialog (Win9* only)
How to intercept window messages sent to VFP form
Memory usage info for current VFP session (WinNT only)
Removing FTP directory
Using an Event Object. Part A: running an application that creates an Event object
Using the GetTempFileName
Wininet last error description
Determining if an Active Network Connection is Available
Reading and setting the priority class values for the current process and thread
Retrieving configuration information for the specified workstation (Win2000/XP)
Retrieving the names of all sections in an initialization file
Retrieving the state of your Internet connection
Setting the date and time that a file was created

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
1790 bytes  
Created: 2001-07-25 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 100  
Listed functions:
CloseHandle
GetLastError
GetSystemTime
GetSystemTimeAsFileTime
OpenFile
SetFileTime
SystemTimeToFileTime
Printer friendly API declarations
My comment:
The file handle must have been created with GENERIC_WRITE access to the file.

I tried to create the handle by using native FOPEN() function with different attributes. It did not work.

You can change any of three file time values or a combination of them. But not all file systems can record creation and last access time and not all file systems record them in the same manner. This way you can set the creation time to be later than its access and modification times.

* * *
In C# version, I use managed FileInfo object instead of accessing file times through the System.Runtime.InteropServices namespace.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.126.92)
3 sec.Example: 'Reading the state of mouse buttons within DO WHILE loop'
6 sec.Example: 'Using NetWkstaTransportEnum to obtain MAC Address of remote server'
3.56 hrs.Example: 'Wininet last error description'
8.32 hrs.Example: 'How to view system icons for the classes installed on the local machine'
8.44 hrs.Example: 'Mapping and disconnecting network drives'
11.36 hrs.
18.75 hrs.Function: 'PostQuitMessage'
Function group: 'Message and Message Queue'
23.55 hrs.Function: 'waveOutGetNumDevs'
 Example: 'Retrieving graphic capabilities of default printer'
1 day(s)Function: 'GetFullPathName'
Function group: 'File Management'
Google
Advertise here!