# ResetMsgReceived

### int ResetMsgReceived(int lMsgId)

DisableAutoReply() 로 설정되어 사용자가 직접 수신한 메시지에 대해, 사용자 로직 처리를 완료한 후 해당 메시지의 이후 처리(자동 응답 등)를 다시 EZGemPlus 라이브러리에 위임합니다.

보통은 사용자가 직접 메시지를 가로채면 CreateReplyMsg() 등으로 응답까지 직접 만들어야 하지만, 이 함수를 사용하면 메시지 분석만 사용자가 하고 응답은 라이브러리의 표준 로직을 그대로 태울 수 있습니다.

{% hint style="info" %}
GetRemoteCommand()함수와 함께 사용합니다.
{% endhint %}

Parameters

<table data-header-hidden><thead><tr><th width="262"></th><th width="102"></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></tbody></table>

```csharp
// 1. 특정 메시지를 수동 처리로 설정
m_gem.DisableAutoReply(2, 41); // S2F41 가로채기

// 2. 메시지 수신 이벤트 발생 시
void OnS2F41(int lMsgId) 
{
    // 사용자가 필요한 로그 기록이나 사전 검사 수행
    LogEquipmentCommand(lMsgId);

    // 3. 응답(S2F42) 구성은 다시 라이브러리에 맡김
    int result = m_gem.ResetMsgReceived(lMsgId);
    
    if (result >= 0) {
        Console.WriteLine("Message control returned to EZGemPlus.");
    }
}
```


---

# 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-5/resetmsgreceived.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.
