Squeak Class Documentation category index | class index  
 
Win32Shell
  category: FFI-Examples-Win32
  superclass: ExternalObject
  subclasses:

This class wrappes the Windows 32 shell.

Try
Win32Shell new shellOpen: 'c:\image.bmp' to open a document
Win32Shell new shellOpen: 'c:\myprogram.exe' to start an executable
Win32Shell new shellExplore: 'c:\' to explore a directory
Win32Shell new shellFind: 'c:\' to initiate a search

Note that this class is platform specific.

instance methods
  api calls
  shellExecute:lpOperation:lpFile:lpParameters:lpDirectory:nShowCmd:

  operations
  shellExplore:
shellFind:
shellOpen:

class methods
  no messages
 

instance methods
  api calls top  
 

shellExecute:lpOperation:lpFile:lpParameters:lpDirectory:nShowCmd:

Opens or prints the specified file, which can be an executable or document file.
HINSTANCE ShellExecute(
HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);


  operations top  
 

shellExplore:

Explores the folder specified by aPathString


 

shellFind:

Initiates a search starting from the specified directory.


 

shellOpen:

Opens the file specified by aFileString. The file can be an executable file, a document file,
or a folder.


class methods
  no messages top