Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


Returns the numeric instanceID that uniquely identifies the EDMuser instance of the current calling user in the EDMdatabase.
Related functions: edmiConnect , sdaiOpenSession .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetMyUserId(SdaiInstance *userId);
Arguments:

userId

Address of the variable that will receive the numeric instanceID that uniquely identifies the EDMuser instance in the EDMdatabase that defines the EDMuser of the caller, i.e. the EDMuser the caller is logged on the EDMserver as.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
SdaiInstance userId;
EdmiError rstat;
. . .
if (rstat = edmiGetMyUserId (&userId)) {
/* Error in operation */
printf("\nError: %s in edmiGetMyUserId\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
printf ("\MyuserId: %lu", userId);
. . .

  • No labels