CreateSession function

创建或打开 Session ID


Function:

int UAPI CreateSession(
        int hMessage
);

Parameters:

  • hMessage [in]:请求句柄

Return value:

  • Type:int
  • Text:成功返回 Session 句柄,失败返回 NULL

Remarks:

  1. 如请求所提供的 Session ID 有效则 CreateSession function 的行为为打开该 Session ID,否则为创建一个新的 Session 实例
  2. CreateSession function 函数可能会因为某种原因导致函数失败并返回 NULL,开发者应验证其返回值是否为 NULL,以防止对 NULL 句柄进行操作导致程序异常

Requirements:

Keyword Value
Minimum Agine Version 171012.1
Minimum SDK Version 171012.1
Header File h.message
Library Server kext

results matching ""

    No results matching ""