public interface Shell32 extends StdCallLibrary
StdCallLibrary.StdCallCallback
Library.Handler
Modifier and Type | Field and Description |
---|---|
static Shell32 |
INSTANCE |
FUNCTION_MAPPER, STDCALL_CONVENTION
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
int |
SHFileOperation(ShellAPI.SHFILEOPSTRUCT fileop)
This function can be used to copy, move, rename, or delete a file system object.
|
WinNT.HRESULT |
SHGetDesktopFolder(PointerByReference ppshf)
Retrieves the IShellFolder interface for the desktop folder, which is the root of the Shell's namespace.
|
WinNT.HRESULT |
SHGetFolderPath(WinDef.HWND hwndOwner,
int nFolder,
WinNT.HANDLE hToken,
WinDef.DWORD dwFlags,
char[] pszPath)
Takes the CSIDL of a folder and returns the path.
|
static final Shell32 INSTANCE
int SHFileOperation(ShellAPI.SHFILEOPSTRUCT fileop)
fileop
- Address of an SHFILEOPSTRUCT structure that contains information this function
needs to carry out the specified operation.WinNT.HRESULT SHGetFolderPath(WinDef.HWND hwndOwner, int nFolder, WinNT.HANDLE hToken, WinDef.DWORD dwFlags, char[] pszPath)
hwndOwner
- Handle to an owner window. This parameter is typically set to NULL. If it is not NULL,
and a dial-up connection needs to be made to access the folder, a user interface (UI)
prompt will appear in this window.nFolder
- A CSIDL value that identifies the folder whose path is to be retrieved. Only real
folders are valid. If a virtual folder is specified, this function will fail. You can
force creation of a folder with SHGetFolderPath by combining the folder's CSIDL with
CSIDL_FLAG_CREATE.hToken
- An access token that can be used to represent a particular user.dwFlags
- Flags to specify which path is to be returned.pszPath
- Pointer to a null-terminated string of length MAX_PATH which will receive the path.
If an error occurs or S_FALSE is returned, this string will be empty.WinNT.HRESULT SHGetDesktopFolder(PointerByReference ppshf)
ppshf
- A place to put the IShellFolder interface pointer