AssocF Enumeration

Provides information to the IQueryAssociations interface methods.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum AssocF

Remarks

Members

None 0 None of the following options are set.
InitNoRemapClsid 1 Instructs IQueryAssociations interface methods not to map CLSID values to ProgID values.
InitByExeName 2 Identifies the value of the pwszAssoc parameter of IQueryAssociations::Init as an executable file name.

If this flag is not set, the root key will be set to the ProgID associated with the .exe key instead of the executable file's ProgID.

InitDefaultToStar 4 Specifies that when an IQueryAssociations method does not find the requested value under the root key, it should attempt to retrieve the comparable value from the * subkey.
InitDefaultToFolder 8 Specifies that when a IQueryAssociations method does not find the requested value under the root key, it should attempt to retrieve the comparable value from the Folder subkey.
NoUserSettings 16 Specifies that only HKEY_CLASSES_ROOT should be searched, and that HKEY_CURRENT_USER should be ignored.
NoTruncate 32 Specifies that the return string should not be truncated.

Instead, return an error value and the required size for the complete string.

Verify 64 Instructs IQueryAssociations methods to verify that data is accurate.

This setting allows IQueryAssociations methods to read data from the user's hard disk for verification.

For example, they can check the friendly name in the registry against the one stored in the .exe file.

Setting this flag typically reduces the efficiency of the method.

RemapRunDll 128 Instructs IQueryAssociations methods to ignore Rundll.exe and return information about its target.

Typically IQueryAssociations methods return information about the first .exe or .dll in a command string.

If a command uses Rundll.exe, setting this flag tells the method to ignore Rundll.exe and return information about its target.

NoFixUps 256 Instructs IQueryAssociations methods not to fix errors in the registry, such as the friendly name of a function not matching the one found in the .exe file.
IgnoreBaseClass 512 Specifies that the BaseClass value should be ignored.
IgnoreUnknown 1,024 (Introduced in Windows 7)

Specifies that the "Unknown" ProgID should be ignored; instead, fail.

InitFixedProgId 2,048 (Introduced in Windows 8)

Specifies that the supplied ProgID should be mapped using the system defaults, rather than the current user defaults.

IsProtocol 4,096 (Introduced in Windows 8)

Specifies that the value is a protocol, and should be mapped using the current user defaults.

InitForFile 8,192 (Introduced in Windows 8.1)

Specifies that the ProgID corresponds with a file extension based association.

Use this flag together with InitFixedProgId.

See Also