StrToHandle
Convert a Visual Basic string to a global memory handle.
HANDLE StrToHandle(string, length)
HWND hWnd; | Handle of the window to be accessed |
BYTE huge *string; | pointer to a visual basic string |
long length; | length of the string |
Description: This function copies the content of a visual basic string to a global memory block.
This function is primarily used to copy the visual basic text data to a global memory block to insert in a TER window (see SetTerBuffer).
Return Value: This function returns the global memory handle if successful. Otherwise it returns NULL.