ASSOCF enumeration
Provides information to the IQueryAssociations interface methods.
Syntax
typedef enum { ASSOCF_NONE = 0x00000000, ASSOCF_INIT_NOREMAPCLSID = 0x00000001, ASSOCF_INIT_BYEXENAME = 0x00000002, ASSOCF_OPEN_BYEXENAME = 0x00000002, ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004, ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008, ASSOCF_NOUSERSETTINGS = 0x00000010, ASSOCF_NOTRUNCATE = 0x00000020, ASSOCF_VERIFY = 0x00000040, ASSOCF_REMAPRUNDLL = 0x00000080, ASSOCF_NOFIXUPS = 0x00000100, ASSOCF_IGNOREBASECLASS = 0x00000200, ASSOCF_INIT_IGNOREUNKNOWN = 0x00000400, ASSOCF_INIT_FIXED_PROGID = 0x00000800, ASSOCF_IS_PROTOCOL = 0x00001000 } ASSOCF;
Constants
- ASSOCF_NONE
-
None of the following options are set.
- ASSOCF_INIT_NOREMAPCLSID
-
Instructs IQueryAssociations interface methods not to map CLSID values to ProgID values.
- ASSOCF_INIT_BYEXENAME
-
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.
- ASSOCF_OPEN_BYEXENAME
-
Identical to ASSOCF_INIT_BYEXENAME.
- ASSOCF_INIT_DEFAULTTOSTAR
-
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.
- ASSOCF_INIT_DEFAULTTOFOLDER
-
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.
- ASSOCF_NOUSERSETTINGS
-
Specifies that only HKEY_CLASSES_ROOT should be searched, and that HKEY_CURRENT_USER should be ignored.
- ASSOCF_NOTRUNCATE
-
Specifies that the return string should not be truncated. Instead, return an error value and the required size for the complete string.
- ASSOCF_VERIFY
-
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.
- ASSOCF_REMAPRUNDLL
-
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.
- ASSOCF_NOFIXUPS
-
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.
- ASSOCF_IGNOREBASECLASS
-
Specifies that the BaseClass value should be ignored.
- ASSOCF_INIT_IGNOREUNKNOWN
-
Introduced in Windows 7. Specifies that the "Unknown" ProgID should be ignored; instead, fail.
- ASSOCF_INIT_FIXED_PROGID
-
Introduced in Windows 8.
- ASSOCF_IS_PROTOCOL
-
Introduced in Windows 8.
Requirements
|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012