English
Forum

"Schnappschuß" of "No"

 
Hello Profaner...

I need once 4-5 Rückmeldungen the downstairs Quelltextes of NT,2000 and XP - once for no and to control for eachone. i will time hoping, I have whom right View source erwischt - having straight night shift:
CompileMarkSeparation
DEF @LookupAccountName(7) !"advapi32","LookupAccountNameA"
DEF @LogonUser(6) !"advapi32","LogonUserA"
DEF @CreateProcessAsUser(11) !"advapi32","CreateProcessAsUserA"
DEF @SetLastError(1) !"kernel32","SetLastError"
DEF @GetLastError(0) !"kernel32","GetLastError" Liefert letzten API Fehler.
DEF @ZeroMemory(2) ! "Kernel32","RtlZeroMemory"
DEF @CloseHandle(1) !"kernel32","CloseHandle" Schließt ein Handle (Programm).
DEF @CreateProcessWithLogonW(11) !"advapi32","CreateProcessWithLogonW"
DEF @MultiByteToWideChar(6) !"kernel32","MultiByteToWideChar"
DEF @GetACP(0) !"kernel32","GetACP"
DEF @ConvertSidToStringSid(2) !"ADVAPI32","ConvertSidToStringSidA"
DEF @LocalFree(1) !"KERNEL32","LocalFree"
DEF @CopyMemory(3) !"kernel32","RtlMoveMemory"

Proc GET_SID

    Parameters PUSERNAME$
    Declare FEHLER&,SID_Size#,DOMAINNAME_SIZE_ADDR#,Zähler&
    Declare SID#,DOMAIN#,SID_TYPE_INDICATOR#,DOMAIN#,SID#,P_STRSID#,STRSID#
    DIM DOMAIN#,256
    DIM SID#,1
    DIM SID_Size#,4
    DIM DOMAINNAME_SIZE_ADDR#,4
    DIM SID_TYPE_INDICATOR#,256
    DIM P_STRSID#,4
    Dim STRSID#,256
    CLEAR SID#,DOMAIN#,SID_TYPE_INDICATOR#,DOMAIN#,SID#,DOMAINNAME_SIZE_ADDR#
    Long SID_Size#,0=1
    LONG DOMAINNAME_SIZE_ADDR#,0=255
    ADDSTRING "Gruppen- oder Username="+PUSERNAME$
    LET Fehler&=@LookupAccountName(0,@addr(PUSERNAME$),SID#,SID_Size#,DOMAIN#,DOMAINNAME_SIZE_ADDR#,SID_TYPE_INDICATOR#)
    DISPOSE SID#
    DIM SID#,@LONG(SID_Size#,0)
    Clear SID#,Domain#,SID_TYPE_INDICATOR#
    LET Fehler&=@LookupAccountName(0,@addr(PUSERNAME$),SID#,SID_Size#,DOMAIN#,DOMAINNAME_SIZE_ADDR#,SID_TYPE_INDICATOR#)
    ADDSTRING "Fehler LookupAccountName: "+@str$(Fehler&)
    ADDSTRING "Domain="+@STRING$(DOMAIN#,0)
    ADDSTRING "SID Länge in Bytes="+@STR$(@LONG(SID_Size#,0))
    ADDSTRING ""
    ADDSTRING "LongInts des SIDs:"
    LET ZÄHLER&=0

    While Zähler&<@LONG(SID_Size#,0)

        ADDSTRING @STR$(@LONG(SID#,Zähler&))
        LET Zähler&=Zähler&+4

    wend

    ADDSTRING ""

    IF @Val(@Left$($WINVER,3))>=5.0

        LET FEHLER&=@ConvertSidToStringSid(SID#,P_STRSID#)
        @CopyMemory(STRSID#,@LONG(P_STRSID#,0),255)
        ADDSTRING "String-SID des Besitzers="+@STRING$(STRSID#,0)
        ADDSTRING "Rückgabe von ConvertSidToStringSid="+@STR$(Fehler&)
        ADDSTRING "Letzter API-Fehler="+@STR$(@GetLastError())
        LET Fehler&=@LocalFree(@LONG(P_STRSID#,0))
        ADDSTRING "Rückgabe von LocalFree für den String-SID="+@STR$(Fehler&)
        ADDSTRING "Letzter API-Fehler="+@STR$(@GetLastError())

    endif

    DISPOSE SID#
    DISPOSE DOMAIN#
    DISPOSE SID_Size#
    DISPOSE DOMAINNAME_SIZE_ADDR#
    DISPOSE SID_TYPE_INDICATOR#
    DISPOSE P_STRSID#
    DISPOSE STRSID#

ENDPROC

ADDSTRING "Windowsversion="+$WINVER
GET_SID @INPUT$("Usernamen oder Gruppe eingeben:","SID ermitteln","Kein")
@EDITBOX(;Rückgaben",1)

Greeting AH
 
07/07/05  
 



Hello Andreas,
following Resultate:

groups- or Username=Kein
Error LookupAccountName: 1
Domain=TS-COMPUTER
SID length in Bytes=28

LongInts the SIDs:
1281
83886080
21
507921405
1004336348
725345543
513

String-SID the Besitzers=S-1-5-21-507921405-1004336348-725345543-513
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0

#########################################################

Windowsversion=5.1
groups- or Username=Jeder
Error LookupAccountName: 1
Domain=
SID length in Bytes=12

LongInts the SIDs:
257
16777216
0

String-SID the Besitzers=S-1-1-0
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0
 
07/07/05  
 




CB
Hello Andreas!

unfortunately is my NT-Workstation in the firm dzt. except Gefecht what about me white not, when and whether the thing again to that employment comes. 2000 can I evtl. tonight testing, if I do not More come along ought to, GEHTS unfortunately first tuesday again.
here time for first my XP-Resultate:

[box:4a732bd160]Windowsversion=5.1
groups- or Username=Kein
Error LookupAccountName: 1
Domain=SVA
SID length in Bytes=28

LongInts the SIDs:
1281
83886080
21
1659004503
606747145
1801674531
513

String-SID the Besitzers=S-1-5-21-1659004503-606747145-1801674531-513
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0[/box:4a732bd160]
[box:4a732bd160]Windowsversion=5.1
groups- or Username=Jeder
Error LookupAccountName: 1
Domain=
SID length in Bytes=12

LongInts the SIDs:
257
16777216
0

String-SID the Besitzers=S-1-1-0
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0[/box:4a732bd160]
Sincerely,
Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
07/07/05  
 



no:[quote:c1eece9c99]Windowsversion=5.1
groups- or Username=Kein
Error LookupAccountName: 1
Domain=C4
SID length in Bytes=28

LongInts the SIDs:
1281
83886080
21
789336058
1343024091
854245398
513

String-SID the Besitzers=S-1-5-21-789336058-1343024091-854245398-513
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0[/quote:c1eece9c99]eachone:[quote:c1eece9c99]Windowsversion=5.1
groups- or Username=Jeder
Error LookupAccountName: 1
Domain=
SID length in Bytes=12

LongInts the SIDs:
257
16777216
0

String-SID the Besitzers=S-1-1-0
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0[/quote:c1eece9c99]
 
07/07/05  
 




Michael
Wodrich
WinXP Home

[box:11b70432ac]
--- no

Windowsversion=5.1
groups- or Username=Kein
Error LookupAccountName: 1
Domain=PROFANIUM
SID length in Bytes=28

LongInts the SIDs:
1281
83886080
21
1820858989
1647371527
101265881
513

String-SID the Besitzers=S-1-5-21-1820858989-1647371527-101265881-513
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0

--- eachone

Windowsversion=5.1
groups- or Username=Jeder
Error LookupAccountName: 1
Domain=
SID length in Bytes=12

LongInts the SIDs:
257
16777216
0

String-SID the Besitzers=S-1-1-0
Return of ConvertSidToStringSid=1
last API-Fehler=0
Return of LocalFree for String-SID=0
last API-Fehler=0
[/box:11b70432ac]
Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
07/07/05  
 



best Thanks.
no is means Domainabhängig and is not.

Greeting

AH
 
07/08/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

707 Views

Untitledvor 0 min.
mano01/04/13

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie