public static uint CreateSemaphore( int lInitialCount, // initial count int lMaximumCount, // maximum count string lpName // object name ) { SecurityAttributes sa = new SecurityAttributes(); return(CreateSemaphore(ref sa, lInitialCount, lMaximumCount, lpName)); }
public static extern uint CreateSemaphore( ref SecurityAttributes lpSemaphoreAttributes, // SD //If lpSemaphoreAttributes is null, the semaphore gets a default security descriptor int lInitialCount, // initial count int lMaximumCount, // maximum count string lpName // object name );