다음을 통해 공유


DefaultSpoolDirectory

Provides the name of the spooler folder for the Print Spooler resource. The following table summarizes the attributes of the DefaultSpoolDirectory property.

Attribute Value
Data type Null-terminated Unicode string
Access Read/write
Status Required
Structure CLUSPROP_SZ
Maximum None (but see Maximum Property Size.)
Default NULL

Remarks

The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.

Examples

The property value portion of a property list entry for DefaultSpoolDirectory can be set with the following example code.

WCHAR                szDefaultSpoolDirData[] = L"C:\\ClusSpoolA";
CLUSPROP_SZ_DECLARE( DefaultSpoolDirValue, 
                     sizeof( szDefaultSpoolDirData ) / sizeof( WCHAR ) );

DefaultSpoolDirValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
DefaultSpoolDirValue.cbLength  = sizeof( szDefaultSpoolDirData );
StringCbCopy( DefaultSpoolDirValue.sz, 
              DefaultSpoolDirValue.cbLength, 
              szDefaultSpoolDirData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

See also

Print Spooler Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE