Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Pocket PC: retrieving data from the Contacts Database
Reading and setting system access privileges for the current process
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
Obtaining a handle to the desktop associated with the calling thread
Pocket PC: Folder Viewer
Retrieving country-specific dialing information from the Windows Telephony list of countries
Converting a decimal string to an integer
GDI+: printing image file
How to control Adobe Reader 9.0 (SDI mode) from VFP application
OS version and revision
How to display picture stored in enhanced-format metafile (*.emf)
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Opening access to the Microsoft Internet functions for the application
Retrieving list of all active RAS connections
Testing MS Internet Explorer version installed
Creating a directory on the FTP
Retrieving configuration information for the specified server (Win2000/XP)
Uploading file to the FTP server using InternetWriteFile
Using shared memory to exchange data between two FoxPro applications
Using the CreateFile
Writing entries to custom Event Log
Converting an integer value to a hexadecimal string
FindText -- the hopeless and useless Common Dialog
Reading and setting system access privileges for the current process

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:
A privilege is the right of an account, such as a user or group account, to perform various system-related operations on the local computer, such as shutting down the system, loading device drivers, or changing the system time.

 
  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:
  • ~
6351 bytes  
Created: 2009-02-05 11:49:21  
Modified: 2009-02-05 13:40:34  
Visits in 7 days: 99  
Listed functions:
AdjustTokenPrivileges
CloseHandle
GetCurrentProcess
GetLastError
GetTokenInformation
LookupPrivilegeDisplayName
LookupPrivilegeName
LookupPrivilegeValue
OpenProcessToken
Printer friendly API declarations
My comment:
Read about Privileges on MSDN.
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.67.55)
8.89 hrs.Example: 'How to ping a remote site using IP Helper API calls'
1 day(s)Example: 'Configuring DEVMODE structure for a printer'
 Function: 'GetKeyboardLayout'
Function group: 'Keyboard Input'
 Function: 'GetBkMode'
 Function: 'GetRawInputData'
 Example: 'Comparing dimensions of the VFP main window with _SCREEN properties'
Google
Advertise here!