예제 #1
0
        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));
        }
예제 #2
0
 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
     );