IMonthlyDOWTrigger::get_WeeksOfMonth method (taskschd.h)
Gets or sets the weeks of the month during which the task runs.
This property is read/write.
HRESULT get_WeeksOfMonth( short *pWeeks );
The following table shows the mapping of the bitwise mask used by this property. Note that you can explicitly specify the last week of the month, regardless of what week it is, by specifying 0X10 (16).
|Week||Hex value||Decimal value|
When reading or writing XML for a task, the weeks of the month of a monthly day-of-week calendar are specified by the Weeks element of the Task Scheduler schema.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|