|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : trouver le chemin du bureau ou menu demarrer [ Archives / Aide a la programmation Windows ] (Cendra)
Informations & options pour cette discussion
|
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é 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
Livres en rapport
|
Téléchargements
Logiciels à télécharger sur le même thème :
|