You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [CTime](../atl-mfc-shared/reference/ctime-class.md) class has constructors that accept system and file times from Win32. If you use `CTime` objects for these purposes, you must modify their initialization accordingly, as described in this article.
11
11
12
-
For information about the SYSTEMTIME structure, see [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950). For information about the FILETIME structure, see [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284).
12
+
For information about the SYSTEMTIME structure, see [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime). For information about the FILETIME structure, see [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime).
13
13
14
14
MFC still provides `CTime` constructors that take time arguments in the MS-DOS style, but, starting in MFC version 3.0, the `CTime` class also supports a constructor that takes a Win32 `SYSTEMTIME` structure and another that takes a Win32 `FILETIME` structure.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/coledatetime-class.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ class COleDateTime
29
29
|----------|-----------------|
30
30
|[COleDateTime::Format](#format)|Generates a formatted string representation of a `COleDateTime` object.|
31
31
|[COleDateTime::GetAsDBTIMESTAMP](#getasdbtimestamp)|Call this method to obtain the time in the `COleDateTime` object as a `DBTIMESTAMP` data structure.|
32
-
|[COleDateTime::GetAsSystemTime](#getassystemtime)|Call this method to obtain the time in the `COleDateTime` object as a [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) data structure.|
32
+
|[COleDateTime::GetAsSystemTime](#getassystemtime)|Call this method to obtain the time in the `COleDateTime` object as a [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) data structure.|
33
33
|[COleDateTime::GetAsUDATE](#getasudate)|Call this method to obtain the time in the `COleDateTime` as a `UDATE` data structure.|
34
34
|[COleDateTime::GetCurrentTime](#getcurrenttime)|Creates a `COleDateTime` object that represents the current time (static member function).|
35
35
|[COleDateTime::GetDay](#getday)|Returns the day this `COleDateTime` object represents (1 - 31).|
@@ -228,7 +228,7 @@ Following is a brief description of each constructor:
228
228
229
229
For more information on the `time_t` data type, see the [time](../../c-runtime-library/reference/time-time32-time64.md) function in the *Run-Time Library Reference*.
230
230
231
-
For more information, see the [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) and [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) structures in the Windows SDK.
231
+
For more information, see the [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) and [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime) structures in the Windows SDK.
232
232
233
233
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
A reference to a [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) structure to receive the converted date/time value from the `COleDateTime` object.
339
+
A reference to a [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) structure to receive the converted date/time value from the `COleDateTime` object.
340
340
341
341
### Return Value
342
342
@@ -798,17 +798,17 @@ These overloaded assignment operators copy the source date/time value into this
798
798
799
799
-**operator =(**`timeSrc`**)** The `time_t` or `__time64_t` value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid.
800
800
801
-
-**operator =(***systimeSrc***)** The [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid.
801
+
-**operator =(***systimeSrc***)** The [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid.
802
802
803
803
-**operator =(**`udate`**)** The `UDATE` value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid. A `UDATE` structure represents an "unpacked" date. See the function [VarDateFromUdate](/windows/desktop/api/oleauto/nf-oleauto-vardatefromudate) for more details.
804
804
805
-
-**operator =(**`filetimeSrc`**)** The [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; otherwise it is set to invalid. `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a UTC time in the structure, your results will be converted from UTC time to local time, and will be stored as variant time. This behavior is the same as in Visual C++ 6.0 and Visual C++.NET 2003 SP2. See [File Times](/windows/desktop/SysInfo/file-times) in the Windows SDK for more information.
805
+
-**operator =(**`filetimeSrc`**)** The [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime) value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; otherwise it is set to invalid. `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a UTC time in the structure, your results will be converted from UTC time to local time, and will be stored as variant time. This behavior is the same as in Visual C++ 6.0 and Visual C++.NET 2003 SP2. See [File Times](/windows/desktop/SysInfo/file-times) in the Windows SDK for more information.
806
806
807
807
For more information, see the [VARIANT](/windows/desktop/api/oaidl/ns-oaidl-tagvariant) entry in the Windows SDK.
808
808
809
809
For more information on the `time_t` data type, see the [time](../../c-runtime-library/reference/time-time32-time64.md) function in the *Run-Time Library Reference*.
810
810
811
-
For more information, see the [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) and [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) structures in the Windows SDK.
811
+
For more information, see the [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) and [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime) structures in the Windows SDK.
812
812
813
813
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/ctime-class.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ class CTime
30
30
|[CTime::Format](#format)|Converts a `CTime` object into a formatted string — based on the local time zone.|
31
31
|[CTime::FormatGmt](#formatgmt)|Converts a `CTime` object into a formatted string — based on UTC.|
32
32
|[CTime::GetAsDBTIMESTAMP](#getasdbtimestamp)|Converts the time information stored in the `CTime` object to a Win32-compatible DBTIMESTAMP structure.|
33
-
|[CTime::GetAsSystemTime](#getassystemtime)|Converts the time information stored in the `CTime` object to a Win32-compatible [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) structure.|
33
+
|[CTime::GetAsSystemTime](#getassystemtime)|Converts the time information stored in the `CTime` object to a Win32-compatible [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) structure.|
34
34
|[CTime::GetCurrentTime](#getcurrenttime)|Creates a `CTime` object that represents the current time (static member function).|
35
35
|[CTime::GetDay](#getday)|Returns the day represent by the `CTime` object.|
36
36
|[CTime::GetDayOfWeek](#getdayofweek)|Returns the day of the week represented by the `CTime` object.|
@@ -142,10 +142,10 @@ Indicates whether daylight savings time is in effect. Can have one of three valu
142
142
MS-DOS date and time values to be converted to a date/time value and copied into the new `CTime` object.
143
143
144
144
*st*<br/>
145
-
A [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) structure to be converted to a date/time value and copied into the new `CTime` object.
145
+
A [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) structure to be converted to a date/time value and copied into the new `CTime` object.
146
146
147
147
*ft*<br/>
148
-
A [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) structure to be converted to a date/time value and copied into the new `CTime` object.
148
+
A [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime) structure to be converted to a date/time value and copied into the new `CTime` object.
149
149
150
150
*dbts*<br/>
151
151
A reference to a DBTIMESTAMP structure containing the current local time.
@@ -182,7 +182,7 @@ Each constructor is described below:
182
182
> [!NOTE]
183
183
> The constructor using `DBTIMESTAMP` parameter is only available when OLEDB.h is included.
184
184
185
-
For more information, see the [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) and [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) structure in the Windows SDK. Also see the [MS-DOS Date and Time](/windows/desktop/SysInfo/ms-dos-date-and-time) entry in the Windows SDK.
185
+
For more information, see the [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) and [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime) structure in the Windows SDK. Also see the [MS-DOS Date and Time](/windows/desktop/SysInfo/ms-dos-date-and-time) entry in the Windows SDK.
186
186
187
187
### Example
188
188
@@ -277,7 +277,7 @@ Stores the resulting time in the referenced *dbts* structure. The `DBTIMESTAMP`
Call this member function to convert the time information stored in the `CTime` object to a Win32-compatible [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) structure.
280
+
Call this member function to convert the time information stored in the `CTime` object to a Win32-compatible [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) structure.
A reference to a [SYSTEMTIME](https://msdn.microsoft.com/library/windows/desktop/ms724950) structure that will hold the converted date/time value of the `CTime` object.
289
+
A reference to a [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) structure that will hold the converted date/time value of the `CTime` object.
Copy file name to clipboardExpand all lines: docs/atl/reference/caccesstoken-class.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@ Returns TRUE on success, FALSE on failure.
170
170
171
171
### Remarks
172
172
173
-
`CreateImpersonationToken` calls [DuplicateToken](https://msdn.microsoft.com/library/windows/desktop/aa446616) to create a new impersonation token.
173
+
`CreateImpersonationToken` calls [DuplicateToken](/windows/desktop/api/securitybaseapi/nf-securitybaseapi-duplicatetoken) to create a new impersonation token.
@@ -1039,7 +1039,7 @@ Returns TRUE on success, FALSE on failure.
1039
1039
1040
1040
### Remarks
1041
1041
1042
-
When `PrivilegeCheck` returns, the `Attributes` member of each [LUID_AND_ATTRIBUTES](/windows/desktop/api/winnt/ns-winnt-_luid_and_attributes) structure is set to SE_PRIVILEGE_USED_FOR_ACCESS if the corresponding privilege is enabled. This method calls the [PrivilegeCheck](https://msdn.microsoft.com/library/windows/desktop/aa379304) Win32 function.
1042
+
When `PrivilegeCheck` returns, the `Attributes` member of each [LUID_AND_ATTRIBUTES](/windows/desktop/api/winnt/ns-winnt-_luid_and_attributes) structure is set to SE_PRIVILEGE_USED_FOR_ACCESS if the corresponding privilege is enabled. This method calls the [PrivilegeCheck](/windows/desktop/api/securitybaseapi/nf-securitybaseapi-privilegecheck) Win32 function.
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](https://msdn.microsoft.com/library/windows/desktop/ms633559) section. Defaults to SW_HIDE.
263
+
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](/windows/desktop/api/winbase/nf-winbase-winmain) section. Defaults to SW_HIDE.
264
264
265
265
### Return Value
266
266
@@ -317,7 +317,7 @@ int WinMain(int nShowCmd) throw();
317
317
### Parameters
318
318
319
319
*nShowCmd*<br/>
320
-
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](https://msdn.microsoft.com/library/windows/desktop/ms633559) section.
320
+
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](/windows/desktop/api/winbase/nf-winbase-winmain) section.
Copy file name to clipboardExpand all lines: docs/atl/reference/catlfilemappingbase-class.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -175,15 +175,15 @@ The file offset where mapping is to begin. The offset value must be a multiple o
175
175
The protection desired for the file view when the file is mapped. See *flProtect* in [CreateFileMapping](/windows/desktop/api/winbase/nf-winbase-createfilemappinga) in the Windows SDK.
176
176
177
177
*dwViewDesiredAccess*<br/>
178
-
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](https://msdn.microsoft.com/library/windows/desktop/aa366763) in the Windows SDK.
178
+
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](/windows/desktop/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.
179
179
180
180
### Return Value
181
181
182
182
Returns S_OK on success, or an error HRESULT on failure.
183
183
184
184
### Remarks
185
185
186
-
After a file-mapping object has been created, the size of the file must not exceed the size of the file-mapping object; if it does, not all of the file's contents will be available for sharing. For more details, see [CreateFileMapping](/windows/desktop/api/winbase/nf-winbase-createfilemappinga) and [MapViewOfFileEx](https://msdn.microsoft.com/library/windows/desktop/aa366763) in the Windows SDK.
186
+
After a file-mapping object has been created, the size of the file must not exceed the size of the file-mapping object; if it does, not all of the file's contents will be available for sharing. For more details, see [CreateFileMapping](/windows/desktop/api/winbase/nf-winbase-createfilemappinga) and [MapViewOfFileEx](/windows/desktop/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.
187
187
188
188
### Example
189
189
@@ -221,7 +221,7 @@ The pointer to a `SECURITY_ATTRIBUTES` structure that determines whether the ret
221
221
The protection desired for the file view, when the file is mapped. See *flProtect* in `CreateFileMapping` in the Windows SDK.
222
222
223
223
*dwViewDesiredAccess*<br/>
224
-
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](https://msdn.microsoft.com/library/windows/desktop/aa366763) in the Windows SDK.
224
+
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](/windows/desktop/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.
225
225
226
226
### Return Value
227
227
@@ -255,7 +255,7 @@ The mapping size. If 0, the maximum size of the file-mapping object is equal to
255
255
The file offset where mapping is to begin. The offset value must be a multiple of the system's memory allocation granularity.
256
256
257
257
*dwViewDesiredAccess*<br/>
258
-
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](https://msdn.microsoft.com/library/windows/desktop/aa366763) in the Windows SDK.
258
+
Specifies the type of access to the file view and, therefore, the protection of the pages mapped by the file. See *dwDesiredAccess* in [MapViewOfFileEx](/windows/desktop/api/memoryapi/nf-memoryapi-mapviewoffileex) in the Windows SDK.
259
259
260
260
### Return Value
261
261
@@ -296,7 +296,7 @@ Returns S_OK on success, or an error HRESULT on failure.
296
296
297
297
### Remarks
298
298
299
-
See [UnmapViewOfFile](https://msdn.microsoft.com/library/windows/desktop/aa366882) in the Windows SDK for more details.
299
+
See [UnmapViewOfFile](/windows/desktop/api/memoryapi/nf-memoryapi-unmapviewoffile) in the Windows SDK for more details.
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](https://msdn.microsoft.com/library/windows/desktop/ms633559) section. The default value is SW_HIDE.
398
+
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](/windows/desktop/api/winbase/nf-winbase-winmain) section. The default value is SW_HIDE.
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](https://msdn.microsoft.com/library/windows/desktop/ms633559) section.
458
+
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](/windows/desktop/api/winbase/nf-winbase-winmain) section.
459
459
460
460
### Return Value
461
461
@@ -516,7 +516,7 @@ int WinMain(int nShowCmd) throw();
516
516
### Parameters
517
517
518
518
*nShowCmd*<br/>
519
-
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](https://msdn.microsoft.com/library/windows/desktop/ms633559) section.
519
+
Specifies how the window is to be shown. This parameter can be one of the values discussed in the [WinMain](/windows/desktop/api/winbase/nf-winbase-winmain) section.
0 commit comments