ReactOS  0.4.15-dev-3302-ga37d9a4
filebrowser.c File Reference
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
#include <shobjidl.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <browseui_undoc.h>
Include dependency graph for filebrowser.c:

Go to the source code of this file.

Functions

int _tmain (int argc, _TCHAR *argv[])
 

Function Documentation

◆ _tmain()

int _tmain ( int  argc,
_TCHAR argv[] 
)

Definition at line 30 of file filebrowser.c.

31 {
32  EXPLORER_CMDLINE_PARSE_RESULTS parseResults = { 0 };
33 
34  if (SHExplorerParseCmdLine(&parseResults))
35  {
37  parseResults.nCmdShow = SW_SHOWNORMAL;
38  return SHCreateFromDesktop(&parseResults);
39  }
40 
41  if (parseResults.strPath)
42  SHFree(parseResults.strPath);
43 
44  if (parseResults.pidlPath)
45  ILFree(parseResults.pidlPath);
46 
47  if (parseResults.pidlRoot)
48  ILFree(parseResults.pidlRoot);
49 
50  return 0;
51 }
void WINAPI ILFree(LPITEMIDLIST pidl)
Definition: pidl.c:925
BOOL WINAPI SHCreateFromDesktop(ExplorerCommandLineParseResults *parseResults)
Definition: desktopipc.cpp:612
UINT_PTR WINAPI SHExplorerParseCmdLine(ExplorerCommandLineParseResults *pInfo)
#define SW_SHOWNORMAL
Definition: winuser.h:764
void WINAPI SHFree(LPVOID pv)
Definition: shellole.c:331
#define SH_EXPLORER_CMDLINE_FLAG_SEPARATE