Skip to content

Commit 56d88ee

Browse files
committed
Staging native API calls
1 parent e92e2b8 commit 56d88ee

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
description: "InstAPI.GetSQLInstanceRegStringByID(INST_ID, String, String, StringBuilder, UInt32) "
3+
title: "InstAPI.GetSQLInstanceRegStringByID(INST_ID, String, String, StringBuilder, UInt32) | Microsoft Docs"
4+
ms.custom: ""
5+
ms.date: "06/30/2021"
6+
ms.prod: sql
7+
ms.reviewer: ""
8+
ms.topic: reference
9+
author: MikeRayMSFT
10+
ms.author: mikeray
11+
---
12+
13+
# InstAPI.GetSQLInstanceRegStringByID(INST_ID, String, String, StringBuilder, UInt32) method
14+
15+
Retrieves a registry string from an instance specific registry tree by the given instance ID, the subtree, and the name of the value.
16+
17+
```csharp
18+
public static bool GetSQLInstanceRegStringByID (Microsoft.SqlServer.INST_ID instanceID, string registryPath, string valueName, System.Text.StringBuilder data, ref uint bufferSize);
19+
```
20+
21+
## Parameters
22+
`instanceID` INST_ID
23+
A pointer to the instance ID of the relevant instance.
24+
25+
`registryPath` String
26+
A pointer to a buffer to receive the registry path.
27+
28+
`valueName` String
29+
A String value that contains the value name to retrieve.
30+
31+
`data` StringBuilder
32+
A pointer to a buffer to receive the string that will be retrieved.
33+
34+
`bufferSize` UInt32
35+
A pointer to a `DWORD` value to supply the length of the buffer. Returns the required length if the supplied buffer is too small.
36+
37+
## Returns
38+
39+
Boolean
40+
`true` if the call succeeded; otherwise, `false`.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: "InstAPI.GetSvcInstanceIDFromName"
3+
title: "InstAPI.GetSvcInstanceIDFromName | Microsoft Docs"
4+
ms.custom: ""
5+
ms.date: "06/30/2021"
6+
ms.prod: sql
7+
ms.reviewer: ""
8+
ms.topic: reference
9+
author: MikeRayMSFT
10+
ms.author: mikeray
11+
---
12+
13+
# InstAPI.GetSvcInstanceIDFromName method

0 commit comments

Comments
 (0)