# GetProcProgramInfo

### int GetProcProgramInfo(int lMsgId, ref int pnCount, ref string\[] arrPPID)

수신된 메시지(`lMsgId`)로부터 포함된 레시피 식별자(PPID)들의 개수와 목록을 가져옵니다. 단일 레시피가 아닌, 레시피 목록 조회(S7F5/F17/F25 등) 요청에 대응할 때 주로 사용되며, 라이브러리 내부의 `CStringArray` 데이터를 안전하게 C# 배열 형태로 변환해줍니다.

Parameters

<table data-header-hidden><thead><tr><th width="193"></th><th width="132"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>lMsgId</td><td>int</td><td>수신된 관련 메시지의 고유 ID</td></tr><tr><td>pnCount</td><td>ref int</td><td>(Output) 추출된 PPID의 총 개수</td></tr><tr><td>arrPPID</td><td>ref string[]</td><td>(Output) PPID 문자열들이 담긴 배열</td></tr></tbody></table>

```csharp
 // 요청받은 PPID가있으면 호스트에게 보냅니다.
 int nCount = 0, ACK = 0;
 string[] arrPPID = { };
 string strPPID = "";
 string strFilePath = "D:\1_SAMPLES\GEM\C#\C#샘플작업\TEST용\SampleGem\TEST.INI";
 m_gem.GetProcProgramInfo(lMsgId, ref nCount, ref arrPPID);
 if (nCount == 1) strPPID = arrPPID[0];
 m_gem.ReplyProcProgramUpload(lMsgId, ACK, strFilePath, "TESTTEST"); // 응답 -> 파일 업로드
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/undefined-3/getprocprograminfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
