Skip to content

Fix git push error for protected CLA branch #2433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
eb891d8
Merge remote-tracking branch 'MicrosoftDocs/master'
timeyoutakeit Jan 28, 2019
b3bac60
renaming activation file
timeyoutakeit Jan 28, 2019
7f21e66
Delete unnecessary spaces
changeworld Feb 8, 2019
b7a2b1c
Fix indent
changeworld Feb 8, 2019
22d6525
Delete unnecessary spaces
changeworld Feb 8, 2019
8b274eb
Delete unnecessary spaces
changeworld Feb 8, 2019
5167030
Delete unnecessary spaces
changeworld Feb 8, 2019
f2a609c
Delete unnecessary spaces
changeworld Feb 8, 2019
c6952a2
Delete unnecessary spaces
changeworld Feb 8, 2019
f5e7810
Delete unnecessary spaces
changeworld Feb 8, 2019
eca88c8
add animated GIF for Live Share to Dev16 What's New page
TerryGLee Feb 8, 2019
4d9ec10
add screenshot to IntelliCode section
TerryGLee Feb 8, 2019
9c37007
minor text tweak
TerryGLee Feb 8, 2019
be4543e
Merge branch 'patch-9' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
34cb254
Merge branch 'patch-8' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
aeb20c7
Merge branch 'patch-6' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
e740eca
Merge branch 'patch-5' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
85047b1
Merge branch 'patch-4' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
02f7d81
Merge branch 'patch-2' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
90e40d3
Merge branch 'patch-1' of https://github.com/changeworld/visualstudio…
Jak-MS Feb 8, 2019
e4dd2ac
fix H2
Jak-MS Feb 8, 2019
b428ff8
Merge pull request #3904 from TerryGLee/tglee-whatsnew
itechedit Feb 8, 2019
24770c5
Merge pull request #3905 from Jak-MS/public-repo-2391
rjagiewich Feb 8, 2019
c9e2fc4
Merge pull request #3906 from Jak-MS/public-repo-2390
rjagiewich Feb 8, 2019
0dbf8b8
Merge pull request #3907 from Jak-MS/public-repo-2388
tfosmark Feb 8, 2019
5764cb7
Merge pull request #3908 from Jak-MS/public-repo-2387
tfosmark Feb 8, 2019
6ed94b1
Merge pull request #3909 from Jak-MS/public-repo-2386
tfosmark Feb 8, 2019
7395422
Merge pull request #3910 from Jak-MS/public-repo-2384
tfosmark Feb 8, 2019
b4d2ea6
Merge pull request #3911 from Jak-MS/public-repo-2383
tfosmark Feb 8, 2019
0068271
add redirect
conceptdev Feb 11, 2019
4cecaed
fix redirect syntax
Jak-MS Feb 11, 2019
894e10b
Merge pull request #3767 from asb3993/amburns-renaming-activation
Jak-MS Feb 11, 2019
1ff7327
Freshness check and update dates
kraigb Feb 11, 2019
e62e6c8
Merge branch 'master' into kraigb-python-feedback
kraigb Feb 11, 2019
04ebe4c
Merge pull request #3915 from kraigb/kraigb-python-feedback
PRMerger16 Feb 11, 2019
61dc40d
Merge pull request #3916 from MicrosoftDocs/master
Taojunshen Feb 11, 2019
7fe34bf
Merging changes synced from https://github.com/MicrosoftDocs/visualst…
gewarren Feb 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -6712,6 +6712,11 @@
"redirect_url": "/visualstudio/mac/",
"redirect_document_id": false
},
{
"source_path": "mac/activation.md",
"redirect_url": "/visualstudio/mac/enable-subscription",
"redirect_document_id": false
},
{
"source_path": "docs/cross-platform/overview-of-visual-studio-tools-for-unity.md",
"redirect_url": "/visualstudio/cross-platform/visual-studio-tools-for-unity",
Expand Down
392 changes: 196 additions & 196 deletions docs/debugger/c-cpp-assertions.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,55 @@
title: "Constants (Debug Interface Access SDK) | Microsoft Docs"
ms.date: "11/04/2016"
ms.topic: "conceptual"
dev_langs:
dev_langs:
- "C++"
helpviewer_keywords:
helpviewer_keywords:
- "constants, DIA SDK"
- "DIA SDK, constants"
ms.assetid: aca4ec77-bc08-4cdd-a6ce-8d4a28ea5ea3
author: "mikejo5000"
ms.author: "mikejo"
manager: jillfra
ms.workload:
ms.workload:
- "multiple"
---
# Constants (Debug Interface Access SDK)
These string constants can be used to identify various sections of a program debug database (PDB) file through the DIA SDK.
## Constants
The following are declared as C/C++ macros.
|Macro|Value|
|-----------|-----------|
|`DiaTable_Symbols`|L"Symbols"|
|`DiaTable_Sections`|L"Sections"|
|`DiaTable_SrcFiles`|L"SourceFiles"|
|`DiaTable_LineNums`|L"LineNumbers"|
|`DiaTable_SegMap`|L"SegmentMap"|
|`DiaTable_Dbg`|L"Dbg"|
|`DiaTable_InjSrc`|L"InjectedSource"|
|`DiaTable_FrameData`|L"FrameData"|
## Example
Here is an example using one of these symbols:
```C++
HRESULT GetSymbolTable(IDiaEnumTables *pEnumTables, IDiaTable **pTable)
{
HRESULT hr;
VARIANT var;
var.vt = VT_BSTR;
var.bstrVal = SysAllocString( DiaTable_Symbols );
hr = pEnumTables->Item( var, pTable );
return(hr);
}
```
## Requirements
Header: dia2.h
## See Also
[Reference](../../debugger/debug-interface-access/debug-interface-access-sdk-reference.md)
[Enumerations and Structures](../../debugger/debug-interface-access/enumerations-and-structures.md)
[Interfaces (Debug Interface Access SDK)](../../debugger/debug-interface-access/interfaces-debug-interface-access-sdk.md)
[IDiaEnumTables::Item](../../debugger/debug-interface-access/idiaenumtables-item.md)
These string constants can be used to identify various sections of a program debug database (PDB) file through the DIA SDK.

## Constants
The following are declared as C/C++ macros.

|Macro|Value|
|-----------|-----------|
|`DiaTable_Symbols`|L"Symbols"|
|`DiaTable_Sections`|L"Sections"|
|`DiaTable_SrcFiles`|L"SourceFiles"|
|`DiaTable_LineNums`|L"LineNumbers"|
|`DiaTable_SegMap`|L"SegmentMap"|
|`DiaTable_Dbg`|L"Dbg"|
|`DiaTable_InjSrc`|L"InjectedSource"|
|`DiaTable_FrameData`|L"FrameData"|

## Example
Here is an example using one of these symbols:

```C++
HRESULT GetSymbolTable(IDiaEnumTables *pEnumTables, IDiaTable **pTable)
{
HRESULT hr;
VARIANT var;
var.vt = VT_BSTR;
var.bstrVal = SysAllocString( DiaTable_Symbols );
hr = pEnumTables->Item( var, pTable );
return(hr);
}
```

## Requirements
Header: dia2.h

## See Also
[Reference](../../debugger/debug-interface-access/debug-interface-access-sdk-reference.md)
[Enumerations and Structures](../../debugger/debug-interface-access/enumerations-and-structures.md)
[Interfaces (Debug Interface Access SDK)](../../debugger/debug-interface-access/interfaces-debug-interface-access-sdk.md)
[IDiaEnumTables::Item](../../debugger/debug-interface-access/idiaenumtables-item.md)
Original file line number Diff line number Diff line change
Expand Up @@ -2,87 +2,87 @@
title: "IDiaDataSource::loadAndValidateDataFromPdb | Microsoft Docs"
ms.date: "11/04/2016"
ms.topic: "conceptual"
dev_langs:
dev_langs:
- "C++"
helpviewer_keywords:
helpviewer_keywords:
- "IDiaDataSource::loadAndValidateDataFromPdb method"
ms.assetid: d66712dd-6c24-4192-919a-cce262066f0e
author: "mikejo5000"
ms.author: "mikejo"
manager: jillfra
ms.workload:
ms.workload:
- "multiple"
---
# IDiaDataSource::loadAndValidateDataFromPdb
Opens and verifies that the program database (.pdb) file matches the signature information provided, and prepares the .pdb file as a debug data source.
## Syntax
```C++
HRESULT loadAndValidateDataFromPdb ( 
LPCOLESTR pdbPath,
GUID* pcsig70,
DWORD sig,
DWORD age
);
```
#### Parameters
`pdbPath`
[in] The path to the .pdb file.
`pcsig70`
[in] The GUID signature to verify against the .pdb file signature. Only .pdb files in [!INCLUDE[vcprvc](../../code-quality/includes/vcprvc_md.md)] and later have GUID signatures.
`sig`
[in] The 32-bit signature to verify against the .pdb file signature.
`age`
[in] Age value to verify. The age does not necessarily correspond to any known time value, it is used to determine if a .pdb file is out of sync with a corresponding .exe file.
## Return Value
If successful, returns `S_OK`; otherwise, returns an error code. The following table shows the possible return values for this method.
|Value|Description|
|-----------|-----------------|
|E_PDB_NOT_FOUND|Failed to open the file, or the file has an invalid format.|
|E_PDB_FORMAT|Attempted to access a file with an obsolete format.|
|E_PDB_INVALID_SIG|Signature does not match.|
|E_PDB_INVALID_AGE|Age does not match.|
|E_INVALIDARG|Invalid parameter.|
|E_UNEXPECTED|The data source has already been prepared.|
## Remarks
A .pdb file contains both signature and age values. These values are replicated in the .exe or .dll file that matches the .pdb file. Before preparing the data source, this method verifies that the named .pdb file's signature and age match the values provided.
To load a .pdb file without validation, use the [IDiaDataSource::loadDataFromPdb](../../debugger/debug-interface-access/idiadatasource-loaddatafrompdb.md) method.
To gain access to the data load process (through a callback mechanism), use the [IDiaDataSource::loadDataForExe](../../debugger/debug-interface-access/idiadatasource-loaddataforexe.md) method.
To load a .pdb file directly from memory, use the [IDiaDataSource::loadDataFromIStream](../../debugger/debug-interface-access/idiadatasource-loaddatafromistream.md) method.
## Example
```C++
IDiaDataSource* pSource; // Previously created data source.
DEFINE_GUID(expectedGUIDSignature,0x1234,0x5678,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08);
DWORD expectedFileSignature = 0x12345678;
DWORD expectedAge = 128;
HRESULT hr;
hr = pSource->loadAndValidateDataFromPdb( L"yprog.pdb",
&expectedGUIDSignature,
expectedFileSignature,
expectedAge);
if (FAILED(hr))
{
// Report an error
}
```
## See Also
[IDiaDataSource](../../debugger/debug-interface-access/idiadatasource.md)
[IDiaDataSource::loadDataForExe](../../debugger/debug-interface-access/idiadatasource-loaddataforexe.md)
[IDiaDataSource::loadDataFromPdb](../../debugger/debug-interface-access/idiadatasource-loaddatafrompdb.md)
[IDiaDataSource::loadDataFromIStream](../../debugger/debug-interface-access/idiadatasource-loaddatafromistream.md)
Opens and verifies that the program database (.pdb) file matches the signature information provided, and prepares the .pdb file as a debug data source.

## Syntax

```C++
HRESULT loadAndValidateDataFromPdb ( 
LPCOLESTR pdbPath,
GUID* pcsig70,
DWORD sig,
DWORD age
);
```

#### Parameters
`pdbPath`
[in] The path to the .pdb file.

`pcsig70`
[in] The GUID signature to verify against the .pdb file signature. Only .pdb files in [!INCLUDE[vcprvc](../../code-quality/includes/vcprvc_md.md)] and later have GUID signatures.

`sig`
[in] The 32-bit signature to verify against the .pdb file signature.

`age`
[in] Age value to verify. The age does not necessarily correspond to any known time value, it is used to determine if a .pdb file is out of sync with a corresponding .exe file.

## Return Value
If successful, returns `S_OK`; otherwise, returns an error code. The following table shows the possible return values for this method.

|Value|Description|
|-----------|-----------------|
|E_PDB_NOT_FOUND|Failed to open the file, or the file has an invalid format.|
|E_PDB_FORMAT|Attempted to access a file with an obsolete format.|
|E_PDB_INVALID_SIG|Signature does not match.|
|E_PDB_INVALID_AGE|Age does not match.|
|E_INVALIDARG|Invalid parameter.|
|E_UNEXPECTED|The data source has already been prepared.|

## Remarks
A .pdb file contains both signature and age values. These values are replicated in the .exe or .dll file that matches the .pdb file. Before preparing the data source, this method verifies that the named .pdb file's signature and age match the values provided.

To load a .pdb file without validation, use the [IDiaDataSource::loadDataFromPdb](../../debugger/debug-interface-access/idiadatasource-loaddatafrompdb.md) method.

To gain access to the data load process (through a callback mechanism), use the [IDiaDataSource::loadDataForExe](../../debugger/debug-interface-access/idiadatasource-loaddataforexe.md) method.

To load a .pdb file directly from memory, use the [IDiaDataSource::loadDataFromIStream](../../debugger/debug-interface-access/idiadatasource-loaddatafromistream.md) method.

## Example

```C++
IDiaDataSource* pSource; // Previously created data source.
DEFINE_GUID(expectedGUIDSignature,0x1234,0x5678,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08);
DWORD expectedFileSignature = 0x12345678;
DWORD expectedAge = 128;

HRESULT hr;
hr = pSource->loadAndValidateDataFromPdb( L"yprog.pdb",
&expectedGUIDSignature,
expectedFileSignature,
expectedAge);
if (FAILED(hr))
{
// Report an error
}

```

## See Also
[IDiaDataSource](../../debugger/debug-interface-access/idiadatasource.md)
[IDiaDataSource::loadDataForExe](../../debugger/debug-interface-access/idiadatasource-loaddataforexe.md)
[IDiaDataSource::loadDataFromPdb](../../debugger/debug-interface-access/idiadatasource-loaddatafrompdb.md)
[IDiaDataSource::loadDataFromIStream](../../debugger/debug-interface-access/idiadatasource-loaddatafromistream.md)
Loading