ReactOS 0.4.15-dev-7924-g5949c20
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}
#define SH_EXPLORER_CMDLINE_FLAG_SEPARATE
BOOL WINAPI SHCreateFromDesktop(_In_ PEXPLORER_CMDLINE_PARSE_RESULTS parseResults)
Definition: desktopipc.cpp:606
void WINAPI SHFree(LPVOID pv)
Definition: shellole.c:326
UINT_PTR WINAPI SHExplorerParseCmdLine(_Out_ PEXPLORER_CMDLINE_PARSE_RESULTS pInfo)
void WINAPI ILFree(LPITEMIDLIST pidl)
Definition: pidl.c:938
#define SW_SHOWNORMAL
Definition: winuser.h:770