Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 735 of file localmon.c.
Referenced by InitializePrintMonitor().
{ DWORD len; xcv_t * xcv; TRACE("%s, 0x%x, %p)\n", debugstr_w(pName), GrantedAccess, phXcv); /* No checks for any field is done in Windows */ len = (lstrlenW(pName) + 1) * sizeof(WCHAR); xcv = heap_alloc( sizeof(xcv_t) + len); if (xcv) { xcv->GrantedAccess = GrantedAccess; memcpy(xcv->nameW, pName, len); *phXcv = xcv; EnterCriticalSection(&xcv_handles_cs); list_add_tail(&xcv_handles, &xcv->entry); LeaveCriticalSection(&xcv_handles_cs); TRACE("=> %p\n", xcv); return TRUE; } else { *phXcv = NULL; return FALSE; } }