# ReplyProcProgramList

### int ReplyProcProgramList(int lMsgId, string\[] arrPPID, ValueType\[] arrFileSize, string\[] arrVersion)

호스트의 레시피 목록 요청(S7F19)에 대해 장비의 레시피 목록 정보를 담아 응답(S7F20)을 전송합니다. 단순 이름뿐만 아니라 파일의 크기와 버전 정보를 배열 형태로 전달하여 호스트가 장비의 레시피 상태를 한눈에 파악할 수 있습니다.

Parameters

<table data-header-hidden><thead><tr><th width="140"></th><th width="168"></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>응답을 보낼 원본 메시지(S7F1)의 고유 ID</td></tr><tr><td>arrPPID</td><td>string[]</td><td>호스트에 보고할 레시피 이름(PPID) 배열</td></tr><tr><td>arrFileSize</td><td>ValueType[]</td><td>각 레시피의 파일 크기(uint) 배열</td></tr><tr><td>arrVersion</td><td>string[]</td><td>각 레시피의 버전 정보 배열</td></tr></tbody></table>

```csharp
private void OnEventReceived(IntPtr lpParam, short nEventId, int lParam)                
{
    case 719:              //S7F19
    HostWantPPList(lParam);
    break;
}
 
 
 
 private void HostWantPPList(int lMsgId)
 {   //Host가 Recipe목록 조회를 요청했으니 현재 장비의 레시피 목록을 arrPPid에 담아 Host로 응답 메시지를 보냅니다.
     // 장비 내 레시피 정보 준비
    string[] ppidList = { "MODEL_A", "MODEL_B" };
    ValueType[] sizeList = { 1024, 2048 }; // uint 캐스팅 필요
    string[] verList = { "V1.0", "V1.1" };

    // 호스트에 목록 전송
    int result = m_gem.ReplyProcProgramList(lMsgId, ppidList, sizeList, verList);

    if (result >= 0)
    {
      Console.WriteLine("레시피 목록 응답을 성공적으로 전송했습니다.");
    }
 }
```


---

# 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/replyprocprogramlist/replyprocprogramlist-1.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.
