Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving the name of the network resource associated with a local device
Starting an external application in VFP using WinExec
Testing if a connection to an Url can be established
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Initiating Inet connection using a modem
Playing WAV sounds simultaneously
Quering a waveform-audio input device
Retrieving the interface–to–IP address mapping table
Smart Card Database Query Functions
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
How to copy the image of a form to the Clipboard using Bitmap API functions
How to enumerate, add and delete shares on the local computer (WinNT/XP)
GDI+: Drawing a Pie Chart
Reading header information from AVI file
Retrieving the User Datagram Protocol (UDP) listener table
Semi-transparent Form
CryptoAPI: Collection of Providers class
Disconnecting USB Mass Storage Device programmatically
How to find the application associated with a file name
Converting characters in a URL into corresponding escape sequences and backwards
How to read email messages using Simple MAPI
Browsing Windows Known Folders (Special Folders)
Displaying dimmed window behind VFP top-level form
Enumerating printer drivers installed
Using mailslots to send messages on the network

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:
This example shows how to broadcast system alerts using mailslots as an alternative to NET SEND command.

On Windows XP computer, make sure that the Messenger service is running:


On Win9* computer, start WINPOPUP.EXE if no other messaging system is active.

See also:
  • Using the NetMessageBufferSend to send messages on the network
  • Peer-to-peer LAN messenger built with Mailslot API functions
  • How to create non-blocking Winsock server
  • A client for testing non-blocking Winsock server
  • Using named pipes to pass data between processes
  • Using WM_COPYDATA for interprocess communication
  •  
      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:
    • ~
    2139 bytes  
    Created: 2002-01-29 19:49:56  
    Modified: 2008-12-03 15:26:21  
    Visits in 7 days: 105  
    Listed functions:
    CloseHandle
    CreateFile
    GetComputerName
    WriteFile
    Printer friendly API declarations
    My comment:
    \\[destination]\mailslot\\messngr is undocumented mailslot name, though it is widely used exactly for this purpose -- for sending popup messages. As I already mentioned, this is an equivalent of NET SEND command.

    In this example a message is sent to the local computer, just to avoid disturbing others. As a destination, you also can choose any computer or server name on your LAN. An asterick (*) is for the primary domain. With this name chosen as a destination you will be granted an immediate attention of all your co-workers.

    On target computer, TCP port 139 (NetBIOS) is assigned to receive messages.

    Also the NetMessageBufferSend function (Unicode-based) can be used for sending messages on a network. If compared to this function, the mailslot approach can send messages no longer than 128 characters. Though it returns much faster than sometimes the NetMessageBufferSend does.

    * * *
    You cannot prevent the use of the NetMessageBufferSend function in Windows Messenger

    The NET SEND command may not work correctly on a computer that is running Windows XP Service Pack 2.

    How to Prevent Windows Messenger from Running on a Windows XP-Based Computer

    Microsoft Messenger Removal
    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.235.20.17)
    52.3 min.Function: 'GdipGetPropertyItem'
    Function group: 'GDI+ Image'
    52.35 min.Example: 'Writing to INI file'
    Language: 'C#'
    2.37 hrs.Example: 'Using the ChooseColor function'
    9.19 hrs.Function: 'UrlGetPart'
    Function group: 'Shell Lightweight Utility APIs -- Path Functions'
     Example: 'Pocket PC: base class'
    13.96 hrs.Example: 'Retrieving size of a remote file'
     Example: 'How to make the caption of a VFP application flashing in the Windows task bar'
    19.71 hrs.
    Function group: 'Shell Lightweight Utility APIs -- Path Functions'
    22.06 hrs.Example: 'Using Change Notification Objects to monitor changes to the printer or print server'
     Function: 'WNetEnumResource'
    Google
    Advertise here!