Allocates memory for a new context structure and initializes it with values copied from the source context structure.
#include <nwnet.h>
or
#include <nwdsdc.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWDSDuplicateContextHandle (
NWDSContextHandle srcContextHandle,
NWDSContextHandle N_FAR *destContextHandle);
uses netwin32
Function NWDSDuplicateContextHandle
(srcContextHandle : NWDSContextHandle;
Var destContextHandle : NWDSContextHandle
) : NWDSCCODE;
(IN) Specifies the context handle referencing the structure to be duplicated.
(OUT) Points to the newly created context handle.
These are common return values.
|
0x0000 0000 |
SUCCESSFUL |
|
nonzero value |
Nonzero values indicate errors. See |
NWDSDuplicateContextHandle allocates storage for a new context structure and copies the values of the source context structure referenced by srcContextHandle to the newly allocated context structure. If the srcContextHandle is invalid, allocation of a new context structure is still attempted. In this case, the default values of NWDSCreateContextHandle will be used to initialize the new context structure.