Bug #63346 --> implment reveal and launch methods for OS/2.

code contributed by mkaply
r=mkaply
sr=mscott
This commit is contained in:
mscott%netscape.com 2001-01-31 21:04:04 +00:00
parent 7d3acb0d42
commit a43826465f
2 changed files with 17 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include "nsMemory.h"
#include "nsLocalFileOS2.h"
#include "nsXPIDLString.h"
#include "nsISimpleEnumerator.h"
#include "nsIComponentManager.h"
@ -2178,10 +2179,23 @@ nsLocalFile::SetPersistentDescriptor(const char * aPersistentDescriptor)
return InitWithPath(aPersistentDescriptor);
}
#ifndef OPEN_DEFAULT
#define OPEN_DEFAULT 0
#endif
NS_IMETHODIMP
nsLocalFile::Reveal()
{
return NS_ERROR_FAILURE;
nsXPIDLCString platformPath;
GetPath(getter_Copies(platformPath));
HOBJECT hobject = WinQueryObject(platformPath);
WinOpenObject( hobject, OPEN_DEFAULT, TRUE);
// we don't care if it succeeded or failed.
return NS_OK;
}

View File

@ -48,6 +48,8 @@
#define INCL_DOSMODULEMGR
#define INCL_DOSNLS
#define INCL_WINCOUNTRY
#define INCL_WINWORKPLACE
#include <os2.h>
#if 0 // OLDWAY