Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to perform Base64 encoding/decoding using Cryptography API Functions
Retrieving information specific to the current Time Zone
Simple MAPI: how to resolve a name to unique address list entry
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Drawing a window caption using the DrawCaption routine
Get the power status of your laptop computer
Reading VFP settings from the Windows Registry
Retrieving configuration information for the specified workstation (Win2000/XP)
Comparing dimensions of the VFP main window with _SCREEN properties
Disabling drawing in the VFP form
How to drag a Form not using its Titlebar or Caption
How to intercept window messages sent to VFP form
Retrieving Printer Device Context using PrintDlg function
Deleting a file stored on the FTP server
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
Dynamic strings implemented through VFP Custom class
Enumerating sessions established on a server
GDI+: Color Transparency
How to obtain Content-Type value for a file type from the System Registry
Monitoring changes in a directory
Quering waveform-audio output devices
Retrieving the User Datagram Protocol (UDP) listener table
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Accessing examples contained in this reference through Web Services
Retrieving the priority class for the current process

User rating: 10/10 (1 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
 
DECLARE INTEGER GetCurrentProcess IN kernel32
 
DECLARE INTEGER GetPriorityClass IN kernel32;
    INTEGER hProcess
 
#DEFINE NORMAL_PRIORITY_CLASS     32
#DEFINE IDLE_PRIORITY_CLASS       64
#DEFINE HIGH_PRIORITY_CLASS      128
#DEFINE REALTIME_PRIORITY_CLASS  256
 
    lnPriority = GetPriorityClass(GetCurrentProcess())
 
    ? "Priority class: "
    DO CASE
    CASE lnPriority = NORMAL_PRIORITY_CLASS
        ?? "Normal"
    CASE lnPriority = IDLE_PRIORITY_CLASS
        ?? "Idle"
    CASE lnPriority = HIGH_PRIORITY_CLASS
        ?? "High"
    CASE lnPriority = REALTIME_PRIORITY_CLASS
        ?? "Real Time"
    OTHER
        ?? "Unknown"
    ENDCASE
 
 

User rating: 10/10 (1 votes)
Rate this code sample:
  • ~
618 bytes  
Created: 2001-10-25 21:06:59  
Modified: 2010-08-13 20:13:55  
Visits in 7 days: 60  
Listed functions:
GetCurrentProcess
GetPriorityClass
Printer friendly API declarations
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.17.109.248)
3 sec.Example: 'Retrieving the name of the network resource associated with a local device'
7.32 hrs.Example: 'Custom HttpRequest class (WinHTTP)'
 Example: 'Playing WAV sounds simultaneously'
10.41 hrs.Example: 'Storing the environment strings in cursor'
14.49 hrs.Example: 'Obtaining some properties for the Windows desktop using the GetWindowPlacement function'
 Function: 'GetKeyNameText'
Function group: 'Keyboard Input'
14.63 hrs.Function: 'WNetGetConnection'
 Function: 'SetClipboardViewer'
15.43 hrs.Example: 'An alternative way of setting Form.Closable to False'
20.73 hrs.Function: 'GetDoubleClickTime'
Function group: 'Mouse Input'
Google
Advertise here!