Accueil > Forum > > > > trouver le chemin du bureau ou menu demarrer
trouver le chemin du bureau ou menu demarrer
vendredi 6 décembre 2002 à 15:20:11 |
trouver le chemin du bureau ou menu demarrer

Cendra
|
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
vendredi 6 décembre 2002 à 20:56:26 |
Re : trouver le chemin du bureau ou menu demarrer

gblade
|
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
vendredi 6 décembre 2002 à 21:48:19 |
Re : trouver le chemin du bureau ou menu demarrer

Cendra
|
bin je trouve que les .IF simplifient la source :p et surtout pas besoin de taper des cmp , lol :)
------------------------------- Réponse au message : -------------------------------
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
vendredi 6 décembre 2002 à 21:53:55 |
Re : trouver le chemin du bureau ou menu demarrer

Cendra
|
en cherchant bien avec le nom de la fonction que tu m'as indiqué, j'ai trouvé plus d'infos :) encore merci ;)
- la fonction : SHGetSpecialFolderLocation - les parametres : [ · hwndOwner Handle of the owner window that the client should specify if it displays a dialog box or message box.
· nFolder Value specifying the folder to retrieve the location of. This parameter can be one of the following values: CSIDL_BITBUCKET Recycle bin ? file system directory containing file objects in the user?s recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it. CSIDL_COMMON_DESKTOP File system directory that contains files and folders that appear on the desktop for all users. CSIDL_COMMON_PROGRAMS File system directory that contains the directories for the common program groups that appear on the Start menu for all users. CSIDL_COMMON_STARTMENU File system directory that contains the programs and folders that appear on the Start menu for all users. CSIDL_COMMON_STARTUP File system directory that contains the programs that appear in the Startup folder for all users. The system starts these programs whenever any user logs on to Windows NT or starts up Windows 95. CSIDL_CONTROLS Control Panel ? virtual folder containing icons for the control panel applications. CSIDL_DESKTOP Windows desktop ? virtual folder at the root of the name space. CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). CSIDL_DRIVES My Computer ? virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. CSIDL_FONTS Virtual folder containing fonts. CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood. CSIDL_NETWORK Network Neighborhood ? virtual folder representing the top level of the network hierarchy. CSIDL_PERSONAL File system directory that serves as a common respository for documents. CSIDL_PRINTERS Printers folder ? virtual folder containing installed printers. CSIDL_PROGRAMS File system directory that contains the user?s program groups (which are also file system directories). CSIDL_RECENT File system directory that contains the user?s most recently used documents. CSIDL_SENDTO File system directory that contains Send To menu items. CSIDL_STARTMENU File system directory containing Start menu items. CSIDL_STARTUP File system directory that corresponds to the user?s Startup program group. CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
· ppidl Address that receives a pointer to an item identifier list specifying the folder?s location relative to the root of the name space (the desktop). ] ------------------------------- Réponse au message : -------------------------------
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
vendredi 6 décembre 2002 à 23:44:06 |
Re : trouver le chemin du bureau ou menu demarrer

gblade
|
rahhh ah c dla ***** ce forum, menvoie pas mes messages un coup sur deux !!
bon je ferme la parenthese, euh c pas la bonne fonction lol c SHGetSpecialFolderPath (c Path et non Location c important ds la mesure ou at fonction recupere un ITEMIDLIST et al mienne une chaine ;) bon javais ecrit un detail de la fonction mais ce gentil forum me la (encore) effacer dc g aps le gout de tt retapper alors va voir a cette page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp tu y trouveras ton bonheur ;)
mais tu c sinon je pense que les .IF c pas de l'ASM puiske ton code n'est plsu assemble mais compile ;) pk si tu aimes ce genre de code tu devrais te mettre au C, tu seras heureux(-se) lol !
sinon ton install doit etre quasiment terminee now ;)
------------------------------- Réponse au message : -------------------------------
en cherchant bien avec le nom de la fonction que tu m'as indiqué, j'ai trouvé plus d'infos :) encore merci ;)
- la fonction : SHGetSpecialFolderLocation - les parametres : [ · hwndOwner Handle of the owner window that the client should specify if it displays a dialog box or message box.
· nFolder Value specifying the folder to retrieve the location of. This parameter can be one of the following values: CSIDL_BITBUCKET Recycle bin ? file system directory containing file objects in the user?s recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it. CSIDL_COMMON_DESKTOP File system directory that contains files and folders that appear on the desktop for all users. CSIDL_COMMON_PROGRAMS File system directory that contains the directories for the common program groups that appear on the Start menu for all users. CSIDL_COMMON_STARTMENU File system directory that contains the programs and folders that appear on the Start menu for all users. CSIDL_COMMON_STARTUP File system directory that contains the programs that appear in the Startup folder for all users. The system starts these programs whenever any user logs on to Windows NT or starts up Windows 95. CSIDL_CONTROLS Control Panel ? virtual folder containing icons for the control panel applications. CSIDL_DESKTOP Windows desktop ? virtual folder at the root of the name space. CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). CSIDL_DRIVES My Computer ? virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. CSIDL_FONTS Virtual folder containing fonts. CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood. CSIDL_NETWORK Network Neighborhood ? virtual folder representing the top level of the network hierarchy. CSIDL_PERSONAL File system directory that serves as a common respository for documents. CSIDL_PRINTERS Printers folder ? virtual folder containing installed printers. CSIDL_PROGRAMS File system directory that contains the user?s program groups (which are also file system directories). CSIDL_RECENT File system directory that contains the user?s most recently used documents. CSIDL_SENDTO File system directory that contains Send To menu items. CSIDL_STARTMENU File system directory containing Start menu items. CSIDL_STARTUP File system directory that corresponds to the user?s Startup program group. CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
· ppidl Address that receives a pointer to an item identifier list specifying the folder?s location relative to the root of the name space (the desktop). ] ------------------------------- Réponse au message : -------------------------------
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
samedi 7 décembre 2002 à 15:36:17 |
Re : trouver le chemin du bureau ou menu demarrer

Cendra
|
je viens de trouver une alternative a ces fonctions :) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
il y a plein de repertoires en plus ;) ------------------------------- Réponse au message : -------------------------------
rahhh ah c dla ***** ce forum, menvoie pas mes messages un coup sur deux !!
bon je ferme la parenthese, euh c pas la bonne fonction lol c SHGetSpecialFolderPath (c Path et non Location c important ds la mesure ou at fonction recupere un ITEMIDLIST et al mienne une chaine ;) bon javais ecrit un detail de la fonction mais ce gentil forum me la (encore) effacer dc g aps le gout de tt retapper alors va voir a cette page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp tu y trouveras ton bonheur ;)
mais tu c sinon je pense que les .IF c pas de l'ASM puiske ton code n'est plsu assemble mais compile ;) pk si tu aimes ce genre de code tu devrais te mettre au C, tu seras heureux(-se) lol !
sinon ton install doit etre quasiment terminee now ;)
------------------------------- Réponse au message : -------------------------------
en cherchant bien avec le nom de la fonction que tu m'as indiqué, j'ai trouvé plus d'infos :) encore merci ;)
- la fonction : SHGetSpecialFolderLocation - les parametres : [ · hwndOwner Handle of the owner window that the client should specify if it displays a dialog box or message box.
· nFolder Value specifying the folder to retrieve the location of. This parameter can be one of the following values: CSIDL_BITBUCKET Recycle bin ? file system directory containing file objects in the user?s recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it. CSIDL_COMMON_DESKTOP File system directory that contains files and folders that appear on the desktop for all users. CSIDL_COMMON_PROGRAMS File system directory that contains the directories for the common program groups that appear on the Start menu for all users. CSIDL_COMMON_STARTMENU File system directory that contains the programs and folders that appear on the Start menu for all users. CSIDL_COMMON_STARTUP File system directory that contains the programs that appear in the Startup folder for all users. The system starts these programs whenever any user logs on to Windows NT or starts up Windows 95. CSIDL_CONTROLS Control Panel ? virtual folder containing icons for the control panel applications. CSIDL_DESKTOP Windows desktop ? virtual folder at the root of the name space. CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). CSIDL_DRIVES My Computer ? virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. CSIDL_FONTS Virtual folder containing fonts. CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood. CSIDL_NETWORK Network Neighborhood ? virtual folder representing the top level of the network hierarchy. CSIDL_PERSONAL File system directory that serves as a common respository for documents. CSIDL_PRINTERS Printers folder ? virtual folder containing installed printers. CSIDL_PROGRAMS File system directory that contains the user?s program groups (which are also file system directories). CSIDL_RECENT File system directory that contains the user?s most recently used documents. CSIDL_SENDTO File system directory that contains Send To menu items. CSIDL_STARTMENU File system directory containing Start menu items. CSIDL_STARTUP File system directory that corresponds to the user?s Startup program group. CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
· ppidl Address that receives a pointer to an item identifier list specifying the folder?s location relative to the root of the name space (the desktop). ] ------------------------------- Réponse au message : -------------------------------
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
samedi 7 décembre 2002 à 16:00:54 |
Re : trouver le chemin du bureau ou menu demarrer

gblade
|
cool ;) moi jy connais pas grd chose au registre mais je me demande si c la mm cle pr tous les systemes win32 ?
------------------------------- Réponse au message : -------------------------------
je viens de trouver une alternative a ces fonctions :) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
il y a plein de repertoires en plus ;) ------------------------------- Réponse au message : -------------------------------
rahhh ah c dla ***** ce forum, menvoie pas mes messages un coup sur deux !!
bon je ferme la parenthese, euh c pas la bonne fonction lol c SHGetSpecialFolderPath (c Path et non Location c important ds la mesure ou at fonction recupere un ITEMIDLIST et al mienne une chaine ;) bon javais ecrit un detail de la fonction mais ce gentil forum me la (encore) effacer dc g aps le gout de tt retapper alors va voir a cette page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp tu y trouveras ton bonheur ;)
mais tu c sinon je pense que les .IF c pas de l'ASM puiske ton code n'est plsu assemble mais compile ;) pk si tu aimes ce genre de code tu devrais te mettre au C, tu seras heureux(-se) lol !
sinon ton install doit etre quasiment terminee now ;)
------------------------------- Réponse au message : -------------------------------
en cherchant bien avec le nom de la fonction que tu m'as indiqué, j'ai trouvé plus d'infos :) encore merci ;)
- la fonction : SHGetSpecialFolderLocation - les parametres : [ · hwndOwner Handle of the owner window that the client should specify if it displays a dialog box or message box.
· nFolder Value specifying the folder to retrieve the location of. This parameter can be one of the following values: CSIDL_BITBUCKET Recycle bin ? file system directory containing file objects in the user?s recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it. CSIDL_COMMON_DESKTOP File system directory that contains files and folders that appear on the desktop for all users. CSIDL_COMMON_PROGRAMS File system directory that contains the directories for the common program groups that appear on the Start menu for all users. CSIDL_COMMON_STARTMENU File system directory that contains the programs and folders that appear on the Start menu for all users. CSIDL_COMMON_STARTUP File system directory that contains the programs that appear in the Startup folder for all users. The system starts these programs whenever any user logs on to Windows NT or starts up Windows 95. CSIDL_CONTROLS Control Panel ? virtual folder containing icons for the control panel applications. CSIDL_DESKTOP Windows desktop ? virtual folder at the root of the name space. CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). CSIDL_DRIVES My Computer ? virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. CSIDL_FONTS Virtual folder containing fonts. CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood. CSIDL_NETWORK Network Neighborhood ? virtual folder representing the top level of the network hierarchy. CSIDL_PERSONAL File system directory that serves as a common respository for documents. CSIDL_PRINTERS Printers folder ? virtual folder containing installed printers. CSIDL_PROGRAMS File system directory that contains the user?s program groups (which are also file system directories). CSIDL_RECENT File system directory that contains the user?s most recently used documents. CSIDL_SENDTO File system directory that contains Send To menu items. CSIDL_STARTMENU File system directory containing Start menu items. CSIDL_STARTUP File system directory that corresponds to the user?s Startup program group. CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
· ppidl Address that receives a pointer to an item identifier list specifying the folder?s location relative to the root of the name space (the desktop). ] ------------------------------- Réponse au message : -------------------------------
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
samedi 7 décembre 2002 à 17:41:52 |
Re : trouver le chemin du bureau ou menu demarrer

Cendra
|
j'ai testé avec 98 , ME et 2000 il y a quelsques clefs en plus sous 2000 et ME mais c'est le meme emplacement dans la base de registre :)
------------------------------- Réponse au message : -------------------------------
cool ;) moi jy connais pas grd chose au registre mais je me demande si c la mm cle pr tous les systemes win32 ?
------------------------------- Réponse au message : -------------------------------
je viens de trouver une alternative a ces fonctions :) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
il y a plein de repertoires en plus ;) ------------------------------- Réponse au message : -------------------------------
rahhh ah c dla ***** ce forum, menvoie pas mes messages un coup sur deux !!
bon je ferme la parenthese, euh c pas la bonne fonction lol c SHGetSpecialFolderPath (c Path et non Location c important ds la mesure ou at fonction recupere un ITEMIDLIST et al mienne une chaine ;) bon javais ecrit un detail de la fonction mais ce gentil forum me la (encore) effacer dc g aps le gout de tt retapper alors va voir a cette page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp tu y trouveras ton bonheur ;)
mais tu c sinon je pense que les .IF c pas de l'ASM puiske ton code n'est plsu assemble mais compile ;) pk si tu aimes ce genre de code tu devrais te mettre au C, tu seras heureux(-se) lol !
sinon ton install doit etre quasiment terminee now ;)
------------------------------- Réponse au message : -------------------------------
en cherchant bien avec le nom de la fonction que tu m'as indiqué, j'ai trouvé plus d'infos :) encore merci ;)
- la fonction : SHGetSpecialFolderLocation - les parametres : [ · hwndOwner Handle of the owner window that the client should specify if it displays a dialog box or message box.
· nFolder Value specifying the folder to retrieve the location of. This parameter can be one of the following values: CSIDL_BITBUCKET Recycle bin ? file system directory containing file objects in the user?s recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it. CSIDL_COMMON_DESKTOP File system directory that contains files and folders that appear on the desktop for all users. CSIDL_COMMON_PROGRAMS File system directory that contains the directories for the common program groups that appear on the Start menu for all users. CSIDL_COMMON_STARTMENU File system directory that contains the programs and folders that appear on the Start menu for all users. CSIDL_COMMON_STARTUP File system directory that contains the programs that appear in the Startup folder for all users. The system starts these programs whenever any user logs on to Windows NT or starts up Windows 95. CSIDL_CONTROLS Control Panel ? virtual folder containing icons for the control panel applications. CSIDL_DESKTOP Windows desktop ? virtual folder at the root of the name space. CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). CSIDL_DRIVES My Computer ? virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. CSIDL_FONTS Virtual folder containing fonts. CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood. CSIDL_NETWORK Network Neighborhood ? virtual folder representing the top level of the network hierarchy. CSIDL_PERSONAL File system directory that serves as a common respository for documents. CSIDL_PRINTERS Printers folder ? virtual folder containing installed printers. CSIDL_PROGRAMS File system directory that contains the user?s program groups (which are also file system directories). CSIDL_RECENT File system directory that contains the user?s most recently used documents. CSIDL_SENDTO File system directory that contains Send To menu items. CSIDL_STARTMENU File system directory containing Start menu items. CSIDL_STARTUP File system directory that corresponds to the user?s Startup program group. CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
· ppidl Address that receives a pointer to an item identifier list specifying the folder?s location relative to the root of the name space (the desktop). ] ------------------------------- Réponse au message : -------------------------------
hehe j'ai encore la réponse semblerait-il lol alors c super simple pr trouver le chemin du bureau ou du menu demarrer fo utiliser la fonction SHGetSpecialFolder elle prend 4 paramètres, le premier et le dernier devrait tjrs rester a zero pr ce ke tu vx faire le second est un pointeur vers une chaine ou va etre stocker le chemin et le 3e nest autre que l'ID CSIDL du dossier, les differents CSIDL necessaires ds ce cas sont CSIDL_DESKTOPDIRECTORY et CSIDL_STARTUP je crois ;) nutilise pas CSIDL_DESKTOP car il existe masi c pas la mm chose lol la fonction va echouer si tu fe ca ;) pk CSIDL_DESKTOP tt sourt designe le repertoire virtuel dc il na pas de chemin
push 0 push CSIDL_DESKTOPDIRECTORY push var_chaine push 0 call SHGetSpecialFolder
la lib a linker c SHELL32.LIB (et pas SHLOBJ.LIB ni SHFOLDER.LIB qui nexistent pas)
voila c tt mais une question qua pas grd chose avoir avec ca, g vu ds tes deux sources que tu utilisais les .IF et autres .ELSE, pkoi ? je vx dire que ca na pas grd interet lol
------------------------------- Réponse au message : -------------------------------
voila apres la creation de raccourcis , je cherche a les placer sur le bureau , mais j'ai pas trouver comment localiser le dossier...
|
|
Cette discussion est classée dans : menu, trouver, bureau, chemin, demarrer
Répondre à ce message
Sujets en rapport avec ce message
fichiers ressources [ par illupo ]
salut, p'ti nouveau en assembleur...J'utilise les tutoriaux d'iczelion pour debuter.je bug à un endroit, il dit d'utiliser des fichiers ressources.Mai
Ou trouver la source de msn messenger ??? [ par FATALBILLAL ]
Bonjour a tous,Je débute et je ne sais pas du tout comment faire pour changer ou modifier une source.Je suis vivement intéressé et j'aimerai être info
[BAT] Variable système (menu démarrage, programme files, ..) [ par nitrique ]
Bonjour a tous, Ne sachant trop ou poster ce genre de question, merci de m'indiquer le forum le plus approprié si je me suis trompé. Je dois faire un
demarrer MBR [ par henri12 ]
je demarre d une cle usb sous dos avant le lancement de la mbr du disque durje voudrais qu il lance la mbr de mon disque dur sans redemarrer a l aide
Le Savoir c'est le Pouvoir... [ par ScSami ]
Bien l'bonjour à toutes et tous,Je me pose une grande question... Pourquoi n'y a-t-il aucun tuto sur ce site ???Autrement dit, et pour poser la tradit
Où pourrais-je trouver des domaines ou sites web français? [ par alain6a ]
Bonjour,J'ai besoin de plusieurs sites web et domaines français ou de l'espace de lien texte sur un site français pour le développement de mes projets
Probleme creation menu BATCH [ par shw3ch ]
Je désire créer un menu batch afin de récupérer des fichiers sur un ftp. Par exemple: _ blabla.bla => Tapez 1 _ blibli.bli => Tapez 2 et que ça
Livres en rapport
|
Derniers Blogs
WP7 5K BELGIUM CHALLENGEWP7 5K BELGIUM CHALLENGE par junarnoalg
Microsoft Belgique a le plaisir de vous annoncer le lancement du
Challenge Windows Phone 7
. Celui-ci se déroule du 12 juillet au 30 novembre 2010 et vous donne l'opportunit...
Cliquez pour lire la suite de l'article par junarnoalg LES MONADES POUR LES NULSLES MONADES POUR LES NULS par mdufourneaudravel
Avec l'annonce de F#, je me suis intéressé de plus en plus à la programmation fonctionnelle, je suis donc rapidement tombé sur les " monades ", mais malgré la lecture de plusieurs articles, j'étais resté perméable à leur concept. C'est désormais fini, grâ...
Cliquez pour lire la suite de l'article par mdufourneaudravel [WP7] AJOUTER DES IMAGES DANS LA MEDIA LIBRARY D'UN WINDOWS PHONE 7[WP7] AJOUTER DES IMAGES DANS LA MEDIA LIBRARY D'UN WINDOWS PHONE 7 par Audrey
L'émulateur Windows Phone 7, fourni avec la version Beta des outils développeurs n'inclut aucune image dans sa bibliothèque. Pas très pratique de tester son application lorsque l'on souhaite que l'utilisateur puisse choisir une image présente dans le télé...
Cliquez pour lire la suite de l'article par Audrey VIVE LES MOCKS ET LES POCOSVIVE LES MOCKS ET LES POCOS par vLabz
J'observe régulièrement autour de moi de la confusion à propos de ces deux termes et j'aimerais juste rappeler ce qu'ils signifient. Je ne suis bien sûr pas le mieux placé pour faire une leçon mais je vais faire de mon mieux pour mettre en valeur ce q...
Cliquez pour lire la suite de l'article par vLabz [WF4] WORKFLOW AND CUSTOM ACTIVITIES - BEST PRACTICES (4/5)[WF4] WORKFLOW AND CUSTOM ACTIVITIES - BEST PRACTICES (4/5) par JeremyJeanson
Vendredi dernier Microsoft a publié le quatrième épisode des bonnes pratiques pour coder ses activités custom dans WF4 : endpoint.tv - Workflow and Custom Activities - Best Practices (Part 4) . Tout comme pour les précédents épisodes, j'ai pris le temps d...
Cliquez pour lire la suite de l'article par JeremyJeanson
Logiciels
Crystal Report (11)CRYSTAL REPORT (11)Crystal Reports est un outil de reporting souple et puissant, vous pouvez très facilement consult... Cliquez pour télécharger Crystal Report Academy System (12.0.2.0)ACADEMY SYSTEM (12.0.2.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft iPod Vidéo Convertisseur 6 (6.0.3.0419)XILISOFT IPOD VIDéO CONVERTISSEUR 6 (6.0.3.0419)Xilisoft iPod Vidéo Convertisseur est un outil puissant de conversion d'iPod, facile à utiliser. ... Cliquez pour télécharger Xilisoft iPod Vidéo Convertisseur 6 Xilisoft iPhone Vidéo Convertisseur 6 (6.0.3.0419)XILISOFT IPHONE VIDéO CONVERTISSEUR 6 (6.0.3.0419)Xilisoft iPhone Vidéo Convertisseur est le meilleur logiciel de conversion iPhone qui peut facile... Cliquez pour télécharger Xilisoft iPhone Vidéo Convertisseur 6 Xilisoft iPad Vidéo Convertisseur 6 (6.0.3.0419)XILISOFT IPAD VIDéO CONVERTISSEUR 6 (6.0.3.0419)Il s'agit d'un logiciel polyvalent pour convertir les formats vidéo/audio populaires en formats p... Cliquez pour télécharger Xilisoft iPad Vidéo Convertisseur 6
|