The sample instantiates DirHandle_t when SmDirInitDirInstance() is called. The handle is then passed to the directory operations functions.
The same value need not be carried through the entire process. You are permitted to change the value.
The definition of DirHandle_t is as follows:
typedef struct DirHandle_s { char nTag; bool bValid; char szErrMsg[ERRMSG_SIZE]; char* pszUniqueKey; char* pszParameter; char* pszUsername; char* pszPassword; int bRequireCredentials; int bSecureConnection; int nSearchResults; int nSearchTimeout; } DirHandle_t;
The sample releases DirHandle_t when SmDirReleaseInstance() is called. The value of nTag is used to distinguish between the directory instance handle and the user instance handle.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |