edmiGetMyUserId
EdmiError edmiGetMyUserId(SdaiInstance *userId);
Returns the numeric instanceID that uniquely identifies the EDMuser instance of the current calling user in the EDMdatabase.
Arguments
Type | Name | Comment |
SdaiInstance | 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. |
Return Value
Options
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);
. . .
See also