Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using mailslots to send messages on the network
Creating a device context for the specified printer
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Enumerating files opened on the network
GDI+: printing image file
How to make a VFP form fading out when released (GDI+ version)
Simple Window Viewer
Hiding mouse cursor
How to empty the Recycle Bin
Retrieving configuration information for the specified workstation (Win2000/XP)
Displaying standard progress dialog box when copying files
Using FillMemory
Converting a hexadecimal string to an integer
Extracting the name and extension parts of a path string
Enumerating network interfaces on the local computer
Memory usage info for current VFP session (WinNT only)
Setting properties of the window: caption and user-defined value
The DetectAutoProxyUrl function identifies the auto-config script location
Using FrameRgn for displaying system colors
Comparing dimensions of the VFP main window with _SCREEN properties
Creating a mailslot
Drawing standard Windows icons
Pocket PC: Folder Viewer
Scanning a hierarchy of child windows down from the Windows Desktop
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: 95  
    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 (50.16.17.90)
    14.28 min.Example: 'Printing Image File, programmatically set print page orientation to landscape'
    14.33 min.Function: 'ConvertSidToStringSid'
    Function group: 'Security'
    2.12 hrs.Function: 'LocalSize'
    Function group: 'Memory Management'
     Function: 'LookupAccountName'
    2.81 hrs.Example: 'How to display advanced Task Dialog (Vista)'
     Example: 'How to set Creation Date/Time for a folder (WinNT)'
     Example: 'Printing text on the client area of the main VFP window'
    9.38 hrs.Function: 'DrawFrameControl'
     Example: 'Printing text with the Escape function'
    9.39 hrs.Function: 'closesocket'
    Function group: 'Windows Sockets 2 (Winsock)'
    Google
    Advertise here!