Skip to content

Commit dbca063

Browse files
committed
fix #551 'show folder on windows'
1 parent ce01dd4 commit dbca063

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

src/PharoLauncher-Core/Win32Platform.extension.st

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/PharoLauncher-Core/WinPlatform.extension.st

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ WinPlatform >> hostArchitecture [
99
^ processorArch
1010
]
1111

12+
{ #category : #'*PharoLauncher-Core' }
13+
WinPlatform >> privShellExecute: lpOperation file: lpFile parameters: lpParameters directory: lpDirectory show: nShowCmd [
14+
15+
^self ffiCall: #(
16+
FFIConstantHandle ShellExecuteA(
17+
0,
18+
char* lpOperation,
19+
char* lpFile,
20+
char* lpParameters,
21+
char* lpDirectory,
22+
int nShowCmd)) module: #shell32
23+
24+
25+
]
26+
27+
{ #category : #'*PharoLauncher-Core' }
28+
WinPlatform >> privShellExplore: folder [
29+
"
30+
self privShellExplore: 'c:\'
31+
"
32+
33+
^self privShellExecute: 'explore' file: folder parameters: '' directory: '' show: 5 "SW_SHOW"
34+
]
35+
1236
{ #category : #'*PharoLauncher-Core' }
1337
WinPlatform >> uname [
1438
^ PhLVmProvider osWindows

0 commit comments

Comments
 (0)