Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C++; VS2008; XP; W2k3] NetUserEnum (Level 23)

Empfohlene Antworten

Ich versuch mit Level 23 auf nem XP SP3 und Windows 2k3 Server auszuführen.

iErr gibt mir 124 zurück.

124 The system call level is not correct.

Folgender Code:


DWORD dwRead = 0, dwTotal = 0;

LPDWORD *ptCont = NULL;

LPUSER_INFO_23 ui23;


iErr = ::NetUserEnum(NULL, 23, FILTER_NORMAL_ACCOUNT, (LPBYTE*) &ui23, 255, &dwRead, &dwTotal, ptCont);

Andere Call-Levels funktionieren, aber ich will an die Nutzer SID ran, die ich danach für den aufruf von "NetLocalGroupAddMembers" auf Call-Level 0 brauch.

Laut MSDN wird CallLevel 23 ab Windows 2000 unterstützt (oder versteh ich nur was falsch?)

Wäre für Tips/Infos dankbar.

Gruß Dave

Workaround gefunden, geh den Weg über

NetUserEnum() mit CallLevel 0

und hol mir dann NetUserGetInfo() mit CallLevel 23

Das geht zwar ist aber lästig wenn mir bereits das erste die Lösung bringen sollte.


iErr = ::NetUserEnum(NULL, 0, FILTER_NORMAL_ACCOUNT, (LPBYTE*) &ui0, 255, &dwRead, &dwTotal, &ptCont);

for(index = 0;index < dwRead; index++)

{

iErr = ::NetUserGetInfo(NULL, ui0->usri0_name, 23, (LPBYTE*) &ui23);

[...]

ui0++;

}

Bearbeitet von Klischeepunk
Code added

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.