Skip to content

Commit

Permalink
fix #551 'show folder on windows'
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Apr 25, 2022
1 parent ce01dd4 commit dbca063
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/PharoLauncher-Core/Win32Platform.extension.st

This file was deleted.

24 changes: 24 additions & 0 deletions src/PharoLauncher-Core/WinPlatform.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ WinPlatform >> hostArchitecture [
^ processorArch
]

{ #category : #'*PharoLauncher-Core' }
WinPlatform >> privShellExecute: lpOperation file: lpFile parameters: lpParameters directory: lpDirectory show: nShowCmd [

^self ffiCall: #(
FFIConstantHandle ShellExecuteA(
0,
char* lpOperation,
char* lpFile,
char* lpParameters,
char* lpDirectory,
int nShowCmd)) module: #shell32


]

{ #category : #'*PharoLauncher-Core' }
WinPlatform >> privShellExplore: folder [
"
self privShellExplore: 'c:\'
"

^self privShellExecute: 'explore' file: folder parameters: '' directory: '' show: 5 "SW_SHOW"
]

{ #category : #'*PharoLauncher-Core' }
WinPlatform >> uname [
^ PhLVmProvider osWindows
Expand Down

0 comments on commit dbca063

Please sign in to comment.