Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Converting long file names to the short format and vice versa
Finding parameters for the region specified
How to download a file from HTTP server using URL Monikers functions
Pocket PC: creating backup for the System Registry
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Setting properties of the window: caption and user-defined value
Using FillMemory
Using the Semaphore object to allow only one instance of VFP application running
Winsock: how to retrieve the protocol information corresponding to a protocol number
Enumerating sessions established on a server
How to initiate System shutdown
Minimizing all running applications
Retrieving the names of all sections in an initialization file
Accessing Windows Control Panel from VFP Application
Setting the volume label
Drawing a window caption using the DrawCaption routine
GDI+: rotating images using matrix transformations
GDI+: Storing DLL icon resources in image files
How to generate UUID values
How to save registry key including its subkeys and values to a file
Using GetNearestColor
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
An alternative way of setting Form.Closable to False
GDI+: converting image file to another graphics format
GetFileOwner - Get the owner of an NTFS file

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
Before you begin:
The first version of this code sample was based on VB-to-VFP translation from VB example posted on DevX.com. For a given file the function returns account and domain names in a string.
 
  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:
  • ~
3259 bytes  
Created: 2004-02-25 20:58:36  
Modified: 2009-02-03 15:26:42  
Visits in 7 days: 74  
Listed functions:
GetFileSecurity
GetLastError
GetNamedSecurityInfo
GetSecurityDescriptorOwner
LocalFree
LocalSize
LookupAccountSid
Printer friendly API declarations
My comment:
A local computer is assumed. Otherwise change cSystemName value in the code from Chr(0) to the target computer name (null-terminated). The owner can be a serial port as well.
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 (107.21.186.38)
2.89 hrs.Example: 'Using GetNearestColor'
 Example: 'The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API'
6.72 hrs.Example: 'How to write and read Window Properties for the specified window'
10.87 hrs.Function: 'CryptGetProvParam'
 Function: 'GetNativeSystemInfo'
12.95 hrs.Example: 'How to assemble an array of strings and pass it to external function'
13.31 hrs.Example: 'Simple Window Viewer'
 Example: 'Drawing a window caption using the DrawCaption routine'
17.88 hrs.Gallery
Page 9
21.43 hrs.Function: 'GetFullPathName'
Google
Advertise here!