该函数返回句柄,用以访问清单1 所示的对象。
The function returns a handle that can be used to access the object as shown in Listing 1.
这个函数返回该事件对象的句柄。
这个函数返回事件对象的句柄,这样就可以在后续的调用中使用这个事件对象了。
This function returns the handle to the event object and can be used in subsequent calls to the event object.
该回调函数的参数包括一个事务句柄和一个错误对象。
The arguments to this callback function include a transaction handle and an error object.
这个回调函数的参数包含一个事务句柄和一个结果集。
The arguments to this callback function include a transaction handle and a result set.
这个函数创建信号量,并返回这个信号量的句柄。
This function creates the semaphore and returns the handle to the semaphore.
如果digestdoc没有导致错误4091Invaliduniversalid,脚本会将文档的句柄传递回调用的函数。
If digestdoc did not result in error 4091 Invalid universal id, the script passes the handle of the document back to the calling function.
相反,创建一个包装器函数,它返回现有对象的句柄,或者创建一个新对象并添加到映射中,如清单1中的代码所示。
Instead, create a wrapper function that either returns a handle to the existing object for a particular community or creates a new object and adds it to the map, using the code in listing 1.
在成功打开信号量之后,这个函数就会返回这个信号量的句柄,这样就可以在后续的调用中使用它了。
Upon a successful opening, this function returns the handle to the semaphore so that it can be used in the subsequent calls.
创建查询会返回一个句柄,可以用它来访问PDH函数中的查询。
The creation of a query returns a handle, which is used to allow access to the query in PDH functions.
这个函数使用一个信号量对象的句柄作为参数,并会一直等待下去,直到其状态变为有信号状态或超时为止。
This function takes the handle to the semaphore object and waits until it is signaled or a timeout occurs.
这个函数返回一个存在的进程对象的句柄。
The OpenProcess function returns a handle to an existing process object.
如果函数执行成功,返回值是指定进程的打开句柄。
If the function succeeds, the return value is an open handle to the specified process.
在硬件中断一节中已经介绍了内核所提供的两个函数,用于注册和反注册一个句柄。
The section "Hardware Interrupts" already introduced the two functions provided by the kernel to register and unregister a handler, respectively.
在前面的例子中,不需要判断使用哪种方法附加或分离事件句柄,直到有人调用此函数。
In the case of the previous example, there is no need to determine which way to attach or detach event handlers until someone makes a call to the function.
该函数返回桌面窗口的句柄。
The GetDesktopWindow function returns a handle to the desktop window.
如果函数执行成功,则返回当前打开剪贴板的窗口的句柄;否则返回NULL。
The handle of the window that currently has the Clipboard open if the function is successful; otherwise NULL.
如果一个命名的互斥对象在本函数调用之前已经存在,则返回已经存在的对象句柄。
If the named mutex object existed before the function call, the function returns a handle to the existing object and GetLastError returns ERROR_ALREADY_EXISTS.
为相同堆值多次调用此函数将创建多个句柄。
Multiple calls to this function for the same heap value will create multiple handles.
CreateIoCompletionPort函数会使一个I/O完成端口与一个或多个文件句柄发生关联。
The CreateIoCompletionPort function associates an I/O completion port with one or more file handles.
替换函数驻留在内核句柄可访问的存储器空间中。
The replacement function resides in a memory space that is accessible to the kernel handler.
这个函数分配多重窗口结构的内存,并返回一个句柄。
This function allocates memory for a multiple-window position structure and returns the handle to the structure.
这个函数会使用一个互斥对象的句柄,并一直等待,直到它变为有信号状态或超时为止。
This function takes the handle to the mutex object and waits until it is signaled or timeout occurs.
这个函数是一个真正的消息句柄,不是虚函数。
This function is really a message handler, not a virtual function.
尽管这些函数被认为是GDI的一部分,但是并不像大多数gdi函数,它们不需要关联设备句柄。
Although these functions are considered to be part of GDI, unlike most GDI functions they do not require a handle to a device context.
如果在一个函数中打开连接,并且只将句柄存储在一个本地变量中,那么当函数返回时,连接将被关闭。
If you open the connection from within a function, and only store the variable in a local variable, the connection will be closed when that function returns.
函数返回一个句柄,这个句柄可以用来访问一个对象。
The function returns a handle that can be used to access the object.
这些句柄的生存时间由句柄范围决定,句柄范围经常在一个函数的开始的时候被创建。
These handles' lifetime is determined by a handle scope, which is often created at the beginning of a function call.
在指定了SQL_HANDLE_DESC选项的情况下,通过调用SQLAllocHandle函数可以显式地分配一个或多个描述符句柄,以及一个有效的连接句柄和语句句柄。
One or more descriptor handles can be explicitly allocated by calling the SQLAllocHandle function with the SQL_HANDLE_DESC option and a valid connection and statement handle.
当句柄范围的析构函数被调用时,所有在那个范围中创建的句柄都将被从栈中移除。
When the handle scope's destructor is called all handles created within that scope are removed from the stack.
应用推荐