admin
activec
admt
burnslib
cmdline
consoles
controls
cys
darwin
dcpromo
display
dsadminlib
dsclientnt4
dscmd
dsutils
dsweb
eelvewer
extens
hmonitor
netid
netui
pchealth
published
select
services
sms
snapin
wizards
wmi
wbem
adapters
bvt
common
consumers
copyright
cppunit
embedded
policman
providers
scripting
sdk
setup
shell
test
tools
valuadd
winmgmt
a51
a512rosw
adap
baseprov
comlib
contprov
coredll
coretest
dbgsignal
egg
ess3
esscli
esscomp
eventconsshell
eventprovshell
heaptrak
hiperstress
kernel33
marshalers
mc
minimfc
mofcomp_dll
mofcomp_tool
mofcompiler
mofs
msg
ntperf
ntperfclient
ntperfshell
ntsdext
provshell
provsubsys
queries
redirect
repdrvr
roswell
secobj
security
specs
stdprov
wbemcomn
comndll
comnlib
arena.cpp
arena.h
arrtempl.h
buffer.cpp
buffer.h
callsec.cpp
callsec.h
cimval.cpp
cimval.h
clsfac.h
common.mk
common.rc
comutl.h
corepol.h
corex.h
crc64.cpp
crc64.h
csspi.cpp
csspi.h
cwbemtime.cpp
cwbemtime.h
datepart.cpp
datepart.h
datetimeparser.cpp
datetimeparser.h
dirs
dothrow.cpp
dothrow.h
evtlog.cpp
evtlog.h
execq.cpp
execq.h
flexarry.cpp
flexarry.h
flexq.cpp
flexq.h
genlex.cpp
genutils.cpp
genutils.h
like.cpp
like.h
localloc.cpp
locks.cpp
locks.h
lockst.h
md5wbem.cpp
md5wbem.h
mkdir.cpp
mrciclass.cpp
mrciclass.h
mrcicode.cpp
mrcicode.h
msgsig.cpp
msgsig.h
oahelp.inl
objcache.cpp
objcache.h
olewrap.cpp
olewrap.h
parmdefs.h
pathutl.cpp
pathutl.h
perfhelp.h
persistcfg.cpp
persistcfg.h
precomp.h
provinit.cpp
provinit.h
ql.cpp
ql.h
ql_test.cpp
qllex.cpp
qllex.h
reg.cpp
reg.h
safearry.cpp
safearry.h
selfinst.h
servutil.cpp
servutil.h
sleeper.cpp
sleeper.h
smallarr.cpp
smallarr.h
smallarr.inl
sortarr.h
sortarr.inl
stackcom.cpp
stackcom.h
stllock.cpp
strm.cpp
strm.h
strutils.h
sync.cpp
sync.h
throttle.cpp
throttle.h
thrpool.cpp
thrpool.h
tls.h
tpwrap.cpp
tpwrap.h
tss.cpp
tss.h
txttempl.cpp
txttempl.h
unk.cpp
unk.h
unload.cpp
unload.h
var.cpp
var.h
wbemcomn.h
wbemutil.cpp
wbemutil.h
winntsec.cpp
winntsec.h
wql.bnf
wqllex.cpp
wqllex.h
wqlscan.cpp
wqlscan.h
wqlscan.mak
wqltest.cpp
wstlallc.h
wstring.cpp
wstring.h
wbemtest
winmgmt2
wmicooker
wmiexts
wmiperf
wmitest
wql
wqlscan
xfiles
dirs
filelist.xls
makefile.inc
makefile.sms
xmltransport
coverage_cleanbuild.bat
coverage_postbuild.bat
dirs
icecap_cleanbuild.bat
dirs
wmiprov
wmiscmgr
dirs
makefile.inc
project.mk
base
com
developer
drivers
ds
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
public
published
sdktools
shell
termsrv
tools
windows
dirs
makefil0
40 lines
483 B
C++
40 lines
483 B
C++
/*++
|
|
|
|
Copyright (C) 1996-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
STLLOCK.CPP
|
|
|
|
Abstract:
|
|
|
|
Lock for STL
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
#include "precomp.h"
|
|
//#include <stdio.h>
|
|
//#include <wbemcomn.h>
|
|
#include <sync.h>
|
|
|
|
/*
|
|
This file implements the STL lockit class to avoid linking to msvcprt.dll
|
|
*/
|
|
|
|
CCritSec g_cs;
|
|
|
|
std::_Lockit::_Lockit()
|
|
{
|
|
EnterCriticalSection(&g_cs);
|
|
}
|
|
|
|
std::_Lockit::~_Lockit()
|
|
{
|
|
LeaveCriticalSection(&g_cs);
|
|
}
|
|
|
|
|
|
|