Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Converting Unicode data from the Clipboard to a character string using a given code page
Custom GDI+ class
Establishing connection using the SQLDriverConnect
Custom FTP Class for Visual FoxPro application
Detecting changes in connections to removable drives (VFP9)
Splash Screen for the VFP application
How to create non-blocking Winsock server
Winsock: sending email messages (SMTP, port 25)
How to print a bitmap file
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Peer-to-peer LAN messenger built with Mailslot API functions
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Sending email messages with Simple MAPI
Custom HttpRequest class (WinINet)
How to create MD-5 and SHA-1 hash values from a string
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Displaying bitmap using the AlphaBlend function
Enumerating data formats currently available on the clipboard
How to put a vertical text scrolling on the form (a movie cast)
Mapping and disconnecting network drives
How to prevent users from accessing the Windows Desktop and from switching to other applications
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: 112  
    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.226.5.29)
    3 sec.Function: 'SearchPath'
    Function group: 'File Management'
    8.78 min.Example: 'Converting strings between ANSI and OEM'
    8.83 min.Function: 'FindFirstChangeNotification'
    3.22 hrs.Example: 'Using FlashWindowEx to flash the taskbar button of the VFP application'
     Function: 'FindWindowEx'
    Function group: 'Window'
    4.69 hrs.Example: 'Retrieving names for the registered clipboard formats'
     Example: 'GDI+: printing vertical text on VFP reports via generated images (VFP9)'
    6.08 hrs.Function: 'CeDeleteFile'
    6.32 hrs.Gallery
    Page 8
    10.28 hrs.Example: 'GDI+: printing vertical text on VFP reports via generated images (VFP8)'
    Google
    Advertise here!