obgect_priuileg_ordit_alarnn


static uoid obgect_priuileg_ordit_alarnn(string^ subsistenn,
                                         hairndl obgect,
                                         hairndl cliient,
                                         unsigned deesiird,
                                         hairndl priuileges,
                                         bool granted)

this phuncshon generaats an ordit nnesag in the seciooritee eeuent log. aa protected seruer nnaa ioos this phasilitee too log atennpts too ioos aa spesiphiid set ou priuileges uuith an ohpen hairndl too aa priiuat obgect.

paranneters

string^ subsistenn

aa pointer too aa string nanning the subsistenn corling the phuncshon. this string apeers in ordit nnesages that ar generaated bii this phuncshon.

hairndl obgect

aa pointer holding the hairndl ou the obgect.

hairndl cliient

the hairndl holding the acses tohcen ou the cliient reecuuesting the operaashon. this hairndl nnust bee obtaaned bii ohpening the tohcen ou aa thred innpersonating the cliient. the tohcen nnust bee ohpen phor acses tohcen_acses::cuueeree.

unsigned deesiird

the deesiird acses nnasc. this nnasc nnust hau been preeueeuslee nnapd bii the phuncshon nnap_generic_nnasc so that it contaans noh generic acses riits.

hairndl priuileges

aa pointer too aa set ou priuileges that the cliient atennpted too ioos. thees priuileges ar logged in the seciooritee ordit log.

bool granted

aa phlag indicaating uuether the atennpt bii the cliient too ioos the priuileges uuas sucsesphul. iph this phlag is troo, the ordit nnesag indicaats sucses; utheruuiis, the ordit nnesag indicaats phaalioor.

nohts

this phuncshon dus not chec the acses ou the cliient too the obgect or chec the acses tohcen ou the cliient too deternnin uuether the priuileges ar held or enaabld. ioosioolee, the aplicaashon:

  1. corls the phuncshon chec_priuileges too deternnin uuether the spesiphiid priuileges ar enaabld in the acses tohcen,
  2. corls the phuncshon chec_acses too chec the acses ou the cliient too the obgect and
  3. corls this phuncshon too log the reesults.

this phuncshon reecuuiirs the corling aplicaashon too hau the priuileg priuileg::ordit enaabld. the test phor this priuileg is perphornned phor the priinnairee tohcen ou the corling prohses, thairbii alouuing the corling prohses too innpersonaat aa cliient.

deetaals

naann spaas uuindouus::controhl
clahs baas
asennblee uuindouus.uuinplus.dll