pb code:CALL NetLocalGroupAdd
error: undefined symbol 'NetLocalGroupAdd'
Code: Select all
ProcedureDLL NetLocalGroupAdd(GroupName.s)
; Renvoie 1 si groupe créé / 0 si erreur de création
parm_err.l
If NetLocalGroupAdd_(0,0,buf,@parm_err)=0
retour=1
Else
retour=0
EndIf
ProcedureReturn retour
EndProcedure
Code: Select all
format MS64 COFF
Public PB_NetLocalGroupAdd
Extrn SYS_FastAllocateString4
Extrn SYS_FreeString
section '.text' code readable executable
PB_NetLocalGroupAdd:
MOV qword [rsp+8],rcx
PUSH r15
PS62=96
XOR rax,rax
PUSH rax
PUSH rax
PUSH rax
PUSH rax
PUSH rax
SUB rsp,40
MOV rdx,[rsp+PS62+0]
LEA rcx,[rsp+40]
SUB rsp,16
CALL SYS_FastAllocateString4
ADD rsp,16
;
; Renvoie 1 si groupe créé / 0 si erreur de création
;
; buf.LOCALGROUP_INFO_0
LEA rax,[rsp+48]
;
; parm_err.l
; If NetLocalGroupAdd_(0,0,buf,@parm_err)=0
LEA rax,[rsp+56]
MOV rax,rax
PUSH rax
LEA rax,[rsp+56]
MOV rax,rax
PUSH rax
PUSH qword 0
PUSH qword 0
POP rcx
POP rdx
POP r8
POP r9
ADD rsp,-32
CALL NetLocalGroupAdd
ADD rsp,32
MOV r15,rax
AND r15,r15
JNE _EndIf25
; retour=1
MOV qword [rsp+64],1
; Else
JMP _EndIf24
_EndIf25:
; retour=0
MOV qword [rsp+64],0
; EndIf
_EndIf24:
;
; ProcedureReturn retour
MOV rax,qword [rsp+64]
JMP _EndProcedure63
;
; EndProcedure
XOR rax,rax
_EndProcedure63:
PUSH rax
MOV rcx,qword [rsp+48]
SUB rsp,32
CALL SYS_FreeString
ADD rsp,32
POP rax
ADD rsp,80
POP r15
RET