Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Office hooks

Office hooks

Scheduled Pinned Locked Moved Windows API
questiontutorial
2 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 10676976
    wrote on last edited by
    #1

    Hi, I'm working in pretty unfamiliar terrain, so I apologise if this is the wrong place to ask this question or if the question is wrong. I'm trying to write code that acts on events in Microsoft software. I've worked out how to do this for generic Windows hooks like for keyboard entries, but can't work out how to do it for Office events (e.g., saving or printing a document). Can anyone point me to a reference of hooks available in Office? Thanks

    L 1 Reply Last reply
    0
    • U User 10676976

      Hi, I'm working in pretty unfamiliar terrain, so I apologise if this is the wrong place to ask this question or if the question is wrong. I'm trying to write code that acts on events in Microsoft software. I've worked out how to do this for generic Windows hooks like for keyboard entries, but can't work out how to do it for Office events (e.g., saving or printing a document). Can anyone point me to a reference of hooks available in Office? Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Member 10710970 wrote:

      I've worked out how to do this for generic Windows hooks like for keyboard entries

      A keyboard/mouse hook does not work based on events - it works by hooking a API call.

      Member 10710970 wrote:

      but can't work out how to do it for Office events (e.g., saving or printing a document).

      Correct.

      Member 10710970 wrote:

      Can anyone point me to a reference of hooks available in Office?

      API Hooking with MS Detours[^]

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups