Skip to content

Latest commit

 

History

History
112 lines (94 loc) · 3.04 KB

nf-rpcdce-rpcmgmtsetserverstacksize.md

File metadata and controls

112 lines (94 loc) · 3.04 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:rpcdce.RpcMgmtSetServerStackSize
RpcMgmtSetServerStackSize function (rpcdce.h)
The RpcMgmtSetServerStackSize function specifies the stack size for server threads created by the RPC run time.
RpcMgmtSetServerStackSize
RpcMgmtSetServerStackSize function [RPC]
_rpc_rpcmgmtsetserverstacksize
rpc.rpcmgmtsetserverstacksize
rpcdce/RpcMgmtSetServerStackSize
rpc\rpcmgmtsetserverstacksize.htm
Rpc
5cf04ff5-d25b-42f5-a14e-2e73225765e9
12/05/2018
RpcMgmtSetServerStackSize, RpcMgmtSetServerStackSize function [RPC], _rpc_rpcmgmtsetserverstacksize, rpc.rpcmgmtsetserverstacksize, rpcdce/RpcMgmtSetServerStackSize
rpcdce.h
Rpc.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Rpcrt4.lib
Rpcrt4.dll
Windows
19H1
RpcMgmtSetServerStackSize
rpcdce/RpcMgmtSetServerStackSize
c++
APIRef
kbSyntax
DllExport
Rpcrt4.dll
RpcMgmtSetServerStackSize

RpcMgmtSetServerStackSize function

-description

The RpcMgmtSetServerStackSize function specifies the stack size for server threads created by the RPC run time.

-parameters

-param ThreadStackSize

Stack size allocated for each thread created by the RPC run time, in bytes. This value is applied to all threads created for the server, but not to threads already created. Select this value based on the stack requirements of the remote procedures offered by the server.

-returns

Value Meaning
RPC_S_OK
The call succeeded.
RPC_S_INVALID_ARG
The argument was invalid.
 
Note  For a list of valid error codes, see RPC Return Values.
 

-remarks

A server application calls the RpcMgmtSetServerStackSize function to specify the thread stack size to use when the RPC run-time library creates call threads for executing remote procedure calls.

Servers that know the stack requirements of all the manager functions in the interfaces it offers can call the RpcMgmtSetServerStackSize function to ensure that each call thread has the necessary stack size.

Calling RpcMgmtSetServerStackSize is optional. If a server does not call RpcMgmtSetServerStackSize, the default thread stack size from the executable image is used.

-see-also

RpcServerListen