uLib  User mode C/C++ extended API library for Win32 programmers.
ShellUtil.cpp File Reference
#include <uLib/Common.h>
#include <uLib/UtilFunc.h>
#include <uLib/Debug.h>
#include <uLib/StrFunc.h>

Go to the source code of this file.

Macros

#define SHF_INITIALIZED   0x0001
 
#define SHF_USE_OLE   0x0002
 
#define SHF_SHMALLOC   0x0004
 

Functions

bool ShellFuncInitialized ()
 
bool InitShellFunc (bool useOle, DWORD coFlag)
 
void DoneShellFunc ()
 
PVOID ShellFreeEx (PVOID pBlk)
 
LPITEMIDLIST GetPathNamePIDL (CSTR Dir, ULONG *pAttrib)
 
bool RecycleFile (CSTR Name, bool Confirm, bool Single)
 
DWORD GetDLLVersion (CSTR FName)
 
HRESULT Shell_CreateLink (CSTR LinkFilePathname, const PLINKDATA pd)
 
HRESULT Shell_ResolveLink (HWND hWnd, CSTR LinkFile, PLINKDATA pd)
 
HRESULT ShowShareFolderUI (HWND hParent, CSTR Path)
 Transmutable wrap for the strictly dynamic ntshrui.dll function. More...
 
HRESULT CreateStreamOnFile (_in CSTR FName, _out IStream **ppStrm, _out DWORD *pSize)
 
void InitTaskbarSupport ()
 
BOOL SetTrayIconNotification (UINT Action, HWND hNfy, UINT Id, HICON hIcon, CSTR Hint, UINT cbkMsg)
 

Variables

IMalloc * ShMalloc = NULL
 
UINT WM_TaskbarCreated = 0
 

Macro Definition Documentation

◆ SHF_INITIALIZED

#define SHF_INITIALIZED   0x0001

Definition at line 20 of file ShellUtil.cpp.

◆ SHF_USE_OLE

#define SHF_USE_OLE   0x0002

Definition at line 21 of file ShellUtil.cpp.

◆ SHF_SHMALLOC

#define SHF_SHMALLOC   0x0004

Definition at line 22 of file ShellUtil.cpp.

Function Documentation

◆ GetPathNamePIDL()

LPITEMIDLIST GetPathNamePIDL ( CSTR  Dir,
ULONG *  pAttrib 
)

Definition at line 105 of file ShellUtil.cpp.

◆ Shell_CreateLink()

HRESULT Shell_CreateLink ( CSTR  LinkFilePathname,
const PLINKDATA  pd 
)

Definition at line 180 of file ShellUtil.cpp.

◆ Shell_ResolveLink()

HRESULT Shell_ResolveLink ( HWND  hWnd,
CSTR  LinkFile,
PLINKDATA  pd 
)

Definition at line 239 of file ShellUtil.cpp.

◆ CreateStreamOnFile()

HRESULT CreateStreamOnFile ( _in CSTR  FName,
_out IStream **  ppStrm,
_out DWORD pSize 
)

Definition at line 395 of file ShellUtil.cpp.