Skip to content

Commit bd6965b

Browse files
authored
Document CorHandleWeakWinRT (#42659)
- Add docs for that enumeration value in the .NET debugging APIs. - Also updates the CorReferenceFinalizer value. 80000002 in decimal is the correct value in the shipping code. Probably some earlier developer intended it to be hexadecimal in the product but made a mistake. Since it has already shipped it won't be changed. Fixes dotnet/diagnostics#4171
1 parent 8771ec1 commit bd6965b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/framework/unmanaged-api/debugging/corgcreferencetype-enumeration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ typedef enum {
3232
CorHandleStrongDependent = 64,
3333
CorHandleStrongAsyncPinned = 128,
3434
CorHandleStrongSizedByref = 256,
35+
CorHandleWeakWinRT = 512,
3536

3637
CorReferenceStack = 0x80000001,
37-
CorReferenceFinalizer = 0x80000002,
38+
CorReferenceFinalizer = 80000002, // Note the constant is decimal, not hexadecimal
3839

3940
CorHandleStrongOnly = 0x1E3,
4041
CorHandleWeakOnly = 0xC,
@@ -54,6 +55,7 @@ typedef enum {
5455
|`CorHandleStrongDependent`|A handle to a dependent object from the object handle table.|
5556
|`CorHandleStrongAsyncPinned`|An asynchronous pinned object from the object handle table.|
5657
|`CorHandleStrongSizedByref`|A strong handle that keeps an approximate size of the collective closure of all objects and object roots at garbage collection time.|
58+
|`CorHandleWeakWinRT`|A weak handle to a RCW (Runtime Callable Wrapper). An RCW is a managed object that proxies calls to an underlying COM object.|
5759
|`CorReferenceStack`|A reference from the managed stack.|
5860
|`CorReferenceFinalizer`|A reference from the finalizer queue.|
5961
|CorHandleStrongOnly|Return only strong references from the handle table. This value is used by the [ICorDebugProcess5::EnumerateHandles](icordebugprocess5-enumeratehandles-method.md) method only.|

0 commit comments

Comments
 (0)