# 9. 사용자 직접처리

### DisableAutoReply(Stream,Function)

<figure><img src="/files/YqewjyuB8xbTVBqB7OFf" alt=""><figcaption></figcaption></figure>

```csharp
 // 사용자가 직접 처리를 원하는 메세지 선언
 /* 아래와 같이 선언해두면 [ OnMsgReceived(lMsgId) ] 함수를 통해 메시지가 들어오며
    Stream/Function별로 사용자가 직접 처리 할 수 있습니다. */
 //==============================
   m_gem.DisableAutoReply(1, 3);
   m_gem.DisableAutoReply(1, 11);
 //==============================
```

```csharp
private void OnMsgReceived(IntPtr lpParam, int lMsgId)
{
    short nStream = 0, nFunction = 0, nWbit = 0;
    int nLength = 0;
    m_gem.GetMsgInfo(lMsgId, ref nStream, ref nFunction, ref nWbit, ref nLength);
    if (nStream == 1 && nFunction == 3)                //S1F3
    {
        OnS1F3W(lMsgId);  //사용자가 직접 함수 선언 후 사용
    }
    else if (nStream == 1 && nFunction == 11)            //S1F11
    {
        OnS1F11W(lMsgId);  //사용자가 직접 함수 선언 후 사용
    }
}   
```


---

# 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/documentation/c/9..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.
