0x00000003 DWORD_METADATA Specifies all DWORD (unsigned 32-bit integer) data. 0x00000001 EXPANDSZ_METADATA Specifies all data that consists of a string that includes the terminating null character and which contains environment variables that are not expanded. 0x00000004 MULTISZ_METADATA Specifies all data represented as an array of strings, where each string includes the terminating null character, and the array itself is terminated by two terminating null 0x00000005 characters. STRING_METADATA Specifies all data consisting of an ASCII string that includes the terminating null character. 0x00000002 dwMDDataLen: An unsigned integer that specifies the length of the data in bytes. If the data is a string, this value includes the terminating null character. For lists of strings, this includes an additional terminating null character after the final string (double terminating null characters). For example, the length of a string list containing two strings would be as follows. (wcslen(stringA) + 1) * sizeof(WCHAR) + (wcslen(stringB) + 1) * sizeof(WCHAR) + 1 * sizeof(WCHAR) In-process clients need to specify only when setting binary data in the metabase. dwMDDataLen Remote clients MUST specify dwMDDataLen for all data types. When setting data in the metabase, this member contains a pointer to a buffer that pbMDData: the data. When getting data from the metabase, this member contains a pointer to a buffer that will receive the data. dwMDDataTag: A reserved member that is currently unused. METADATA_MASTER_ROOT_HANDLE This predefined handle points to the root of the configuration storage tree. It is treated as a valid handle for operations that require a opened with the METADATA_PERMISSION_READ bit flag specified in section . It is represented by a null handle and declared in the following way. #define METADATA_MASTER_ROOT_HANDLE 0 MD_APP_ROOT MD_APP_ROOT is a data object defined by a structure. The following METADATA_RECORD fields define MD_APP_ROOT. Field Value dwMDIdentifier MD_APP_ROOT 0x00000838 dwMDAttributes METADATA_INHERIT 0x00000001
0x00000003 DWORD_METADATA 0x00000001 Specifies all DWORD (unsigned 32-bit integer) data. EXPANDSZ_METADATA 0x00000004 Specifies all data that consists of a string that includes the terminating null character and which contains environment variables that are not expanded. MULTISZ_METADATA 0x00000005 Specifies all data represented as an array of strings, where each string includes the terminating null character, and the array itself is terminated by two terminating null characters. STRING_METADATA 0x00000002 Specifies all data consisting of an ASCII string that includes the terminating null character. dwMDDataLen: An unsigned integer that specifies the length of the data in bytes. If the data is a string, this value includes the terminating null character. For lists of strings, this includes an additional terminating null character after the final string (double terminating null characters). For example, the length of a string list containing two strings would be as follows. (wcslen(stringA) + 1) * sizeof(WCHAR) + (wcslen(stringB) + 1) * sizeof(WCHAR) + 1 * sizeof(WCHAR) In-process clients need to specify dwMDDataLen only when setting binary data in the metabase. Remote clients MUST specify dwMDDataLen for all data types. pbMDData: When setting data in the metabase, this member contains a pointer to a buffer that the data. When getting data from the metabase, this member contains a pointer to a buffer that will receive the data. dwMDDataTag: A reserved member that is currently unused. METADATA_MASTER_ROOT_HANDLE This predefined handle points to the root of the configuration storage tree. It is treated as a valid handle for operations that require a opened with the METADATA_PERMISSION_READ bit flag specified in section . It is represented by a null handle and declared in the following way. #define METADATA_MASTER_ROOT_HANDLE 0 MD_APP_ROOT MD_APP_ROOT is a data object defined by a structure. The following METADATA_RECORD fields define MD_APP_ROOT. Field Value dwMDIdentifier MD_APP_ROOT 0x00000838 dwMDAttributes METADATA_INHERIT 0x00000001