HANDLE ??
-
Hallo,
ich möchte folgende Fkt benutzen, aber ich weiß nicht, wie ich die 2. Parameter kriegen kann (und bitte i.a. was ist ein HANDLE? )
-------------------------------------------------------------------------------
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/qos/qos/tcregisterclient.aspULONG TcRegisterClient(
ULONG TciVersion,
HANDLE ClRegCtx,//<-------------- hier
PTCI_CLIENT_FUNC_LIST pClientHandlerList,
PHANDLE pClientHandle
);Parameters
TciVersion
[in] Traffic control version expected by the client, included to ensure compatibility between traffic control and the client. Clients can pass CURRENT_TCI_VERSION, defined in Traffic.h.
ClRegCtx
[in] Client registration context. ClRegCtx is returned when the client's notification handler function is called. This can be a container to hold an arbitrary client-defined context for this instance of the interface.
pClientHandlerList
[in] Pointer to a list of client-supplied handlers. Client-supplied handlers are used for notification events and asynchronous completions. Each completion routine is optional, with the exception of the notification handler. Setting the notification handler to NULL will return an ERROR_INVALID_PARAMETER.
pClientHandle
[out] Pointer to the buffer that traffic control uses to return a registration handle to the client.
-----------------------------------------------------------------------------------
Grüße an Alle.....
-
Also ein Handle ist i.d.R so was ähnliches wie ein Pointer. Naja, so generell kann man das nicht sagen. Kommt auf die API an. Ein HWND ist ja auch kein Pointer...
-
Hast du schonmal versucht einfach ne 0 als 2. Parameter zu verwenden?
-
Original erstellt von MaSTaH:
Hast du schonmal versucht einfach ne 0 als 2. Parameter zu verwenden?ich habe nix probiert, da ich von diesem Satz blockiert wurde:
"ClRegCtx
[in] Client registration context. ClRegCtx is returned when the client's notification handler function is called"Was soll dieser Satz heißen?
(falls jemand mit TC API schon Erfahrung hat, bitte helfen)