IDirectXFileSaveObject::SaveTemplates method
Saves templates to a DirectX file. Deprecated.
Syntax
HRESULT SaveTemplates(
[in] DWORD cTemplates,
[in] const GUID **ppguidTemplates
);
Parameters
-
cTemplates [in]
-
Type: DWORD
Total number of templates to save.
-
ppguidTemplates [in]
-
Type: const GUID**
Address of a pointer to an array of the GUIDs for all templates to save.
Return value
Type: HRESULT
If the method succeeds, the return value is DXFILE_OK. If the method fails, the return value can be DXFILEERR_BADVALUE.
Remarks
The following code fragment provides an example call to IDirectXFileSaveObject::SaveTemplates and example contents for the array to which ppguidTemplates points.
IDirectXFileSaveObject * pDXFileSaveObject;
const GUID *aIds[] = {
&DXFILEOBJ_SimpleData,
&DXFILEOBJ_ArrayData,
&DXFILEOBJ_RestrictedData};
hr = pDXFileSaveObject->SaveTemplates(3, aIds);
After using this method to save the templates, use the IDirectXFileSaveObject::CreateDataObject method to create a data object.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also