.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CoLockObjectExternal 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCoLockObjectExternal\fR (OLE32.@) .SH SYNOPSIS HRESULT CoLockObjectExternal ( LPUNKNOWN \fIpUnk\fR, BOOL \fIfLock\fR, BOOL \fIfLastUnlockReleases\fR ) .SH DESCRIPTION .PP Increments or decrements the external reference count of a stub object. .SH PARAMS \fIpUnk\fR \fB[In]\fR Stub object. .PP \fIfLock\fR \fB[In]\fR If \fBTRUE\fR then increments the external ref-count, otherwise decrements. .PP \fIfLastUnlockReleases\fR \fB[In]\fR If \fBTRUE\fR then the last unlock has the effect of calling CoDisconnectObject. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. .PP \fBFailure:\fR \fBHRESULT\fR code. .SH NOTES .PP If \fIfLock\fR is \fBTRUE\fR and an object is passed in that doesn't have a stub manager then a new stub manager is created for the object. .SH IMPLEMENTATION .PP Declared in \fB"objbase.h"\fR. .PP Implemented in \fB"dlls/ole32/compobj.c"\fR. .PP Debug channel \fB"ole"\fR.