parameters for DLL sendstate

Scott Sheridan 40 Reputation points
2026-08-18T20:39:22.89+00:00

i need to know what the parameters for THE DLL sendstate MEAN

Windows development | Windows API - Win32

Answer accepted by question author
Taki Ly (WICLOUD CORPORATION) 4,440 Reputation points Microsoft External Staff Moderator
2026-08-19T03:45:54.77+00:00

Hello @Scott Sheridan ,

The name sendstate alone is not enough to identify the function, as it may belong to a specific library or third-party DLL.

Could you share the following details?

  • The exact DLL name
  • The full sendstate function signature
  • A minimal code snippet showing how it is called
  • The SDK, library, or product associated with the DLL

With this information, it should be possible to determine what each parameter represents. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation.

Thank you.

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author

AI answer

2026-08-18T20:39:32.9733333+00:00

sendstate can refer to different Windows APIs in the provided material. The parameter meanings are:

For the video miniport driver callback DxSetState:

DWORD PdxSetstate(
  PVOID unnamedParam1,
  PDDSETSTATEININFO unnamedParam2,
  PDDSETSTATEOUTINFO unnamedParam3
)
  • unnamedParam1: points to the miniport driver’s device extension.
  • unnamedParam2: points to a DDSETSTATEININFO structure containing the surface and VPE object information.
  • unnamedParam3: points to a DDSETSTATEOUTINFO structure containing the state information for the hardware video port.

This callback is used when a client wants to switch between bob mode and weave mode. If the new state is unsupported, the driver should fail the call.

For the video compression message ICM_SETSTATE:

ICM_SETSTATE 
wParam = (DWORD_PTR) (LPVOID) pv; 
lParam = (DWORD_PTR) cb;
  • pv: pointer to a block of memory containing configuration data. If NULL, the compressor resets to its default state.
  • cb: size, in bytes, of that memory block.

This state data is private to the specific compressor and is typically used to restore state previously obtained with ICM_GETSTATE.

If the intended API is a different SetState or SendState function, the exact DLL or function name is needed.


AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Scott Sheridan 40 Reputation points
    2026-08-19T07:01:53.6866667+00:00

    Here's what I wound up using in my .AHK file:

    DllCall("PowrProf\SetSuspendState", "Int", 0, "Int", 0, "Int", 0)

    Was this answer helpful?

    0 comments No comments

  2. Scott Sheridan 40 Reputation points
    2026-08-19T07:01:42.2633333+00:00

    Here's what I wound up using in my .AHK file:

    DllCall("PowrProf\SetSuspendState", "Int", 0, "Int", 0, "Int", 0)

    Was this answer helpful?

    0 comments No comments

  3. Scott Sheridan 40 Reputation points
    2026-08-19T07:01:17.08+00:00

    Here's what I wound up using in my .AHK file:

    DllCall("PowrProf\SetSuspendState", "Int", 0, "Int", 0, "Int", 0)

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.