System macro definition of system folder path

Source: Internet
Author: User
Tags internet cache

Const csidl_admintools as long = & h30 '(User) \ Start Menu \ Program \ System Management Tool
Const csidl_altstartup as long = & h1d 'unlocalized startup
Const csidl_appdata as long = & H1a '(User) \ Application Data
Const csidl_bitbucket as long = & ha '(desktop) \ Recycle Bin
Const csidl_controls as long = & H3 'My computer \ Control Panel
Const csidl_cookies as long = & h21
Const csidl_desktop as long = & h0' Desktop
Const csidl_topics topdirectory as long = & h10' (User) \ Desktop
Const csidl_favorites as long = & H6 '(User) \ personalized settings
Const csidl_fonts as long = & h14' WINDOWS \ font
Const csidl_history as long = & h22.
Const csidl_internet as long = & H1 'IE (icon on the desktop
Const csidl_internet_cache as long = & h20' Internet cache folder
Const csidl_local_appdata as long = & H1c '(User) \ Local Settings \ Application Data
Const csidl_drives as long = & H11 'My Computer
Const csidl_mypictures as long = & h27 'C: \ Program Files \ my pictures
Const csidl_nethood as long = & H13 '(User) \ elements in network neighbors
Const csidl_network as long = & H12 'NETWORK neighbors
Const csidl_printers as long = & H4 'My computer \ printer
Const csidl_printhood as long = & H1B '(User) \ printer connection
Const csidl_personal as long = & H5 'My Documents
Const csidl_program_files as long = & h26 'C: \ Program Files
Const csidl_program_filesx86 as long = & h2a' x86 apps (alpha) program file directory
Const csidl_programs as long = & H2 'Start Menu \ Program
Const csidl_program_files_common as long = & H2B 'program files \ common
Const csidl_program_files_commonx86 as long = & h2c 'x86 \ Program Files \ common
Const csidl_recent as long = & H8 '(User) \ recent record directory
Const csidl_sendto as long = & h9' (User) \ send to directory
Const csidl_startmenu as long = & HB '(User) \ Start Menu
Const csidl_startup as long = & H7 'Start Menu \ Program \ Start
Const csidl_system as long = & H25 'System folder
Const csidl_systemx86 as long = & h29' x86 apps (alpha) system folder
Const csidl_templates as long = & H15
Const csidl_profile as long = & H28 'user overview folder
Const csidl_windows as long = & h24 'Windows directory or sysroot ()
Const csidl_common_admintools as long = & h2f '(all users) \ Start Menu \ Program \ System Management Tool
Const csidl_common_altstartup as long = & h1e 'unlocalized General start
Const csidl_common_appdata as long = & H23 '(all users) \ Application Data
Const csidl_common_topics topdirectory as long = & H19 '(all users) \ Desktop
Const csidl_common_documents as long = & h2e '(all users) \ documentation
Const csidl_common_favorites as long = & h1f' (all users) \ Settings
Const csidl_common_programs as long = & H17 '(all users) \ Program
Const csidl_common_startmenu as long = & h16' (all users) \ Start Menu
Const csidl_common_startup as long = & H18 '(all users) \ Start
Const csidl_common_templates as long = & h2d '(all users) \ temporary

 

# Include <shlobj. h> # include <shlwapi. h> # include <windows. h> # include <stdio. h> void main (void) {char datadir [max_path]; int Len; memset (datadir, 0, sizeof (datadir); If (succeeded (shgetfolderpath (null, csidl_common_appdata, null, 0, datadir) pathappenda (datadir, "XXXX \ xxxx.txt"); // datadir \ XXXX \ xxxx.txt indicates lujin else return-1; len = strlen (datadir); argv [5] = (char *) malloc (strlen (datadir )); // argv [5] defines the variable pointer memset (argv [5], 0, strlen (datadir); strcpy (argv [5], datadir );}

 

System macro definition of system folder path

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.