English
Source / code snippets

lay out left Lnk Verknüpfungen

 
LNK (Verknüpfungen; left) lay out, a Variation of Andreas Miethes [...]  

CompileMarkSeparation
dEf CoCreateInstance(5)    ! OLE32,CoCreateInstance
dEf CoInitialize(1)        ! OLE32,CoInitialize
dEf CoUnInitialize(0)      ! OLE32,CoUninitialize
dEf GSFP(4) ! Shell32,SHGetSpecialFolderPathA
dEf MultiByteToWideChar(6) ! Kernel32,MultiByteToWideChar
CreateLink
Declare Pshell&,PFile&,Command&,LinkFile$,WideFile$
Parameters LinkFile$,TargetFile$,Description$,WorkingDirectory$,Arguments$,IconFile$,IconNo &
Dim CLSID_IShellLink#,16
Long CLSID_IShellLink#,0 = $00021401
Word CLSID_IShellLink#,4 = $0000
Word CLSID_IShellLink#,6 = $0000
Byte CLSID_IShellLink#,8 = $C0
Byte CLSID_IShellLink#,9 = $00
Byte CLSID_IShellLink#,10 = $00
Byte CLSID_IShellLink#,11 = $00
Byte CLSID_IShellLink#,12 = $00
Byte CLSID_IShellLink#,13 = $00
Byte CLSID_IShellLink#,14 = $00
Byte CLSID_IShellLink#,15 = $46
Dim IID_IShellLink#,16
Long IID_IShellLink#,0 = $000214EE
Word IID_IShellLink#,4 = $0000
Word IID_IShellLink#,6 = $0000
Byte IID_IShellLink#,8 = $C0
Byte IID_IShellLink#,9 = $00
Byte IID_IShellLink#,10 = $00
Byte IID_IShellLink#,11 = $00
Byte IID_IShellLink#,12 = $00
Byte IID_IShellLink#,13 = $00
Byte IID_IShellLink#,14 = $00
Byte IID_IShellLink#,15 = $46
Dim IID_IPersistFile#,16
Long IID_IPersistFile#,0 = $0000010b
Word IID_IPersistFile#,4 = $0000
Word IID_IPersistFile#,6 = $0000
Byte IID_IPersistFile#,8 = $C0
Byte IID_IPersistFile#,9 = $00
Byte IID_IPersistFile#,10 = $00
Byte IID_IPersistFile#,11 = $00
Byte IID_IPersistFile#,12 = $00
Byte IID_IPersistFile#,13 = $00
Byte IID_IPersistFile#,14 = $00
Byte IID_IPersistFile#,15 = $46
CoInitialize(0)
CoCreateInstance(CLSID_IShellLink#,0,1,IID_IShellLink#,Addr(PShell&))
Command& = Long(Pshell&,0)
CALL(LONG(COMMAND&,0),PShell&,IID_IPersistFile#,Addr(PFile&))
CALL(LONG(COMMAND&,&PShell_SetPath),PShell&,Addr(TargetFile$))
CALL(LONG(COMMAND&,&PShell_SetDescription),PShell&,Addr(Description$))
CALL(LONG(COMMAND&,&PShell_SetWorkingDirectory),PShell&,Addr(WorkingDirectory$) )
CALL(LONG(COMMAND&,&PShell_SetArguments),PShell&,Addr(Arguments$))
CALL(LONG(COMMAND&,&PShell_SetIconLocation),PShell&,Addr(IconFile$),IconNo&)
WideFile$ = Space$(Len(LinkFile$)*2)
MultiByteToWideChar(0,1,addr(LinkFile$),-1,addr(WideFile$),Len(WideFile$))
Command& = Long(PFile&,0)
CALL(LONG(COMMAND&,&PFile_Save),PFile&,Addr(WideFile$),1)
Command& = Long(PShell&,0)
CALL(LONG(COMMAND&,&PShell_Release),PShell&)
Command& = Long(PFile&,0)
CALL(LONG(COMMAND&,&PFile_Release),PFile&)
CoUnInitialize()
Dispose CLSID_IShellLink#
Dispose IID_IShellLink#
Dispose IID_IPersistFile#

EndProc

GSFP(0,ADDR(LinkFile$),2,0)
CreateLink LinkFile$,TargetFile$,Description$+ started,WorkingDirectory$,Arguments$,IconFile$,IconNo&
 
06/16/04  
 




Andreas
Miethe


look on, one old Known !
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
06/16/04  
 



Joar say Andreas, stammte the Grundstock from you?

PS: your [...]  rockt.

iF
 
06/16/04  
 




Andreas
Miethe


[quote:3bc81d68d0=iF (!ReGeXiT)]Joar say Andreas, stammte the Grundstock from you?

PS: your [...]  rockt.

iF [/quote:3bc81d68d0]
Yes, see [...] 
But really no trouble.
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
06/16/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.904 Views

Untitledvor 0 min.
Uwe Lang01/29/22
Walter12/29/18
Andre Rohland02/08/18
E.T.08/20/14
More...

Themeninformationen

this Topic has 2 subscriber:

Andreas Miethe (2x)
unbekannt (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie