Using Win32 functions in Visual FoxPro Image Gallery
File Management
..msdn
CopyFile
CopyFileTransacted
CreateDirectory
CreateFile
CreateFileTransacted
CreateHardLink
CreateSymbolicLink
DeleteFile
DeleteFileTransacted
FindClose
FindCloseChangeNotification
FindFirstChangeNotification
FindFirstFile
FindNextChangeNotification
FindNextFile
FlushFileBuffers
GetBinaryType
GetCurrentDirectory
GetDriveType
GetFileAttributes
GetFileAttributesEx
GetFileInformationByHandle
GetFileType
GetFullPathName
GetLongPathName
GetShortPathName
GetTempFileName
GetTempPath
LockFile
MoveFile
MoveFileTransacted
OpenFile
QueryDosDevice
ReadDirectoryChangesW
ReadFile
RemoveDirectory
RemoveDirectoryTransacted
ReplaceFile
SearchPath
SetCurrentDirectory
SetEndOfFile
SetFileAttributes
SetFilePointer
SetFilePointerEx
SetSearchPathMode
UnlockFile
WriteFile
_lclose
_lopen
Code examples:
How to convert a bitmap file to monochrome format (1 bpp)
Peer-to-peer LAN messenger built with Mailslot API functions
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
Subclassing CommandButton control to create BackColor property
Using InternetSetFilePointer when resuming interrupted download from the Internet
Using mailslots to send messages on the network
Using named pipes for interprocess communication
Vertical Label control
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: 108  
    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-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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.162.166.214)
    11 sec.Function: 'DestroyWindow'
    Function group: 'Window'
    22 sec.
    Function group: 'File Management'
    34 sec.Function: 'CreateSymbolicLink'
    Function group: 'File Management'
    44 sec.Function: 'CeRegSetValueEx'
    55 sec.Function: 'DetachVirtualDisk'
    Function group: 'Virtual Hard Disk (Win7)'
    1.27 min.Function: 'CreateDirectory'
    Function group: 'File Management'
    1.45 min.
    Function group: 'GDI+ Image'
    1.6 min.Function: 'CeGetSystemInfo'
    Function group: 'Remote Application Programming (RAPI)'
    1.72 min.Function: 'FlushFileBuffers'
    1.87 min.
    Function group: 'File Management'
    Google
    Advertise here!