Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1306
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 20
Color 1
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 28
Cursor 5
Data Decompression Library 3
Debugging 2
Desktop Window Manager (DWM) 1
Device Context 13
Device Input and Output 1
Dialog Box 6
DNS Functions 1
Dynamic-Link Library 6
Error Handling 10
Event Logging 10
Extensible Storage Engine (ESE, Jet Blue) 23
File Management 49
File Mapping 4
File System 19
Filled Shape 2
Font and Text 13
GDI+ 6
GDI+ Bitmap 10
GDI+ Brush 4
GDI+ Font 9
GDI+ Graphics 28
GDI+ Image 20
GDI+ ImageAttributes 3
GDI+ Matrix 10
GDI+ PathGradient Brush 3
GDI+ Pen 2
GDI+ StringFormat 2
GDI+ Text 2
Handle and Object 4
Hook 2
HTTP Functions (WinHTTP) 12
Icon 7
Internet Functions (WinInet) 49
IP Helper 24
Kernel Transaction Manager 3
Keyboard Input 22
Mailslot 3
Memory Management 26
Menu 18
Message and Message Queue 12
Metafile 6
Monitor Configuration (Vista) 8
Mouse Input 8
MSHTML Reference 1
Multilingual User Interface 4
Multiple Display Monitors 2
National Language Support 20
Network Management 34
Painting and Drawing 17
Path 3
Performance Monitoring 12
Pipe 5
PnP Configuration Manager 6
Power Management 6
Printing and Print Spooler 35
Process and Thread 31
Raw Input 4
Region 7
Registry 21
Remote Access Service (RAS) 5
Remote Application Programming (RAPI) 49
Remote Procedure Call (RPC) 7
Resource 10
Security 22
Service 11
Setup API functions 7
Shell Functions 39
Shell Lightweight Utility APIs -- misc. functions 2
Shell Lightweight Utility APIs -- Path Functions 20
Shell Lightweight Utility APIs -- string functions 4
Simple MAPI 9
String 10
Synchronization 13
System Information 23
System Shutdown 5
Terminal Services 10
Time 16
Unicode and Character Set 2
URL Monikers 7
Version Information 2
Virtual Hard Disk (Win7) 4
Window 37
Window Class 8
Window Procedure 3
Window Property 3
Window Station and Desktop 7
Windows Controls 8
Windows Multimedia 76
Windows Networking 18
Windows Sockets 2 (Winsock) 38
Error Handling            ..msdn    Add comment
Beep Generates simple tones on the speaker. The function is synchronous; it does not return control to its caller until the sound finishes.
FatalAppExit The FatalAppExit function displays a message box and terminates the application when the message box is closed.
FlashWindow Flashes the specified window one time. It does not change the active state of the window
FlashWindowEx The FlashWindowEx function flashes the specified window. It does not change the active state of the window.
FormatMessage The FormatMessage function formats a message string. It can be used to obtain error message strings for the system error codes returned by GetLastError.
GetErrorMode Retrieves the error mode for the current process.
GetLastError The GetLastError function retrieves the calling thread"s last-error code value.
MessageBeep Plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry
SetErrorMode Controls whether the system will handle the specified types of serious errors, or whether the process will handle them.
SetLastError Sets the last-error code for the calling thread. This function is intended primarily for dynamic-link libraries (DLL). Calling this function after an error occurs lets the DLL emulate the behavior of the Win32 API.

If you are defining an error code for your application, be sure that your error code does not conflict with any system-defined error codes.
Code examples:
Custom FTP Class for Visual FoxPro application
Testing serial ports
Creating a console window for Visual FoxPro application
Displaying dimmed window behind VFP top-level form
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to create MD-5 and SHA-1 hash values from a string
Generating random cryptographic keys
Printing Image File, programmatically set print page orientation to landscape
How to play AVI file on the _screen
How to load a user profile
Encapsulating access to the Windows Services in a class
Monitoring clipboard content changes (VFP9)
Reading and setting system access privileges for the current process
Peer-to-peer LAN messenger built with Mailslot API functions
Reading security permissions for NTFS files and folders
Writing entries to custom Event Log
How to prevent users from accessing the Windows Desktop and from switching to other applications
How to enable the SE_SHUTDOWN_NAME privilege for the application
Using Change Notification Objects to monitor changes to the printer or print server
Compressing and decompressing files with Windows API Runtime Library routines
Custom HttpRequest class (WinHTTP)
Setting default printer
Reading the structure of VFP main menu
A class that encrypts and decrypts files using Cryptography API Functions
How to enumerate sessions and processes on a specified terminal server
Using EnumPrinters function to enumerate locally installed printers
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Custom HttpRequest class (WinINet)
Displaying bitmap using the AlphaBlend function
Enumerating Processes -- WinNT
Reading entries from Event logs
How to ping a remote site using IP Helper API calls
How to find which fonts Windows uses for drawing captions, menus and message boxes
How to make application automatically close all documents it opened
How to display a user-defined icon in the MessageBox dialog
Controlling master audio volume by sending WM_APPCOMMAND messages
Setting the date and time that a file was created
How to block the PrintScreen key
How to extract frames from AVI files
HOWTO: Use the Win32 API to Access File Dates and Times
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Storing registration key in the resources of an executable file
Using named pipes for interprocess communication
Connecting a local device to a network resource
How to enumerate cookies and URL History entries in the cache of the local computer
How to delete all print jobs for a printer
Enumerating printer drivers installed
How to retrieve the number of print jobs queued for the printer
How to display the Properties dialog box for a file (ShellExecuteEx)
User Contributed Notes: | 2005-06-19 04:06:03
please help to getrid of following

1. ctrl+esc

2. when dbf is not in use, in programe scatter memvar
  file window opens user can delete valid files.

3. when print files directed to Printer use !type>prn
  command window opens

4. window keys.

5. right click key.

6. when icon clicked more one 2 again application
  opens in different window.

Copyright 2001-2017 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.6.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
8 sec.Function: 'mmioCreateChunk'
Function group: 'Windows Multimedia'
16 sec.Gallery
Page 9
25 sec.
Function group: 'Kernel Transaction Manager'
33 sec.Function: 'CryptDestroyKey'
Function group: 'Cryptography Reference'
40 sec.Function: 'CryptGenKey'
Function group: 'Cryptography Reference'
47 sec.Example: 'How to perform Base64 encoding/decoding using Cryptography API Functions'
54 sec.Function: 'GetMonitorContrast'
1.03 min.Function: 'GetInterfaceInfo'
Function group: 'IP Helper'
1.13 min.Example: 'Retrieving information specific to the current Time Zone'
1.27 min.Function: 'NetWkstaUserEnum'
Function group: 'Network Management'
Advertise here!