#ifndef _NTSAM_H
_Check_return_
NTSTATUS
NTAPI
SamChangePasswordUser(
_In_ SAM_HANDLE UserHandle,
_In_ PUNICODE_STRING OldPassword,
_In_ PUNICODE_STRING NewPassword
);
View code on GitHub
This function is a wrapper over an RPC method documented in the [MS-SAMR] specification.