Shchangenoworkflow function declaration

Source: Internet
Author: User

After you operate the registry, you must call the shchangenoworkflow function (the unit file of this API function is shlobj) to notify Windows system updates.
Corresponding settings.
Winshellapi void winapi shchangenoworkflow (
Long weventid, // specify the Event Type
Uint uflags, // determine the mark for dwitem1 and dwitem2
Lpcvoid dwitem1,
Lpcvoid dwitem2
);
1. The values of weventid are as follows:
Shcn_assocchanged: Modify file association
Shcn_attributes: modifies the file attributes.
Sh-create: Create a new file
Sh-delete: delete an object.
Added a network drive.
Shcn_driveaddgui: Add a network drive through Gui
Shcn_driveremoved: detaches the network drive.
Shcn_interrupt: the event is executed as a system interruption.
Install detachable media, such as CD-ROM
Shnn_mediaremoved: unmount a detachable media, such as a CD-ROM
Sh-mkdir: create a directory
Shcn_netshare: Share resources on the network
Shcn_netunshare: Stop sharing resources on the network
Shcn_renamefolder: Change the folder name
Shcn_renameitem: Rename an item in the folder
Delete directory
Shcn_serverdisconnect: disconnected from the network server
Shcn_updatedir: updates the directory information.
Shcn_updateimage: change an image in the global image list of the system.
Shcn_updateitem: Change the printer or file list
3. This function does not return values.
2. The uflags value is as follows:
Shcnf_dword: dwitem1 and dwitem2 are DWORD type values.
Shcnf_flush: clears the System Event buffer and the system returns the result after processing the specified event.
Shcnf_flushnowait: clears the System Event buffer and returns immediately.
Shcnf_idlist: the addresses of dwitem1 and dwitem2 in the project identifier list
Shcnf_path: dwitem1 and dwitem2 are path addresses.
Shcnf_printer: dwitem1 and dwitem2 are friendly printer names

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.