Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Sending a standard message with one or more attached files using default email client
Accessing Adobe Reader 7.0 main menu from VFP application
How to create MD-5 and SHA-1 hash values from a string
How to play MIDI notes
Using Month Calendar Control (VFP9, Comctl32.dll)
How to display picture stored in enhanced-format metafile (*.emf)
OS version and revision
Storing screen shot of a form to bitmap file
Winsock: connecting to a news server (NNTP, port 119)
Creating a window using CreateWindowEx function
GDI+: how to make VFP controls visually shake and shudder
How to prevent users from accessing the Windows Desktop and from switching to other applications
Retrieving file information for the VFP executable running
Getting a bit more than the _CLIPTEXT offers
Loading a string resource from an executable file
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Using Common Controls: the Header Control
WAV file player
Reading entries from Event logs
Using InternetSetFilePointer when resuming interrupted download from the Internet
Class for sound recording
How to upload a local file to FTP server using FtpPutFile
Obtaining names and positions for shortcuts located on the Windows Desktop
Converting command-line string to a set of Unicode argument strings (WinNT only)
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: 85  
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 (50.16.132.180)
4 sec.Example: 'Retrieving the names of all sections in an initialization file'
2.09 hrs.Function: 'RasPhonebookDlg'
 Function: 'SetEvent'
Function group: 'Synchronization'
2.64 hrs.Example: 'Adding supplementary data to AVI files'
3.37 hrs.Function: 'DrawText'
Function group: 'Font and Text'
 Function: 'AVIStreamGetFrame'
Function group: 'Windows Multimedia'
 Example: 'Using the NetMessageBufferSend to send messages on the network'
4.86 hrs.Example: 'DiskFreeSpace class'
4.95 hrs.Function: 'GdipGetPageScale'
7.55 hrs.Example: 'Loading a string resource from an executable file'
Google
Advertise here!