A primitive handle is a handle with the data type handle_t. Ultimately, every handle is mapped to a primitive handle by the stubs.
As with a file handle or a window handle, a primitive handle is opaque; it contains information that is meaningful to the RPC run-time library but not to your application.
The primitive handle is defined in the client source code as a handle of the base type handle_t using a statement such as:
handle_t hMyHandle; // primitive handle
For encoding or decoding data, the handle_t data type is used for a serialization handle. For additional information on serialization handles, see Encoding Services.