|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.win32.com.impl.IUnknownImpl com.jniwrapper.win32.shell.impl.IShellLinkImpl
public class IShellLinkImpl
Implements IShellLink
interface
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl |
---|
com.jniwrapper.win32.com.impl.IUnknownImpl.MemoryBufferImpl |
Field Summary | |
---|---|
static com.jniwrapper.win32.com.types.CLSID |
CLSID_IShellLink
CLSID of the IShellLink |
static java.lang.String |
INTERFACE_IDENTIFIER
String representation of the IID of the IShellLink interface |
Fields inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl |
---|
DebugComfyJ, h, LICENSE_TYPE, PTR_NULL |
Fields inherited from class com.jniwrapper.Parameter |
---|
V |
Constructor Summary | |
---|---|
IShellLinkImpl()
Creates instance of the IShellLink |
|
IShellLinkImpl(com.jniwrapper.win32.com.types.ClsCtx dwClsContext)
Creates instance of the IShellLinkImpl from the CLSID equal
CLSID_IShellLink |
|
IShellLinkImpl(com.jniwrapper.win32.com.types.CLSID clsid,
com.jniwrapper.win32.com.types.ClsCtx dwClsContext)
Creates instance of the IShellLinkImpl from the specified CLSID |
|
IShellLinkImpl(com.jniwrapper.win32.com.types.CLSID clsid,
com.jniwrapper.win32.com.impl.IUnknownImpl pUnkOuter,
com.jniwrapper.win32.com.types.ClsCtx dwClsContext)
Creates instance of the IShellLinkImpl from the specified CLSID with the ability to aggregate component |
|
IShellLinkImpl(com.jniwrapper.win32.com.impl.IUnknownImpl that)
Creates instance of the IShellLinkImpl from the specified instance of IUnknownImpl or its descendant |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates copy of this instance |
com.jniwrapper.Str |
getArguments(com.jniwrapper.Int cch)
Returns the command-line arguments associated with a Shell link object. |
com.jniwrapper.Str |
getDescription(com.jniwrapper.Int cch)
Returns the description string for a Shell link object. |
com.jniwrapper.UInt16 |
getHotkey()
Returns the keyboard shortcut (hot key) for a Shell link object. |
void |
getIconLocation(com.jniwrapper.Str pszIconPath,
com.jniwrapper.Int cch,
com.jniwrapper.Int piIcon)
Returns the location (path and index) of the icon for a Shell link object. |
ItemIDList |
getIDList()
Returns the list of item identifiers for a Shell link object. |
com.jniwrapper.win32.com.types.IID |
getIID()
Returns IID of the interface ( CLSID_IShellLink ) |
void |
getPath(com.jniwrapper.Str pszFile,
com.jniwrapper.Int cch,
Win32FindData pfd,
com.jniwrapper.UInt32 fFlags)
Returns the path and file name of a Shell link object. |
com.jniwrapper.Int |
getShowCmd()
Returns the show command for a Shell link object. |
com.jniwrapper.Str |
getWorkingDirectory(com.jniwrapper.Int cch)
Returns the name of the working directory for a Shell link object. |
void |
resolve(Wnd hwnd,
com.jniwrapper.UInt32 fFlags)
Attempts to find the target of a Shell link, even if it has been moved or renamed. |
void |
setArguments(com.jniwrapper.Str pszArgs)
Sets the command-line arguments for a Shell link object. |
void |
setDescription(com.jniwrapper.Str pszName)
Sets the description for a Shell link object. |
void |
setHotkey(com.jniwrapper.UInt16 wHotkey)
Sets a keyboard shortcut (hot key) for a Shell link object. |
void |
setIconLocation(com.jniwrapper.Str pszIconPath,
com.jniwrapper.Int iIcon)
Sets the location (path and index) of the icon for a Shell link object. |
void |
setIDList(ItemIDList pidl)
Sets the pointer to an item identifier list (PIDL) for a Shell link object |
void |
setPath(com.jniwrapper.Str pszFile)
Sets the path and file name of a Shell link object. |
void |
setRelativePath(com.jniwrapper.Str pszPathRel,
com.jniwrapper.UInt32 dwReserved)
Sets the relative path to the Shell link object. |
void |
setShowCmd(com.jniwrapper.Int iShowCmd)
Sets the show command for a Shell link object. |
void |
setWorkingDirectory(com.jniwrapper.Str pszDir)
Sets the name of the working directory for a Shell link object. |
Methods inherited from class com.jniwrapper.win32.com.impl.IUnknownImpl |
---|
|
Methods inherited from class com.jniwrapper.Parameter |
---|
a, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jniwrapper.win32.com.IUnknown |
---|
addRef, isNull, queryInterface, release, setNull |
Methods inherited from interface com.jniwrapper.AutoDeleteParameter |
---|
isAutoDelete, setAutoDelete |
Field Detail |
---|
public static final java.lang.String INTERFACE_IDENTIFIER
public static final com.jniwrapper.win32.com.types.CLSID CLSID_IShellLink
Constructor Detail |
---|
public IShellLinkImpl()
IShellLink
public IShellLinkImpl(com.jniwrapper.win32.com.impl.IUnknownImpl that) throws com.jniwrapper.win32.com.ComException
IShellLinkImpl
from the specified instance of IUnknownImpl or its descendant
that
- Instance of IUnknownImpl or its descendant
com.jniwrapper.win32.com.ComException
public IShellLinkImpl(com.jniwrapper.win32.com.types.CLSID clsid, com.jniwrapper.win32.com.types.ClsCtx dwClsContext) throws com.jniwrapper.win32.com.ComException
IShellLinkImpl
from the specified CLSID
clsid
- CLSID of the componentdwClsContext
- The execution contexts in which an object is to be run
com.jniwrapper.win32.com.ComException
public IShellLinkImpl(com.jniwrapper.win32.com.types.CLSID clsid, com.jniwrapper.win32.com.impl.IUnknownImpl pUnkOuter, com.jniwrapper.win32.com.types.ClsCtx dwClsContext) throws com.jniwrapper.win32.com.ComException
IShellLinkImpl
from the specified CLSID with the ability to aggregate component
clsid
- CLSID of the componentpUnkOuter
- If NULL, indicates that the object is not being created as part of an aggregate.
If non-NULL, pointer to the aggregate object's IUnknown
interface (the controlling IUnknown)dwClsContext
- The execution contexts in which an object is to be run
com.jniwrapper.win32.com.ComException
public IShellLinkImpl(com.jniwrapper.win32.com.types.ClsCtx dwClsContext) throws com.jniwrapper.win32.com.ComException
IShellLinkImpl
from the CLSID equal
CLSID_IShellLink
dwClsContext
- The execution contexts in which an object is to be run
com.jniwrapper.win32.com.ComException
Method Detail |
---|
public void getPath(com.jniwrapper.Str pszFile, com.jniwrapper.Int cch, Win32FindData pfd, com.jniwrapper.UInt32 fFlags) throws com.jniwrapper.win32.com.ComException
getPath
in interface IShellLink
pszFile
- The string that receives the path and file name of the Shell
link object.cch
- The maximum number of characters to copy to the string pointed to by the
pszFile parameter.pfd
- The address of a Win32FindData
class that
receives information about the Shell link object. If this parameter is NULL, then no
additional information is returned.fFlags
- Flags that specify the type of path information to retrieve.
com.jniwrapper.win32.com.ComException
public ItemIDList getIDList() throws com.jniwrapper.win32.com.ComException
getIDList
in interface IShellLink
ItemIDList
class
com.jniwrapper.win32.com.ComException
public void setIDList(ItemIDList pidl) throws com.jniwrapper.win32.com.ComException
setIDList
in interface IShellLink
pidl
- The list of item identifiers, represented by
ItemIDList
class
com.jniwrapper.win32.com.ComException
public com.jniwrapper.Str getDescription(com.jniwrapper.Int cch) throws com.jniwrapper.win32.com.ComException
getDescription
in interface IShellLink
cch
- The maximum number of characters of string, which is being returned
com.jniwrapper.win32.com.ComException
public void setDescription(com.jniwrapper.Str pszName) throws com.jniwrapper.win32.com.ComException
setDescription
in interface IShellLink
pszName
- The description string for a Shell link object.
com.jniwrapper.win32.com.ComException
public com.jniwrapper.Str getWorkingDirectory(com.jniwrapper.Int cch) throws com.jniwrapper.win32.com.ComException
getWorkingDirectory
in interface IShellLink
cch
- The maximum number of characters of string, which is being returned
com.jniwrapper.win32.com.ComException
public void setWorkingDirectory(com.jniwrapper.Str pszDir) throws com.jniwrapper.win32.com.ComException
setWorkingDirectory
in interface IShellLink
pszDir
- The name of the working directory for a Shell link object.
com.jniwrapper.win32.com.ComException
public com.jniwrapper.Str getArguments(com.jniwrapper.Int cch) throws com.jniwrapper.win32.com.ComException
getArguments
in interface IShellLink
cch
- The maximum number of characters of string, which is being returned
com.jniwrapper.win32.com.ComException
public void setArguments(com.jniwrapper.Str pszArgs) throws com.jniwrapper.win32.com.ComException
setArguments
in interface IShellLink
pszArgs
- The command-line arguments string
com.jniwrapper.win32.com.ComException
public com.jniwrapper.UInt16 getHotkey() throws com.jniwrapper.win32.com.ComException
getHotkey
in interface IShellLink
com.jniwrapper.win32.com.ComException
public void setHotkey(com.jniwrapper.UInt16 wHotkey) throws com.jniwrapper.win32.com.ComException
setHotkey
in interface IShellLink
wHotkey
- The virtual key code
com.jniwrapper.win32.com.ComException
public com.jniwrapper.Int getShowCmd() throws com.jniwrapper.win32.com.ComException
getShowCmd
in interface IShellLink
com.jniwrapper.win32.com.ComException
public void setShowCmd(com.jniwrapper.Int iShowCmd) throws com.jniwrapper.win32.com.ComException
setShowCmd
in interface IShellLink
iShowCmd
- Value, which specifies the show command
com.jniwrapper.win32.com.ComException
public void getIconLocation(com.jniwrapper.Str pszIconPath, com.jniwrapper.Int cch, com.jniwrapper.Int piIcon) throws com.jniwrapper.win32.com.ComException
getIconLocation
in interface IShellLink
pszIconPath
- String that receives the path of the file containing the icon.cch
- The maximum number of characters to copy to the string pointed to
by the pszIconPath parameter.piIcon
- Value that receives the index of the icon.
com.jniwrapper.win32.com.ComException
public void setIconLocation(com.jniwrapper.Str pszIconPath, com.jniwrapper.Int iIcon) throws com.jniwrapper.win32.com.ComException
setIconLocation
in interface IShellLink
pszIconPath
- The path of the file containing the icon.iIcon
- The index of the icon.
com.jniwrapper.win32.com.ComException
public void setRelativePath(com.jniwrapper.Str pszPathRel, com.jniwrapper.UInt32 dwReserved) throws com.jniwrapper.win32.com.ComException
setRelativePath
in interface IShellLink
pszPathRel
- String that contains the new relative path. It should be a file name, not a
folder name.dwReserved
- Reserved. Set this parameter to zero.
com.jniwrapper.win32.com.ComException
public void resolve(Wnd hwnd, com.jniwrapper.UInt32 fFlags) throws com.jniwrapper.win32.com.ComException
resolve
in interface IShellLink
hwnd
- A handle to the window that the Shell will use as the parent for a dialog box.
The Shell displays the dialog box if it needs to prompt the user for more information
while resolving a Shell link.fFlags
- Action flags.
com.jniwrapper.win32.com.ComException
public void setPath(com.jniwrapper.Str pszFile) throws com.jniwrapper.win32.com.ComException
setPath
in interface IShellLink
pszFile
- String that contains the new path.
com.jniwrapper.win32.com.ComException
public com.jniwrapper.win32.com.types.IID getIID()
CLSID_IShellLink
)
getIID
in class com.jniwrapper.win32.com.impl.IUnknownImpl
CLSID_IShellLink
)public java.lang.Object clone()
clone
in class com.jniwrapper.win32.com.impl.IUnknownImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |