Using Win32 functions in Visual FoxPro Image Gallery
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
WinHelp
Code examples:
Using the RestartDialog function -- restarting Windows
Using the RestartDialog function -- restarting Windows

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
Versions:
click to open
Before you begin:


See also:
  • How to initiate System shutdown (WinNT only)
  • Closing Windows
  • Enabling the SE_SHUTDOWN_NAME privilege for the application
  •  
      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:
    • ~
    700 bytes  
    Created: 2002-12-30 22:40:36  
    Modified: 2009-01-03 15:26:33  
    Visits in 7 days: 109  
    Listed functions:
    GetActiveWindow
    RestartDialog
    Printer friendly API declarations
    My comment:
    To shut down the local computer, the calling thread must have the SE_SHUTDOWN_NAME privilege.
    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.64 hrs.Function: 'WinHttpConnect'
    3.65 hrs.Example: 'Accessing examples contained in this reference through Web Services'
     Function: 'DeleteFileTransacted'
    Function group: 'File Management'
    11.01 hrs.Example: 'GetFocus returns a HWND value'
     Example: 'Testing serial ports'
    18.78 hrs.Example: 'URL: splitting into its component parts'
     Function: 'GetFileSizeEx'
    22.64 hrs.Gallery
     Example: 'How to prevent users from accessing the Windows Desktop and from switching to other applications'
    23.44 hrs.Function: 'FormatMessage'
    Function group: 'Error Handling'
    Google
    Advertise here!